.config-page-shell.cfg-editor {
    max-width: 1740px !important;
    --cfg-accent: var(--throne-accent, var(--throne-sidebar-bg, #075cb5));
    --cfg-surface: var(--throne-surface, #fff);
    --cfg-subtle: var(--throne-surface-muted, var(--bg-secondary, #f6f8fb));
    --cfg-border: var(--throne-border, #dce2ea);
    --cfg-text: var(--throne-text-primary, #17253b);
    --cfg-muted: var(--throne-text-secondary, #52647b);
    color: var(--cfg-text);
}
.cfg-editor .config-command-header { position: sticky; top: 0; z-index: 25; min-height: 70px; margin-bottom: 8px; background: var(--cfg-surface); border: 1px solid var(--cfg-border); border-radius: 12px; }
.cfg-editor .config-command-title { font-size: 25px; }
.cfg-editor .config-command-actions { flex-wrap: nowrap; }
.cfg-editor .config-scope-bar { display: flex; flex-wrap: wrap; margin-bottom: 20px; overflow: visible; }
.cfg-editor .config-scope-tabs { flex: 1 1 380px; }
html[data-throne-theme="dark"] .cfg-editor .config-scope-tab.is-active .config-scope-tab-button { color: var(--cfg-accent) !important; border-bottom-color: var(--cfg-accent) !important; }
.cfg-editor .config-scope-profile-select { display: flex; align-items: center; gap: 8px; flex: 1 1 460px; max-width: 660px; padding: 10px 14px; min-width: 0; }
.cfg-editor .config-scope-profile-select > select, .cfg-editor .config-scope-profile-select > .smooth-select-proxy { min-width: 120px; flex: 1; width: auto; }
.cfg-editor .config-profiles-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; }
.cfg-editor .config-profile-rail { position: sticky; top: 86px; }
.cfg-editor .config-section-nav { padding: 4px; border-radius: 12px; background: var(--cfg-surface); }
.cfg-editor .config-section-nav-button { min-height: 67px; padding: 11px 10px; gap: 10px; border: 0; border-radius: 7px; position: relative; }
.cfg-editor .config-section-label strong { font-size: 13px; font-weight: 650; }
.cfg-editor .config-section-label small { font-size: 11px; font-weight: 400; line-height: 1.4; }
.cfg-editor .config-section-step { width: 25px; height: 25px; min-width: 25px; font-size: 11px; }
.cfg-editor .cfg-section-status { margin-left: auto; font-size: 19px; color: var(--cfg-accent); }
.cfg-editor [data-section-state="error"] .cfg-section-status { color: var(--throne-status-danger-text, #bd3232); font-size: 15px; font-weight: 700; }
.cfg-editor .config-editor-pane { min-width: 0; container: config-editor / inline-size; }
.cfg-editor .config-editor-section { padding: 24px; border-radius: 12px; min-width: 0; }
.cfg-editor .section-title { font-size: 19px; margin-bottom: 20px; font-weight: 700; }
.cfg-editor .field-label, .cfg-editor .advanced-pricing-title { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 13px; color: var(--cfg-text); }
.cfg-editor input, .cfg-editor select, .cfg-editor .smooth-select-trigger { font-size: 14px; font-weight: 450; min-height: 42px; padding: 10px 12px; }
.cfg-editor input::placeholder, .cfg-editor textarea::placeholder { font-weight: 400; }
.cfg-editor .smooth-select-value { font-weight: 450; }
.cfg-editor .toggle-label { font-size: 14px; font-weight: 550; }
.cfg-editor .toggle-desc, .cfg-editor .config-field-help, .cfg-editor .advanced-pricing-copy, .cfg-editor .store-category-guidance, .cfg-editor .store-category-manager-intro { font-size: 12px; line-height: 1.55; font-weight: 400; color: var(--cfg-muted); }
.cfg-editor .btn, .cfg-editor .tr-button, .cfg-editor .custom-tag-input button { font-size: 13px; font-weight: 600; min-height: 40px; padding: 9px 13px; }
.cfg-editor .field-row { gap: 16px; margin-bottom: 16px; }
.cfg-editor .config-field-help { margin-top: 8px; }
.cfg-editor .config-marketplace-section-head { gap: 16px; padding-bottom: 16px; margin-bottom: 16px; }
.cfg-editor .config-marketplace-section-head .section-title { margin-bottom: 6px; }
.cfg-editor .config-marketplace-section-head p { margin: 0; font-size: 13px; }
.cfg-editor .config-setting-scope-badge { font-size: 10px; text-transform: none; font-weight: 500; }
.cfg-editor .config-save-state { font-size: 12px; }
.cfg-editor .cfg-meta { color: var(--cfg-muted); font-size: 12px; font-weight: 400; line-height: 1.6; margin: 8px 0; }
.cfg-editor .cfg-disclosure { border: 1px solid var(--cfg-border); border-radius: 8px; padding: 12px 14px; margin: 16px 0; background: var(--cfg-surface); }
.cfg-editor .cfg-disclosure > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--cfg-text); }
.cfg-editor .cfg-disclosure > summary .cfg-meta { margin-left: 8px; }
.cfg-editor .cfg-disclosure[open] > summary { margin-bottom: 14px; }
.cfg-editor .cfg-needs-attention::after { content: ' · Check fields'; color: var(--throne-status-danger-text, #bd3232); font-size: 12px; }
.cfg-editor .cfg-form-error { padding: 10px 16px; border: 1px solid #db9f49; background: var(--cfg-surface); border-radius: 8px; font-size: 13px; }
.cfg-editor .cfg-menu { position: relative; margin: 0; padding: 0; white-space: nowrap; border: 1px solid var(--cfg-border); border-radius: 8px; }
.cfg-editor .cfg-menu > summary { list-style: none; padding: 10px 12px; margin: 0 !important; min-height: 40px; display: flex; align-items: center; gap: 10px; box-sizing: border-box; }
.cfg-editor .cfg-menu > summary::after { content: '⌄'; }
.cfg-editor .cfg-menu > summary::-webkit-details-marker { display: none; }
.cfg-editor .cfg-menu-body, .cfg-editor .cfg-profile-menu .config-profile-actions { display: flex; flex-direction: column; position: absolute; right: 0; top: calc(100% + 6px); min-width: 195px; padding: 6px; border: 1px solid var(--cfg-border); border-radius: 10px; background: var(--cfg-surface); box-shadow: 0 10px 30px #00183220; z-index: 35; gap: 3px; }
.cfg-editor .cfg-menu-body button, .cfg-editor .cfg-profile-menu .config-profile-actions button { width: 100%; text-align: left; justify-content: flex-start; background: transparent; border: 0; box-shadow: none; border-radius: 5px; }
.cfg-editor .cfg-menu-body button:hover, .cfg-editor .cfg-profile-menu .config-profile-actions button:hover { background: var(--cfg-subtle); }
.cfg-editor .cfg-menu:not([open]) > .cfg-menu-body, .cfg-editor .cfg-menu:not([open]) > .config-profile-actions { display: none; }
.cfg-editor .cfg-menu-body button[onclick^="delete"], .cfg-editor #configResetBtn { color: var(--throne-status-danger-text, #bd3232); }
.cfg-editor .cfg-template-toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; border-bottom: 0; }
.cfg-editor .cfg-template-toolbar > .field-group { margin-bottom: 0; }
.cfg-editor .cfg-template-toolbar > .field-group:first-child { flex: 1; min-width: 180px; }
.cfg-editor .cfg-template-save { height: 42px; box-sizing: border-box; }
.cfg-editor .cfg-template-toolbar > .cfg-menu > summary { height: 40px; }
.cfg-editor .cfg-template-name { flex-basis: 100%; }
.cfg-editor .cfg-template-hint { color: var(--cfg-muted); font-size: 11px; margin: 8px 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--cfg-border); }
.cfg-editor .cfg-template-hint > span { display: block; margin-top: 4px; }
.cfg-editor .config-summary-panel { position: fixed; right: 22px; top: 92px; width: min(390px, calc(100vw - 28px)); max-height: calc(100vh - 110px); overflow: auto; z-index: 30; background: var(--cfg-surface); border: 1px solid var(--cfg-border); border-radius: 12px; box-shadow: 0 12px 42px #00183225; padding: 12px; box-sizing: border-box; }
.cfg-editor .config-summary-card { border: 0; padding: 6px; background: transparent; }
.cfg-editor .cfg-summary-tools { display: flex; justify-content: space-between; gap: 8px; }
.cfg-editor .cfg-summary-link { display: flex; width: 100%; padding: 12px 4px; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--cfg-border); border-radius: 0; cursor: pointer; }
.cfg-editor .cfg-summary-link:hover { background: var(--cfg-subtle); }
.cfg-editor .cfg-section-picker { display: none; }
.cfg-editor #profilePoliciesSection .cfg-policy-rows { display: grid; grid-template-columns: minmax(0, 1fr); }
.cfg-editor .cfg-policy-rows .smooth-select-trigger-text { white-space: normal; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.5; }
.cfg-editor .cfg-policy-rows .config-policy-input-row { align-items: start; }
.cfg-editor .cfg-policy-rows > .field-group { grid-column: auto; }
.cfg-editor .config-policy-edit-button { width: auto; }
.cfg-editor .store-category-profile-choice { max-width: none; width: 100%; }
.cfg-editor .store-category-manager { margin: 0; border: 0; padding: 0; background: transparent; }
.cfg-editor .cfg-category-search { display: flex; align-items: end; gap: 12px; margin: 18px 0 12px; }
.cfg-editor .cfg-category-search label { flex: 1; }
.cfg-editor .store-category-row { min-height: 52px; padding: 7px 10px 7px calc(10px + var(--store-category-depth, 0) * 18px); gap: 8px; grid-template-columns: auto auto minmax(0, 1fr) auto auto; }
.cfg-editor .store-category-row:not(:has(.cfg-category-fold))::before { content: ''; width: 24px; grid-row: 1; grid-column: 1; }
.cfg-editor .store-category-use { grid-column: 3; font-size: 13px; font-weight: 550; min-width: 0; }
.cfg-editor .store-category-drag-handle { grid-column: 2; }
.cfg-editor .store-category-row code { grid-column: 4; }
.cfg-editor .store-category-row-actions { grid-column: 5; gap: 2px; }
.cfg-editor .store-category-row-actions button { min-width: 28px; min-height: 30px; }
.cfg-editor .store-category-order-button { display: inline-flex; }
.cfg-editor .cfg-category-fold { min-width: 24px; min-height: 30px; background: transparent; border: 0; color: var(--cfg-accent); cursor: pointer; grid-column: 1; }
.cfg-editor .store-category-footer { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--cfg-border); }
.cfg-editor .title-preview-container { margin: 0 0 20px; border-color: color-mix(in srgb, var(--cfg-accent) 25%, var(--cfg-border)); background: color-mix(in srgb, var(--cfg-accent) 4%, var(--cfg-surface)); padding: 16px; }
.cfg-editor #titlePreview { display: block; font-size: 19px; line-height: 1.5; overflow-wrap: anywhere; }
.cfg-editor #titleLength { font-size: 14px; font-weight: 600; }
.cfg-editor .cfg-sample-picker { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 12px; }
.cfg-editor .cfg-sample-picker select, .cfg-editor .cfg-sample-picker .smooth-select-proxy { max-width: 200px; }
.cfg-editor .tag-builder { min-height: 68px; padding: 12px; }
.cfg-editor .tag-chip { font-size: 13px; padding: 8px 10px; }
.cfg-editor .tag-palette .tag-option { color: var(--cfg-muted); opacity: 1; font-weight: 500; }
.cfg-editor .cfg-palette-label { margin-top: 16px; }
.cfg-editor .title-truncate-settings { margin: 0; padding: 0; border: 0; background: transparent; }
.cfg-editor .title-truncate-order { gap: 5px; }
.cfg-editor .title-truncate-action { min-height: 41px; padding: 5px 10px; border-radius: 6px; }
.cfg-editor .title-truncate-name { font-size: 13px; font-weight: 500; }
.cfg-editor .title-truncate-buttons button { min-width: 32px; min-height: 30px; }
.cfg-editor .pricing-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 0; margin-bottom: 16px; }
.cfg-editor .pricing-tab-btn { border: 1px solid var(--cfg-border); border-radius: 8px; padding: 12px; font-size: 14px; text-align: left; }
html[data-throne-theme="dark"] .cfg-editor .pricing-tab-btn.active { color: var(--cfg-accent) !important; border-color: var(--cfg-accent) !important; background: color-mix(in srgb, var(--cfg-accent) 9%, var(--cfg-surface)) !important; }
.cfg-editor .cfg-pricing-tab-summary { display: block; font-size: 11px; font-weight: 400; margin-top: 5px; line-height: 1.45; }
.cfg-editor .cfg-price-tester { background: color-mix(in srgb, var(--cfg-accent) 4%, var(--cfg-surface)); border: 1px solid var(--cfg-border); border-radius: 10px; padding: 16px; margin-bottom: 20px; }
.cfg-editor .cfg-block-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.cfg-editor .cfg-price-test-inputs { display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr); gap: 22px; align-items: end; margin-top: 10px; }
.cfg-editor .cfg-price-test-inputs output { font-size: 30px; font-weight: 650; line-height: 1.4; color: var(--cfg-accent); }
.cfg-editor .cfg-fallback-samples { padding: 8px 0 0; margin: 4px 0 0; background: transparent; border: 0; }
.cfg-editor .cfg-fallback-inputs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; font-size: 12px; }
.cfg-editor .advanced-pricing-card { padding: 16px; border-radius: 9px; }
.cfg-editor .advanced-pricing-head { gap: 16px; }
.cfg-editor .advanced-pricing-copy { max-width: 720px; margin-top: 5px; }
.cfg-editor .advanced-pricing-rules { gap: 5px; }
.cfg-editor .cfg-rule-header, .cfg-editor .advanced-pricing-rule { display: grid; grid-template-columns: 38px minmax(70px, 1fr) minmax(70px, 1fr) minmax(105px, 1.3fr) minmax(75px, 1fr) minmax(75px, 1fr) 28px; gap: 8px; align-items: center; }
.cfg-editor .cfg-rule-header { font-size: 11px; color: var(--cfg-muted); margin: 10px 8px 6px; }
.cfg-editor .advanced-pricing-rule { padding: 7px 8px; border-radius: 6px; }
.cfg-editor .advanced-pricing-field { font-size: 0; gap: 0; min-width: 0; }
.cfg-editor .advanced-pricing-field input, .cfg-editor .advanced-pricing-field select, .cfg-editor .advanced-pricing-field .smooth-select-trigger { min-height: 36px; padding: 7px; font-size: 13px; width: 100%; }
.cfg-editor .advanced-pricing-field-min { grid-column: 2; }
.cfg-editor .advanced-pricing-field-max { grid-column: 3; }
.cfg-editor .advanced-pricing-field-type { grid-column: 4; }
.cfg-editor .advanced-pricing-field-value { grid-column: 5; }
.cfg-editor .advanced-pricing-field-roundup { grid-column: 6; }
.cfg-editor .advanced-rule-drag-handle { grid-column: 1; grid-row: 1; align-self: center; min-height: 32px; width: 32px; }
.cfg-editor .advanced-rule-remove { grid-column: 7; grid-row: 1; margin: 0; min-height: 30px; }
.cfg-editor #profilePricingSection [data-advanced-pricing-row] { display: grid; grid-template-columns: 38px minmax(70px, 1fr) minmax(70px, 1fr) minmax(105px, 1.3fr) minmax(75px, 1fr) minmax(75px, 1fr) 28px; padding: 7px 8px; align-items: center; }
.cfg-editor #profilePricingSection .advanced-pricing-field-min { grid-area: 1 / 2; }
.cfg-editor #profilePricingSection .advanced-pricing-field-max { grid-area: 1 / 3; }
.cfg-editor #profilePricingSection .advanced-pricing-field-type { grid-area: 1 / 4; }
.cfg-editor #profilePricingSection .advanced-pricing-field-value { grid-area: 1 / 5; }
.cfg-editor #profilePricingSection .advanced-pricing-field-roundup { grid-area: 1 / 6; }
.cfg-editor #profilePricingSection .advanced-rule-remove { grid-area: 1 / 7; width: 28px; }
.cfg-editor #profilePricingSection .advanced-rule-drag-handle { position: static; grid-area: 1 / 1; }
.cfg-editor .advanced-rule-drag-handle .tr-icon { font-size: 16px; }
.cfg-editor .cfg-rule-number { font-size: 10px; font-weight: 500; }
.cfg-editor .cfg-rule-notes { margin: 12px 0; font-size: 12px; line-height: 1.7; color: var(--cfg-muted); }
.cfg-editor .cfg-rule-notes summary { cursor: pointer; }
.cfg-editor .cfg-rule-notes ul { margin: 8px 0; padding-left: 20px; }
.cfg-editor .cfg-offer-settings .field-row { margin-bottom: 0; }
.cfg-editor .cfg-fallback-summary { margin: 0 0 8px; }
.cfg-editor .cfg-description-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.cfg-editor .cfg-description-controls > label { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.cfg-editor .cfg-description-controls .smooth-select-proxy { width: auto; min-width: 105px; }
.cfg-editor .cfg-segments { display: flex; border: 1px solid var(--cfg-border); border-radius: 8px; overflow: hidden; }
.cfg-editor .cfg-segments button { background: var(--cfg-surface); color: var(--cfg-muted); border: 0; padding: 10px 12px; cursor: pointer; font-size: 12px; min-height: 40px; }
.cfg-editor .cfg-segments button[aria-pressed="true"] { color: var(--cfg-accent); background: color-mix(in srgb, var(--cfg-accent) 9%, var(--cfg-surface)); font-weight: 600; }
.cfg-editor .cfg-description-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.cfg-editor .cfg-description-layout[data-mode="editor"], .cfg-editor .cfg-description-layout[data-mode="preview"] { grid-template-columns: minmax(0, 1fr); }
.cfg-editor .cfg-description-layout[data-mode="editor"] .description-preview-container, .cfg-editor .cfg-description-layout[data-mode="preview"] .cfg-code-editor { display: none; }
.cfg-editor .cfg-code-editor { position: relative; height: 580px; overflow: hidden; border: 1px solid var(--cfg-border); border-radius: 9px; background: var(--cfg-subtle); }
.cfg-editor .cfg-code-editor #description, .cfg-editor .cfg-highlight { position: absolute; top: 0; left: 40px; width: calc(100% - 40px); height: 100%; margin: 0; box-sizing: border-box; padding: 16px 12px; font: 13px/1.8 Consolas, 'Courier New', monospace; tab-size: 4; white-space: pre; overflow: auto; overflow-wrap: normal; border: 0; border-radius: 0; resize: none; }
.cfg-editor .cfg-code-editor #description { z-index: 2; color: transparent !important; caret-color: var(--cfg-text); background: transparent !important; -webkit-text-fill-color: transparent; }
.cfg-editor .cfg-code-editor #description::selection { background: #409bff45; }
.cfg-editor .cfg-highlight { pointer-events: none; color: var(--cfg-text); }
.cfg-editor .cfg-highlight code { font: inherit; background: transparent; color: inherit; padding: 0; }
.cfg-editor .cfg-line-numbers { position: absolute; left: 0; top: 0; width: 40px; height: 100%; padding: 16px 8px; margin: 0; box-sizing: border-box; font: 13px/1.8 Consolas, 'Courier New', monospace; overflow: hidden; color: var(--cfg-muted); text-align: right; border-right: 1px solid var(--cfg-border); user-select: none; }
.cfg-editor .cfg-syntax-tag { color: #2573ba; }
.cfg-editor .cfg-syntax-token { color: #9a5bba; }
.cfg-editor .cfg-syntax-comment { color: #68797f; }
html[data-throne-theme="dark"] .cfg-editor .cfg-syntax-tag { color: #80c5ff; }
html[data-throne-theme="dark"] .cfg-editor .cfg-syntax-token { color: #d6a2f0; }
html[data-throne-theme="dark"] .cfg-editor .cfg-syntax-comment { color: #9baaaf; }
.cfg-editor .description-preview-container { margin: 0; min-width: 0; border-radius: 9px; overflow: hidden; }
.cfg-editor .description-preview-frame { width: 100%; max-width: 100%; height: 528px; min-height: 528px; resize: none; box-sizing: border-box; overflow: auto; background: #fff; color: #17253b; }
.cfg-editor #descriptionPreview[data-width="mobile"] { width: min(100%, 375px); margin-inline: auto; border-inline: 1px solid #dce2ea; }
.cfg-editor .config-token-toolbar { gap: 7px; margin-bottom: 16px; }
.cfg-editor .config-token-label { width: 100%; color: var(--cfg-muted); font-size: 12px; font-weight: 600; }
.cfg-editor .config-insert-token { min-height: 32px; padding: 5px 9px; font: 12px/1.5 Consolas, monospace; border-radius: 6px; color: var(--cfg-text); background: var(--cfg-subtle); border-color: var(--cfg-border); }
.cfg-editor .config-insert-token:hover, .cfg-editor .config-insert-token:focus-visible { color: var(--cfg-accent); border-color: var(--cfg-accent); background: color-mix(in srgb, var(--cfg-accent) 9%, var(--cfg-surface)); }
.cfg-editor .cfg-image-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.cfg-editor .cfg-image-choice { padding: 12px; border: 1px solid var(--cfg-border); border-radius: 10px; background: var(--cfg-surface); cursor: pointer; color: var(--cfg-text); font-size: 13px; }
.cfg-editor .cfg-image-choice[aria-pressed="true"] { border: 2px solid var(--cfg-accent); padding: 11px; background: color-mix(in srgb, var(--cfg-accent) 4%, var(--cfg-surface)); }
.cfg-editor .cfg-card-sample { display: flex; justify-content: center; align-items: center; width: min(100%, 165px); aspect-ratio: 1; margin: 0 auto 10px; overflow: hidden; border-radius: 3px; }
.cfg-editor .cfg-card-sample img { height: 94%; width: auto; max-width: 100%; object-fit: contain; }
.cfg-editor [data-background="white"] { background: #fff; border: 1px solid #e4e7eb; }
.cfg-editor [data-background="black"] { background: #111; }
.cfg-editor .image-slots { gap: 14px; }
.cfg-editor .image-slot { padding: 12px; min-width: 0; }
.cfg-editor .image-upload-zone { width: 100%; height: 150px; min-height: 150px; aspect-ratio: auto; font-size: 12px; color: var(--cfg-muted); background: transparent; }
.cfg-editor .image-upload-zone img { max-height: 145px; object-fit: contain; }
.cfg-editor .image-slot-header .remove-img { background: transparent; border: 0; font-size: 11px; color: var(--throne-status-danger-text, #bd3232); cursor: pointer; }
.cfg-editor .image-slot-controls button { font-size: 11px; min-height: 34px; padding: 5px; }
.cfg-editor .cfg-image-gallery { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--cfg-border); }
.cfg-editor #configurationImageSequence { display: flex; gap: 12px; overflow-x: auto; padding: 14px 0; }
.cfg-editor #configurationImageSequence figure { width: 135px; flex: 0 0 135px; margin: 0; }
.cfg-editor .cfg-sequence-photo { display: flex; gap: 3px; align-items: center; justify-content: center; height: 135px; border-radius: 5px; overflow: hidden; }
.cfg-editor .cfg-sequence-photo img { object-fit: contain; width: auto; max-width: 100%; height: 90%; min-width: 0; }
.cfg-editor .cfg-sequence-photo .cfg-sample-card-back { border-radius: 5% / 3.6%; }
.cfg-editor .cfg-sequence-photo[data-photo-type="combined"] img { max-width: calc((100% - 3px) / 2); height: auto; max-height: 90%; }
.cfg-editor #configurationImageSequence figcaption { font-size: 11px; margin-top: 8px; }
.cfg-editor #configurationImageSequence figcaption b { font-size: 10px; padding: 2px 6px; background: var(--cfg-subtle); border: 1px solid var(--cfg-border); border-radius: 20px; margin-right: 3px; }
.cfg-editor .config-account-workspace { max-width: 1120px; margin: auto; }
.cfg-editor .account-settings-sections { display: block; }
.cfg-editor .account-settings-card { margin-bottom: 20px; }
.cfg-editor .cfg-account-fields { display: grid; grid-template-columns: 1.2fr 1fr .7fr; gap: 16px; align-items: end; }
.cfg-editor .cfg-account-fields .account-region-control { max-width: none; }
.cfg-editor .cfg-account-fields > * { margin: 0; align-self: stretch; }
.cfg-editor .cfg-account-fields .account-region-control { display: flex; flex-direction: column; align-items: stretch; justify-content: start; gap: 8px; }
.cfg-editor .cfg-account-fields .field-group { display: flex; flex-direction: column; gap: 8px; }
.cfg-editor .cfg-account-fields .field-label { margin: 0; }
.cfg-editor #accountSettingsSection .section-title { text-transform: none; letter-spacing: 0; font-weight: 650; font-size: 18px; color: var(--cfg-text); margin-bottom: 8px; }
.cfg-editor #accountSettingsSection .settings-section-copy, .cfg-editor #accountSettingsSection .affiliate-program-copy, .cfg-editor #accountSettingsSection .affiliate-status { color: var(--cfg-muted); font-weight: 400; }
.cfg-editor .affiliate-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cfg-editor .affiliate-metric { padding: 15px; }
.cfg-editor .affiliate-metric strong { font-size: 24px; }
.cfg-editor .affiliate-metric span { text-transform: none; color: var(--cfg-muted); font-weight: 500; font-size: 12px; }
.cfg-editor .config-account-shared-resources { flex-wrap: wrap; }
.cfg-editor .cfg-library-links { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; padding-left: 35px; }
.cfg-editor :is(button, summary, input, select, textarea, [role="switch"]):focus-visible { outline: 2px solid var(--cfg-accent); outline-offset: 3px; }
@media (min-width: 1500px) {
    .cfg-editor.cfg-summary-pinned:has(.config-summary-panel:not([hidden])) .config-profiles-layout { grid-template-columns: 210px minmax(0, 1fr) 300px; }
    .cfg-editor.cfg-summary-pinned .config-summary-panel { position: sticky; top: 85px; right: auto; width: 300px; box-shadow: none; grid-column: 3; }
}
@container config-editor (max-width: 640px) {
    .cfg-editor .cfg-rule-header { display: none; }
    .cfg-editor .advanced-pricing-rule { grid-template-columns: 30px repeat(2, minmax(0, 1fr)) 26px; gap: 10px; padding: 10px; }
    .cfg-editor .advanced-pricing-field { font-size: 11px; gap: 4px; }
    .cfg-editor .advanced-pricing-field-min { grid-column: 2; grid-row: 1; }
    .cfg-editor .advanced-pricing-field-max { grid-column: 3; grid-row: 1; }
    .cfg-editor .advanced-pricing-field-type { grid-column: 2; grid-row: 2; }
    .cfg-editor .advanced-pricing-field-value { grid-column: 3; grid-row: 2; }
    .cfg-editor .advanced-pricing-field-roundup { grid-column: 2 / 4; grid-row: 3; }
    .cfg-editor .advanced-rule-remove { grid-column: 4; grid-row: 1; }
    .cfg-editor .cfg-description-layout { grid-template-columns: minmax(0, 1fr); }
    .cfg-editor .cfg-code-editor { height: 420px; }
    .cfg-editor .description-preview-frame { height: 420px; min-height: 420px; }
    .cfg-editor #profilePricingSection [data-advanced-pricing-row] { grid-template-columns: 30px repeat(2, minmax(0, 1fr)) 26px; padding: 10px; }
    .cfg-editor #profilePricingSection .advanced-pricing-field-min { grid-area: 1 / 2; }
    .cfg-editor #profilePricingSection .advanced-pricing-field-max { grid-area: 1 / 3; }
    .cfg-editor #profilePricingSection .advanced-pricing-field-type { grid-area: 2 / 2; }
    .cfg-editor #profilePricingSection .advanced-pricing-field-value { grid-area: 2 / 3; }
    .cfg-editor #profilePricingSection .advanced-pricing-field-roundup { grid-area: 3 / 2 / auto / 4; }
    .cfg-editor #profilePricingSection .advanced-rule-remove { grid-area: 1 / 4; }
}
@media (max-width: 1499px) { .cfg-editor .cfg-summary-pin { display: none; } }
@media (max-width: 1050px) {
    .cfg-editor .config-scope-bar { flex-wrap: wrap; }
    .cfg-editor .config-scope-profile-select { max-width: none; width: 100%; border-top: 1px solid var(--cfg-border); }
    .cfg-editor .config-profiles-layout { grid-template-columns: 175px minmax(0, 1fr); gap: 14px; }
    .cfg-editor .config-section-label small { display: none; }
    .cfg-editor .config-section-nav-button { min-height: 55px; }
}
@media (max-width: 760px) {
    .config-page-shell.cfg-editor { padding-inline: 12px !important; }
    .cfg-editor .config-command-header { gap: 10px; flex-wrap: wrap; padding: 12px; }
    .cfg-editor .config-command-context { flex: 1; }
    .cfg-editor .config-command-title { font-size: 21px; }
    .cfg-editor .config-command-breadcrumb { display: none; }
    .cfg-editor .config-command-actions { width: 100%; justify-content: space-between; }
    .cfg-editor .config-command-actions .tr-button { min-height: 42px; }
    .cfg-editor .config-scope-tab-title { font-size: 12px; }
    .cfg-editor .config-scope-tab-button { padding: 12px 10px; }
    .cfg-editor .config-scope-profile-select { flex-wrap: wrap; padding: 10px; }
    .cfg-editor .config-scope-profile-select > .smooth-select-proxy, .cfg-editor .config-scope-profile-select > select { flex-basis: 100%; }
    .cfg-editor .config-profiles-layout { grid-template-columns: minmax(0, 1fr); }
    .cfg-editor .config-profile-rail { display: none; }
    .cfg-editor .cfg-section-picker { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 12px; }
    .cfg-editor .cfg-section-picker > select, .cfg-editor .cfg-section-picker > .smooth-select-proxy { flex: 1; min-width: 0; }
    .cfg-editor .config-editor-section { padding: 16px; }
    .cfg-editor .cfg-policy-rows .config-policy-input-row { flex-wrap: wrap; }
    .cfg-editor .config-policy-control { flex-basis: 100%; }
    .cfg-editor .cfg-template-toolbar > .field-group:first-child { flex-basis: 100%; }
    .cfg-editor .cfg-template-hint { margin-bottom: 18px; }
    .cfg-editor .cfg-description-controls { align-items: stretch; }
    .cfg-editor .cfg-description-controls > label { flex: 1; flex-wrap: wrap; }
    .cfg-editor .pricing-tab-btn { padding: 10px 8px; font-size: 12px; }
    .cfg-editor .cfg-pricing-tab-summary { font-size: 10px; }
    .cfg-editor .cfg-fallback-inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cfg-editor .cfg-image-choices { gap: 6px; }
    .cfg-editor .cfg-image-choice { padding: 7px; font-size: 11px; }
    .cfg-editor .cfg-image-choice[aria-pressed="true"] { padding: 6px; }
    .cfg-editor .image-slots { grid-template-columns: minmax(0, 1fr); }
    .cfg-editor .cfg-account-fields { grid-template-columns: minmax(0, 1fr); }
    .cfg-editor .affiliate-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cfg-editor .cfg-library-links { padding-left: 0; }
    .cfg-editor .store-category-row { grid-template-columns: 20px 24px minmax(0, 1fr); }
    .cfg-editor .store-category-row code { grid-column: 3; }
    .cfg-editor .store-category-row-actions { grid-column: 3; justify-content: start; }
    .cfg-editor .cfg-category-search { flex-wrap: wrap; }
    .cfg-editor .cfg-category-search label { flex-basis: 100%; }
    .cfg-editor .config-summary-panel { top: 135px; max-height: calc(100vh - 150px); right: 12px; }
}
@media (forced-colors: active) {
    .cfg-editor .cfg-code-editor #description { color: CanvasText !important; -webkit-text-fill-color: CanvasText; }
    .cfg-editor .cfg-highlight { visibility: hidden; }
}
