.ac-field,.ac-control{position:relative;min-width:0}.ac-label{display:block;margin-block-end:6px;font-size:13px;font-weight:600;color:var(--text)}.ac-input{display:block;width:100%;min-height:46px;padding-block:11px;padding-inline:14px;border:1px solid var(--border-strong);border-radius:var(--r-field, 12px);background:var(--surface);color:var(--text);font:inherit;font-size:14.5px;line-height:1.4;box-shadow:none;transition:border-color .15s,box-shadow .15s}.ac-input--start{padding-inline-start:40px}.ac-input--end{padding-inline-end:40px}.ac-input::-moz-placeholder{color:var(--text-subtle)}.ac-input::placeholder{color:var(--text-subtle)}.ac-input:hover:not(:focus){border-color:color-mix(in srgb,var(--text-subtle) 60%,transparent)}.ac-input:focus{outline:none;border-color:var(--action);box-shadow:0 0 0 1px var(--action)}.ac-adorn{position:absolute;inset-block:0;display:flex;align-items:center;color:var(--text-subtle);pointer-events:none;z-index:1}.ac-adorn--start{inset-inline-start:14px}.ac-adorn--end{inset-inline-end:14px}.ac-spin{inline-size:16px;block-size:16px;border-radius:999px;border:2px solid var(--text-muted);border-block-start-color:transparent;animation:refSpin .8s linear infinite}.ac-list{z-index:50;max-height:240px;overflow-y:auto;overscroll-behavior:contain;padding:4px;background:var(--bg-2);color:var(--text);border:1px solid var(--border-strong);border-radius:var(--r-sm, 14px);box-shadow:var(--drop-shadow)}.ac-list--inline{position:absolute;inset-inline:0;inset-block-start:calc(100% + 6px)}.ac-list--fixed{position:fixed;z-index:9999}.ac-list--tall{max-height:288px}.ac-head{position:sticky;inset-block-start:-4px;z-index:1;margin:-4px -4px 4px;padding:9px 14px;background:var(--bg-2);border-block-end:1px solid var(--border);color:var(--text-subtle);font-size:12px;font-weight:600}.ac-option{position:relative;display:flex;align-items:flex-start;gap:10px;padding:9px 10px;border-radius:10px;cursor:pointer;color:var(--text);font-size:14px;line-height:1.4}.ac-option:hover{background:var(--hover)}.ac-option[aria-selected=true]{background:var(--surface-2)}.ac-option[aria-selected=true]:before{content:"";position:absolute;inset-block:8px;inset-inline-start:0;inline-size:2px;border-radius:2px;background:var(--action)}.ac-option>svg{flex:none;margin-block-start:2px;color:var(--text-subtle)}.ac-main{flex:1;min-width:0;display:grid;gap:2px}.ac-title{font-weight:600;overflow-wrap:anywhere}.ac-sub{color:var(--text-muted);font-size:12.5px;overflow-wrap:anywhere}.ac-muted{color:var(--text-muted);font-weight:500}.ac-meta{flex:none;color:var(--text-subtle);font-size:12px;white-space:nowrap}.ac-code{font-family:Manrope,Inter,sans-serif;font-weight:700;font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate}.ac-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ac-more{padding:8px 10px;color:var(--text-subtle);font-size:12px}.ac-hs-row{display:flex;flex-direction:column;gap:4px}.ac-hs-row>.ac-control{flex:1}.ac-hint{flex:1;min-width:0;contain:inline-size;color:var(--text-subtle);font-size:12px;line-height:1.4;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:anywhere}@media(min-width:640px){.ac-hs-row{flex-direction:row;align-items:center;gap:8px}}@media(prefers-reduced-motion:reduce){.ac-input{transition:none}.ac-spin{animation-duration:2s}}.reference-editor{color:var(--text);min-width:0;padding-block-end:24px}body:has(.reference-editor){overflow-x:clip;overflow-y:visible}html:has(.reference-editor){scroll-padding-block-end:140px;scroll-padding-block-start:96px}.workspace-content>div:has(>.reference-editor){max-width:none}.reference-editor-page,.cmr-tool-editor{display:grid;gap:16px;min-width:0;margin-inline:auto}.reference-editor-heading{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px 20px;margin-block:4px 2px;min-width:0}.reference-editor-heading>div:first-child{min-width:0;flex:1 1 320px}.reference-editor-heading--form{padding-inline-end:calc((100% - 24px) * 5 / 12 + 24px)}.reference-editor-heading h1{font-family:Manrope,Inter,sans-serif;font-size:clamp(28px,2.6vw,36px);font-weight:800;letter-spacing:-.03em;line-height:1.12;overflow-wrap:anywhere}.reference-editor-heading p{margin-block-start:8px;color:var(--text-muted);font-size:15px;line-height:1.55;max-width:68ch}.reference-editor-number{color:var(--text-muted);font-size:.72em;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.reference-editor-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.reference-editor-tools .re-tool{display:flex;align-items:center;gap:10px;inline-size:auto;max-inline-size:100%;min-block-size:52px;padding:6px 16px 6px 6px;border:1px solid var(--border-strong);border-radius:var(--r-md, 16px);background:var(--surface);color:var(--text);text-align:start;cursor:pointer;box-shadow:var(--drop-shadow, none);transition:border-color .15s,background-color .15s}.reference-editor-tools .re-tool:hover:not(:disabled){border-color:var(--action);background:var(--surface-2)}.reference-editor-tools .re-tool:focus-visible{outline:2px solid var(--action-text);outline-offset:2px}.reference-editor-tools .re-tool:disabled{cursor:progress;opacity:.7}.re-tool-icon{display:grid;place-items:center;flex:none;inline-size:40px;block-size:40px;border-radius:50%;background:var(--action-soft);color:var(--action-text)}.re-tool--scan .re-tool-icon{background:var(--action);color:#fff}.re-tool-text{display:grid;gap:2px;min-inline-size:0;flex:1}.re-tool-text b{font:700 15px/1.25 Manrope,Inter,sans-serif;white-space:nowrap}.re-tool-text small{color:var(--text-muted);font-size:12.5px;line-height:1.35}.re-tool[aria-pressed=true]{border-color:var(--action);box-shadow:inset 0 0 0 1px var(--action)}.re-tool[aria-pressed=true] .re-track{background:var(--action);border-color:var(--action)}.re-tool[aria-pressed=true] .re-track:after{inset-inline-start:16px;background:#fff}@media(prefers-reduced-motion:reduce){.reference-editor-tools .re-tool{transition:none}}.reference-editor-back{justify-self:start;color:var(--text-muted)}.reference-editor-back:hover:not(:disabled){color:var(--text);background:var(--hover)}#scan-document-button.ring-4{box-shadow:0 0 0 3px var(--ring);border-color:var(--action)}.re-notice{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid var(--border);border-radius:var(--r-sm, 14px);background:var(--surface);font-size:14px;line-height:1.5;min-width:0}.re-notice>svg{flex:none;margin-block-start:2px;color:var(--text-muted)}.re-notice>div{flex:1;min-width:0;overflow-wrap:anywhere}.re-notice .sub{display:block;color:var(--text-muted);font-size:13px;margin-block-start:2px}.re-notice.ok{border-color:color-mix(in srgb,var(--success) 40%,transparent);background:var(--success-soft)}.re-notice.ok>svg{color:var(--success)}.re-notice.warn{border-color:color-mix(in srgb,var(--warning) 45%,transparent);background:var(--warning-soft)}.re-notice.warn>svg{color:var(--warning)}.re-notice.danger{border-color:color-mix(in srgb,var(--danger) 45%,transparent);background:var(--danger-soft)}.re-notice.danger>svg{color:var(--danger)}.re-notice .ref-iconbtn{margin-block:-6px;margin-inline-end:-6px}.re-notice-actions{display:flex;flex-wrap:wrap;gap:8px;margin-block-start:10px}.re-usage{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;padding:14px 18px;border:1px solid var(--border);border-radius:var(--r-md, 18px);background:var(--surface);box-shadow:var(--panel-shadow);min-width:0}.re-usage-text{display:grid;gap:6px;min-width:0;flex:1 1 280px}.re-usage-text .label{color:var(--text-subtle);font-size:12.5px}.re-usage-text b{font-weight:600;font-size:14.5px}.re-usage-text b.danger{color:var(--danger)}.re-usage-text small{color:var(--text-subtle);font-size:12.5px}.re-meter{display:flex;flex-wrap:wrap;gap:4px}.re-meter i{inline-size:20px;block-size:5px;border-radius:999px;background:var(--surface-3, var(--surface-2))}.re-meter i.on{background:var(--action)}.reference-editor-tabs{display:none}.reference-editor-split{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:24px;align-items:start}.reference-editor-form{min-width:0;display:grid;gap:16px;align-content:start}.reference-editor-sections{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0}.re-section,.reference-editor-sections>.cmr-goods-editor{position:relative;border:1px solid var(--border);border-radius:var(--r-md, 18px);background:var(--surface);box-shadow:var(--panel-shadow);padding:20px 22px 22px;min-width:0}.re-section:before,.reference-editor-sections>.cmr-goods-editor:before{content:"";position:absolute;inset-block-start:-1px;inset-inline:24px;height:1px;background:linear-gradient(90deg,transparent,var(--sheen),transparent);pointer-events:none}.re-section-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 14px;margin-block-end:16px;min-width:0}.re-section-head h2,.reference-editor .cmr-goods-editor h2{font-family:Manrope,Inter,sans-serif;font-size:18px;font-weight:700;letter-spacing:-.01em;line-height:1.3}.re-section-head p{color:var(--text-subtle);font-size:13px;line-height:1.45}.re-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}.re-grid>*{min-width:0}.re-span{grid-column:1 / -1}.re-stack{display:grid;gap:14px;min-width:0}.re-divider{border:0;border-block-start:1px solid var(--border);margin:18px 0}.re-field{display:grid;gap:6px;min-width:0;align-content:start}.re-label,.re-field>label,.re-label-row>label:not(.re-toggle){display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;line-height:19px;color:var(--text);min-width:0}.re-label-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;min-height:24px}.re-req{color:var(--action-text);font-weight:700}.re-help{color:var(--text-subtle);font-size:12.5px;line-height:1.5}.re-error{color:var(--danger);font-size:13px;line-height:1.45}.re-box{display:inline-grid;place-items:center;min-inline-size:22px;block-size:20px;padding-inline:5px;border-radius:6px;background:var(--surface-2);color:var(--text-muted);font:700 11px/1 Manrope,Inter,sans-serif;font-variant-numeric:tabular-nums;flex:none}.reference-editor .cmr-goods-editor .goods-input-wrap input,.reference-editor .cmr-goods-editor .goods-input-wrap select{min-height:46px;border:1px solid var(--border-strong);border-radius:var(--r-field, 12px);background:var(--surface);color:var(--text);font-size:14.5px;box-shadow:none;transition:border-color .15s,box-shadow .15s}.reference-editor .cmr-goods-editor input:focus,.reference-editor .cmr-goods-editor select:focus{outline:none;border-color:var(--action);box-shadow:0 0 0 1px var(--action)}.reference-editor .re-field[data-invalid] .re-ac input,.re-partial .re-field[data-invalid] .re-ac input,.re-field[data-invalid] .ref-input,.reference-editor .ref-input[aria-invalid=true],.re-partial .ref-input[aria-invalid=true]{border-color:var(--danger)}.reference-editor .ref-input:disabled,.re-partial .ref-input:disabled{background:var(--surface-2);color:var(--text-muted);cursor:not-allowed}.reference-editor .ref-textarea{min-height:84px}.re-upper{text-transform:uppercase}:is(.reference-editor,.re-partial,.cmr-tool-editor) input::-moz-placeholder,:is(.reference-editor,.re-partial,.cmr-tool-editor) textarea::-moz-placeholder{text-transform:none}:is(.reference-editor,.re-partial,.cmr-tool-editor) input::placeholder,:is(.reference-editor,.re-partial,.cmr-tool-editor) textarea::placeholder{text-transform:none}.re-auto-off{opacity:.55;pointer-events:none}.ref-input.re-sm{min-height:40px;padding-block:8px;font-size:14px}.re-doclang{margin-block-start:18px;padding-block-start:18px;border-block-start:1px solid var(--border)}.re-toggle{position:relative;display:inline-flex;align-items:center;gap:10px;min-height:32px;font-size:13px;font-weight:500;color:var(--text-muted);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.re-toggle>input{position:absolute;opacity:0;inline-size:1px;block-size:1px;pointer-events:none}.re-track,.re-switch{position:relative;flex:none;inline-size:36px;block-size:22px;border-radius:999px;background:var(--surface-3, var(--surface-2));border:1px solid var(--border-strong);transition:background-color .15s,border-color .15s}.re-track:after,.re-switch:after{content:"";position:absolute;inset-block-start:2px;inset-inline-start:2px;inline-size:16px;block-size:16px;border-radius:50%;background:var(--bg-2);box-shadow:0 1px 2px #00000040;transition:inset-inline-start .15s}.re-toggle>input:checked+.re-track,.re-switch[aria-checked=true]{background:var(--action);border-color:var(--action)}.re-toggle>input:checked+.re-track:after,.re-switch[aria-checked=true]:after{inset-inline-start:16px;background:#fff}.re-toggle>input:focus-visible+.re-track,.re-switch:focus-visible{outline:2px solid var(--action-text);outline-offset:2px}.re-toggle:hover .re-track{border-color:var(--text-subtle)}.re-switch{cursor:pointer;padding:0}.re-switch-row{display:inline-flex;align-items:center;gap:10px}.re-switch-row>label{font-size:13px;font-weight:500;color:var(--text-muted);cursor:pointer}.re-optrow{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;cursor:pointer}.re-optrow>span:first-of-type{display:grid;gap:2px;min-width:0}.re-optrow b{font-size:14.5px;font-weight:600;color:var(--text)}.re-optrow small{font-size:12.5px;line-height:1.5;color:var(--text-subtle)}.re-optrow>input{position:absolute;opacity:0;inline-size:1px;block-size:1px;pointer-events:none}.re-optrow>input:checked+span+.re-track,.re-optrow>input:checked~.re-track{background:var(--action);border-color:var(--action)}.re-optrow>input:checked~.re-track:after{inset-inline-start:16px;background:#fff}.re-optrow>input:focus-visible~.re-track{outline:2px solid var(--action-text);outline-offset:2px}.re-optrow.boxed{padding:12px 14px;border:1px solid var(--border);border-radius:var(--r-sm, 14px);background:var(--surface)}.re-section>.re-optrow:first-child h2{font-family:Manrope,Inter,sans-serif;font-size:18px;font-weight:700;letter-spacing:-.01em}.re-subblock{display:grid;gap:12px;padding:14px;border:1px solid var(--border);border-radius:var(--r-sm, 14px);background:var(--surface-2);min-width:0}.re-subblock-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px}.re-subblock-head b{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}.re-subblock .ref-input{background:var(--bg-2)}fieldset.re-subblock{margin:0}fieldset.re-subblock>legend{float:inline-start;inline-size:100%;font-size:13px;font-weight:600;margin-block-end:2px}.re-carrier-hint{margin-block:-8px 14px;max-width:68ch}.re-carrier-choice{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:20px;align-items:start}.re-carrier-or{align-self:stretch;display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--text-subtle);font-size:12.5px;font-weight:600;line-height:1}.re-carrier-or:before,.re-carrier-or:after{content:"";flex:1;inline-size:1px;background:var(--border)}.re-carrier-choice .ref-acts{min-block-size:46px}.re-carrier-logo{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-block-size:46px;min-width:0}.re-carrier-thumb{position:relative;display:grid;place-items:center;flex:none;block-size:40px;aspect-ratio:232 / 60;overflow:hidden;padding:0;border:1px solid var(--border-strong);border-radius:6px;background:#fff;color:#77726a;cursor:pointer}.re-carrier-thumb:hover{border-color:var(--text-subtle)}.re-carrier-thumb:focus-visible{outline:2px solid var(--action-text);outline-offset:2px}.re-carrier-thumb img{position:absolute;inset:0;inline-size:100%;block-size:100%;-o-object-fit:fill;object-fit:fill}.re-carrier-remove:hover:not(:disabled){color:var(--danger);background:var(--danger-soft)}.re-docs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}.re-doc-stack{display:grid;gap:8px;align-content:start;min-width:0}.re-doc{display:grid;gap:6px;min-width:0;align-content:start}.re-doc-row{position:relative;min-height:46px;padding:10px 12px 10px 14px;border:1px solid var(--border);border-radius:var(--r-field, 12px);background:var(--surface);transition:border-color .15s,background-color .15s}.re-doc-row>span:first-of-type{font-size:14px;font-weight:500;line-height:1.3;color:var(--text)}.re-doc-row:hover{background:var(--hover)}.re-doc[data-on]>.re-doc-row{border-color:var(--action);background:var(--surface-2)}.re-doc[data-on]>.re-doc-row>span:first-of-type{font-weight:650}.re-doc-row:has(>input:disabled){cursor:default}.re-doc-row:has(>input:disabled) .re-track{opacity:.6}.re-doc-inputs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px}.re-combo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.re-combo>div{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:10px 14px;border:1px solid var(--border);border-radius:var(--r-sm, 14px);background:var(--surface)}.re-combo>div:has([aria-checked=true]){border-color:color-mix(in srgb,var(--action) 50%,transparent);background:var(--surface-2)}.re-combo span{font-size:14px;font-weight:600}.reference-editor-preview{position:sticky;inset-block-start:96px;display:grid;gap:10px;min-width:0}.reference-editor-preview>header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px}.reference-editor-preview h2{font-family:Manrope,Inter,sans-serif;font-size:16px;font-weight:700}.reference-editor-preview header>div{display:flex;align-items:center;gap:8px;color:var(--text-muted)}.reference-editor-preview header span:not(:empty){display:inline-flex;align-items:center;height:24px;padding-inline:9px;border-radius:999px;border:1px solid var(--border);background:var(--surface);font-size:12px;font-weight:600;color:var(--text-muted);letter-spacing:.02em}.reference-editor-paper{position:relative;overflow:hidden;border:1px solid var(--border-strong);border-radius:var(--r-md, 18px);background:#fff;box-shadow:var(--panel-shadow)}.reference-editor-paper>div{margin-inline:auto;background:#fff;direction:ltr}.reference-editor-paper>p{padding:48px 16px;text-align:center;color:#5a544c;font-size:14px}.reference-editor-preview>p{color:var(--text-muted);font-size:13px}.reference-editor-savebar{position:sticky;inset-block-end:12px;z-index:20;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px;padding:10px 12px;border:1px solid var(--border-strong);border-radius:var(--r-md, 18px);background:var(--bg-2);box-shadow:var(--drop-shadow);min-width:0}.reference-editor-split+.reference-editor-savebar{width:calc((100% - 24px) * 7 / 12)}.re-savebar-status{flex:1 1 260px;min-width:0;display:grid;gap:4px;font-size:13.5px;color:var(--text-muted)}.re-savebar-status:empty{display:none}.re-savebar-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-inline-start:auto}.re-savebar-actions .ref-btn{min-height:44px}.reference-editor-errors{display:flex;align-items:flex-start;gap:8px;min-width:0;color:var(--danger);font-size:13px;line-height:1.5}.reference-editor-errors>svg{flex:none;margin-block-start:2px}.reference-editor-errors b{display:block;font-weight:700;color:var(--text);font-size:13.5px}.reference-editor-errors>div,.reference-editor-errors>ul{flex:1;min-width:0}.reference-editor-errors ul{list-style:none;padding:0;margin:2px 0 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1px 16px;max-height:112px;overflow:auto}.reference-editor-errors li{color:var(--danger);overflow-wrap:anywhere}.re-limit{color:var(--danger);font-weight:600;font-size:13.5px}.cmr-tool-savebar .cmr-tool-stored{display:inline-flex;align-items:center;gap:8px;color:var(--text-muted);font-size:13px}.cmr-tool-savebar .cmr-tool-stored svg{flex:none}.cmr-tool-confirm{font-size:13px;font-weight:600}.re-dialog{position:relative}.re-dialog>h2,.re-dialog>h3{font-family:Manrope,Inter,sans-serif;font-size:21px;font-weight:800;letter-spacing:-.02em;line-height:1.25;padding-inline-end:36px}.re-dialog>p{color:var(--text-muted);font-size:14px;line-height:1.6}.re-dialog .re-close{position:absolute;inset-block-start:14px;inset-inline-end:14px}.re-dialog .ref-btn{inline-size:100%}.re-dialog .re-dialog-actions{display:grid;gap:8px}.re-dialog--wide{width:min(640px,100%)!important}.re-dialog--logos{width:min(720px,100%)!important}.re-dialog ul.re-checks{list-style:none;padding:0;margin:0;display:grid;gap:8px}.re-dialog ul.re-checks li{display:flex;align-items:flex-start;gap:10px;font-size:14px;color:var(--text)}.re-dialog ul.re-checks li svg{flex:none;margin-block-start:3px;color:var(--success)}.re-quota{display:grid;gap:8px;padding:14px;border:1px solid var(--border);border-radius:var(--r-sm, 14px);background:var(--surface-2)}.re-quota>div{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:var(--text-muted)}.re-quota>div b{color:var(--text);font-variant-numeric:tabular-nums}.re-quota small{color:var(--text-subtle);font-size:12.5px}.re-fieldlist{display:grid;gap:8px;padding:14px;border:1px solid var(--border);border-radius:var(--r-sm, 14px);background:var(--surface)}.re-fieldlist>b{font-size:13.5px;font-weight:600}.re-fieldlist ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px}.re-fieldlist li{display:flex;align-items:center;gap:8px;font-size:13.5px;min-width:0}.re-fieldlist small{color:var(--text-subtle);font-size:12.5px}.re-progress-num{font:700 15px/1 Manrope,Inter,sans-serif;font-variant-numeric:tabular-nums}.re-logo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}.re-logo-grid button{display:grid;gap:6px;padding:8px;border:1px solid var(--border);border-radius:var(--r-field, 12px);background:var(--surface);text-align:center;transition:border-color .15s}.re-logo-grid button:hover,.re-logo-grid button:focus-visible{border-color:var(--action);outline:none}.re-logo-grid img{inline-size:100%;aspect-ratio:1;-o-object-fit:contain;object-fit:contain;border-radius:8px;background:#fff;padding:6px}.re-logo-grid span{font-size:12px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reference-editor .cmr-goods-editor>header{margin-block-end:16px}.reference-editor .cmr-goods-editor .goods-mode{color:var(--text-muted)}.reference-editor .cmr-goods-editor .goods-switch{inline-size:36px;block-size:22px;padding:2px;border:1px solid var(--border-strong);background:var(--surface-3, var(--surface-2))}.reference-editor .cmr-goods-editor .goods-switch:after{inline-size:16px;block-size:16px;background:var(--bg-2);box-shadow:0 1px 2px #00000040}.reference-editor .cmr-goods-editor .goods-mode input:checked+.goods-switch{background:var(--action);border-color:var(--action)}.reference-editor .cmr-goods-editor .goods-row{padding:6px 16px 16px;background:transparent;border-color:var(--border);border-radius:var(--r-sm, 14px)}.reference-editor .cmr-goods-editor .goods-row h3{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}.reference-editor .cmr-goods-editor .goods-field>label{font-size:13px;font-weight:600;color:var(--text)}.reference-editor .cmr-goods-editor .goods-input-wrap input,.reference-editor .cmr-goods-editor .goods-input-wrap select{padding-inline-start:14px}.reference-editor .cmr-goods-editor .goods-input-wrap input[aria-invalid=true]{border-color:var(--danger)}.reference-editor .cmr-goods-editor .goods-input-wrap input:disabled{background:var(--surface-2)}.reference-editor .cmr-goods-editor .goods-box{inset-block-start:13px;block-size:20px;padding:2px 6px;border-radius:6px;color:var(--text-muted);background:var(--surface-2)}.reference-editor .cmr-goods-editor .goods-error{color:var(--danger);font-size:13px}.reference-editor .cmr-goods-editor .goods-hint,.reference-editor .cmr-goods-editor .goods-totals{color:var(--text-subtle)}.reference-editor .cmr-goods-editor .goods-totals{font-variant-numeric:tabular-nums}.reference-editor .cmr-goods-editor footer button{min-height:40px;padding-inline:14px;border-radius:var(--r-sm, 14px);border-color:var(--border-strong);background:var(--surface);color:var(--text);font-size:13.5px}.reference-editor .cmr-goods-editor footer button:hover:not(:disabled){background:var(--surface-2)}.reference-editor .cmr-goods-editor footer button:focus-visible,.reference-editor .cmr-goods-editor .goods-row-head button:focus-visible{outline:2px solid var(--action-text);outline-offset:2px}.reference-editor .cmr-goods-editor .goods-row-head button:hover{color:var(--danger);background:var(--danger-soft)}.re-partial{display:grid;gap:16px;max-width:1140px;margin-inline:auto;color:var(--text);min-width:0;padding-block-end:24px}.re-partial-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.re-partial-head h1{font-family:Manrope,Inter,sans-serif;font-size:clamp(28px,2.6vw,36px);font-weight:800;letter-spacing:-.03em;line-height:1.12}.re-partial-head p{margin-block-start:8px;color:var(--text-muted);font-size:15px;line-height:1.55;max-width:68ch}.re-partial .re-section-head{align-items:center}.re-partial .re-section-head h2{font-variant-numeric:tabular-nums}.re-partial-logo{display:inline-flex;align-items:center;gap:6px;padding:3px 8px 3px 3px;border:1px solid var(--border);border-radius:10px;background:var(--surface);font-size:12.5px;color:var(--success)}.re-partial-logo img{inline-size:28px;block-size:28px;-o-object-fit:contain;object-fit:contain;border-radius:6px;background:#fff}.re-partial-picker{position:absolute;inset-inline-end:0;inset-block-start:calc(100% + 8px);z-index:30;width:min(320px,calc(100vw - 32px));max-height:320px;overflow:auto;padding:12px;border:1px solid var(--border-strong);border-radius:var(--r-md, 18px);background:var(--bg-2);box-shadow:var(--drop-shadow);display:grid;gap:10px}.re-partial-picker header{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;font-weight:600}.re-partial-picker .re-logo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.re-grid-5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.re-grid-5[data-cols="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}.re-grid-3{display:grid;grid-template-columns:2fr 1fr;gap:14px}.re-inline{display:flex;gap:8px;min-width:0}.re-inline>:first-child{flex:1;min-width:0}.re-inline select{inline-size:auto;min-inline-size:96px;flex:none}.re-partial-foot{position:sticky;inset-block-end:12px;z-index:20;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 16px;padding:12px 14px;border:1px solid var(--border-strong);border-radius:var(--r-md, 18px);background:var(--bg-2);box-shadow:var(--drop-shadow)}.re-partial-foot>div:first-child{display:grid;gap:6px;min-width:0;flex:1 1 320px}.re-totals{display:grid;gap:2px;font-size:13px;color:var(--text-muted);font-variant-numeric:tabular-nums}.re-totals b{color:var(--text);font-weight:600}.re-totals .over,.re-totals .over b{color:var(--danger);font-weight:600}.re-partial-summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;font-size:14px;font-weight:600}.re-partial-overlay{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:16px;background:var(--overlay)}.re-partial-overlay>div{width:min(440px,100%);display:grid;justify-items:center;gap:12px;padding:32px 24px;text-align:center;border:1px solid var(--border);border-radius:var(--r-lg, 24px);background:var(--bg-2);box-shadow:var(--drop-shadow)}.re-partial-overlay h3{font-family:Manrope,Inter,sans-serif;font-size:21px;font-weight:800;letter-spacing:-.02em}.re-partial-overlay p{color:var(--text-muted);font-size:14px;line-height:1.55}.re-partial-overlay .step{min-height:20px;font-size:13.5px;color:var(--text)}.re-partial-overlay .ok{color:var(--success)}.re-partial-overlay .bad{color:var(--danger)}@media(max-width:1280px){.reference-editor-split{grid-template-columns:minmax(0,1fr) 420px}.reference-editor-split+.reference-editor-savebar{width:calc(100% - 444px)}.reference-editor-heading--form{padding-inline-end:444px}}@media(max-width:1060px){.reference-editor-split{grid-template-columns:minmax(0,1fr)}.reference-editor-split+.reference-editor-savebar{width:100%}.reference-editor-heading--form{padding-inline-end:0}.reference-editor-tabs{display:flex;gap:4px;padding:4px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2)}.reference-editor-tabs button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border-radius:10px;font-size:14px;font-weight:600;color:var(--text-muted)}.reference-editor-tabs button[aria-pressed=true]{background:var(--bg-2);color:var(--text);box-shadow:0 1px 3px #0000002e}.reference-editor-tabs button:focus-visible{outline:2px solid var(--action-text);outline-offset:1px}.reference-editor-split[data-tab=form] .reference-editor-preview,.reference-editor-split[data-tab=preview] .reference-editor-form{display:none}.reference-editor-preview{position:static}.re-grid-5,.re-grid-5[data-cols="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.reference-editor-page,.cmr-tool-editor,.reference-editor-sections,.reference-editor-form{gap:12px}.re-section,.reference-editor-sections>.cmr-goods-editor{padding:16px 14px 18px;border-radius:16px}.re-grid,.re-docs,.re-combo,.re-grid-3,.re-grid-5,.re-grid-5[data-cols="4"]{grid-template-columns:minmax(0,1fr)}.re-section-head{margin-block-end:14px}.reference-editor-heading .reference-editor-tools{inline-size:100%}.reference-editor-heading .reference-editor-tools .ref-btn{flex:1 1 0;padding-inline:10px;font-size:13.5px}.reference-editor-tools .re-tool{flex:1 1 0;min-inline-size:0;padding-inline-end:12px}.reference-editor-tools .re-tool-text b{white-space:normal;font-size:14px}.re-usage{padding:12px 14px}.re-usage .ref-btn{inline-size:100%}.reference-editor-savebar,.re-partial-foot{inset-block-end:8px;padding:8px;gap:8px;border-radius:16px}.re-savebar-status{flex-basis:100%}.reference-editor-errors ul{max-height:64px}.re-savebar-actions{inline-size:100%}.re-savebar-actions .ref-btn{flex:1 1 0;padding-inline:12px}.re-doc-inputs{padding-inline-start:0}.re-fieldlist ul{grid-template-columns:minmax(0,1fr)}.re-carrier-choice{grid-template-columns:minmax(0,1fr);gap:10px}.re-carrier-or{flex-direction:row}.re-carrier-or:before,.re-carrier-or:after{inline-size:auto;block-size:1px}.re-partial-foot .re-savebar-actions{inline-size:100%}}@media(prefers-reduced-motion:reduce){.re-track,.re-track:after,.re-switch,.re-switch:after,.re-doc>button{transition:none}}
