/* One viewport, one scroll owner. Content order follows the seller form. */
html.article-editor-open,html.article-editor-open body{overflow:hidden!important}
#editor.article-flow-editor{position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;min-width:0;padding:0;border:0;border-radius:0;overflow:auto;overscroll-behavior:contain;background:#fff;color:#191919;box-shadow:none;color-scheme:light}
#editor.article-flow-editor #edit-form{display:block;width:min(100%,1104px);max-width:1104px;height:auto;min-height:100%;margin:0 auto;padding:0 48px;overflow:visible;background:#fff;color:#191919}
#editor.article-flow-editor #edit-form>.dialog-head{position:static;min-height:0;margin:0;padding:28px 0 24px;background:#fff;border-bottom:1px solid #ddd;color:#191919}
#editor.article-flow-editor .dialog-head h2{font-size:25px;line-height:1.3}
#editor.article-flow-editor .dialog-head h2:focus{outline:none}
#editor.article-flow-editor .dialog-head small{font-size:13px;color:#555}
#editor.article-flow-editor .editor-head-actions{display:flex;align-items:center;gap:12px}
#editor.article-flow-editor .editor-head-actions .close{width:44px;height:44px;color:#191919;background:#fff;border:0}
#editor.article-flow-editor .editor-workspace{display:block;width:100%;max-width:none;height:auto;min-height:0;overflow:visible;scroll-behavior:auto;background:#fff;color:#191919;touch-action:auto}
#editor.article-flow-editor .editor-legacy-controls,#editor.article-flow-editor .product-cockpit,#editor.article-flow-editor .editor-tabs,#editor.article-flow-editor .editor-article-tabs,#editor.article-flow-editor #mobile-editor-summary,#editor.article-flow-editor #delete-part{display:none!important}
#editor.article-flow-editor .article-flow-section{padding:32px 0 38px;border-bottom:1px solid #ddd;scroll-margin:16px}
#editor.article-flow-editor .article-flow-heading{margin-bottom:24px}
#editor.article-flow-editor .article-flow-heading h3{font-size:17px;font-weight:700;text-transform:uppercase;margin:0 0 12px;color:#191919}
#editor.article-flow-editor .article-flow-heading p{margin:0;color:#555;font-size:14px;line-height:1.5}
#editor.article-flow-editor .grid.editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 32px;margin:18px 0 0}
#editor.article-flow-editor .grid label,#editor.article-flow-editor .ebay-category-picker-field{font-size:14px;font-weight:400;color:#191919;min-width:0}
#editor.article-flow-editor input:not([type=checkbox]):not([type=hidden]),#editor.article-flow-editor textarea,#editor.article-flow-editor select{font:inherit;color:#191919;background:#f8f8f8;border:1px solid #8f8f8f;border-radius:8px;min-height:42px;padding:11px 14px;max-width:100%;width:100%}
#editor.article-flow-editor textarea{min-height:100px;resize:vertical}
#editor.article-flow-editor .field-counter{display:block;text-align:right;color:#555;font-size:12px;font-weight:400}
#editor.article-flow-editor button{font:inherit;cursor:pointer;min-height:40px}
#editor.article-flow-editor button:focus-visible,#editor.article-flow-editor input:focus-visible,#editor.article-flow-editor textarea:focus-visible,#editor.article-flow-editor select:focus-visible,#editor.article-flow-editor summary:focus-visible{outline:3px solid #3668db;outline-offset:3px}
#editor.article-flow-editor button:disabled{cursor:default;opacity:.55}
#editor.article-flow-editor .image-box{margin:0;padding:0;border:0;border-radius:0;background:#fff;overflow:visible;max-height:none}
#editor.article-flow-editor #image-count{display:block;font-size:14px;color:#555;margin:0 0 14px}
#editor.article-flow-editor .vendo-media-toolbar{display:flex;justify-content:flex-end;float:right;margin-top:-45px}
#editor.article-flow-editor .image-gallery{display:grid;width:100%;grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-rows:auto;gap:10px;max-height:none;height:auto;overflow:visible;margin:0 0 16px;padding:0;align-items:start}
#editor.article-flow-editor .image-card,#editor.article-flow-editor .image-card.is-featured{grid-column:auto;grid-row:auto;position:relative;aspect-ratio:1;margin:0;min-width:0;width:100%;height:auto;padding:0;flex:none;border:0;border-radius:16px;overflow:visible;background:#f5f5f5}
#editor.article-flow-editor .image-card.is-main{grid-column:span 3;grid-row:span 3;aspect-ratio:1}
#editor.article-flow-editor .image-card .image-preview{display:block;width:100%;height:100%;aspect-ratio:1;padding:0;overflow:hidden;border:0;border-radius:16px;background:#f5f5f5;min-height:0}
#editor.article-flow-editor .image-card .image-preview img{width:100%;height:100%;aspect-ratio:1;object-fit:contain;max-height:none}
#editor.article-flow-editor .image-card .image-quick-actions{display:none}
#editor.article-flow-editor .image-main-badge{position:absolute;top:auto;bottom:10px;left:50%;transform:translateX(-50%);background:#555e;color:#fff;padding:7px 12px;border-radius:24px;font-size:12px}
#editor.article-flow-editor .image-menu-toggle{display:block!important;position:absolute;top:4px;right:4px;min-width:32px;min-height:32px;padding:0;border:1px solid #ccc;border-radius:50%;background:#fff;color:#191919;font-size:17px;z-index:2}
#editor.article-flow-editor .image-card-actions:not([hidden]){display:flex;flex-direction:column;position:absolute;top:40px;right:0;left:auto;bottom:auto;z-index:6;min-width:190px;padding:8px;background:#fff;border:1px solid #bbb;box-shadow:0 4px 15px #0002;border-radius:10px}
#editor.article-flow-editor .image-card-actions button{background:#fff;color:#191919;text-align:left;padding:8px;border:0}
#editor.article-flow-editor .image-add-wrap{position:relative;min-width:0;width:100%;height:auto;flex:none;aspect-ratio:1}
#editor.article-flow-editor .image-add-tile{width:100%;height:100%;min-height:0;aspect-ratio:1;border:1px dashed #aaa;border-radius:16px;background:#f7f7f7;color:#191919;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px;font-size:12px}
#editor.article-flow-editor .image-add-tile>span{font-size:28px}
#editor.article-flow-editor .image-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:10px;padding:25px;background:#f7f7f7;border-radius:12px}
#editor.article-flow-editor .image-empty .image-add-wrap{width:125px}
#editor.article-flow-editor .image-note{display:block;color:#555;font-size:12px;line-height:1.5}
#editor.article-flow-editor .article-ebay-data-card,#editor.article-flow-editor .article-gpsr-card,#editor.article-flow-editor .ebay-fitment-box{background:#fff;color:#191919;border:0;padding:0;margin:0;box-shadow:none}
#editor.article-flow-editor .sales-category-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
#editor.article-flow-editor .sales-category-grid>label{display:flex;flex-direction:column;gap:8px}
#editor.article-flow-editor .sales-category-grid>.ebay-category-picker-field:nth-child(2){grid-row:2;grid-column:1/-1}
#editor.article-flow-editor .sales-category-grid>.ebay-category-picker-field:nth-child(3){grid-row:1;grid-column:2}
#editor.article-flow-editor .ebay-category-picker-field button{background:#fff;color:#191919}
#editor.article-flow-editor .category-infer-save,#editor.article-flow-editor #ebay-category-infer-result,#editor.article-flow-editor #article-gpsr-edit{display:none}
#editor.article-flow-editor .article-flow-options{margin-top:24px;border:0}
#editor.article-flow-editor .article-flow-options summary{cursor:pointer;font-size:14px;text-decoration:underline;padding:8px 0;color:#333}
#editor.article-flow-editor .article-flow-options .article-ebay-data-card{margin-top:24px}
#editor.article-flow-editor .ebay-aspect-fields-grid,#editor.article-flow-editor .wheel-fields-grid{grid-template-columns:1fr 1fr;gap:18px 32px}
#editor.article-flow-editor .article-auto-note{font-size:13px;line-height:1.5;color:#555}
#editor.article-flow-editor .article-policy-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:14px}
#editor.article-flow-editor .article-policy-summary dd{margin:0;overflow-wrap:anywhere}
#editor.article-flow-editor .package-fields-grid{display:flex;flex-wrap:wrap;gap:20px}
#editor.article-flow-editor #edit-form>.editor-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;position:static;inset:auto;margin:0;padding:30px 0 48px;border:0;background:#fff;box-shadow:none;gap:12px}
#editor.article-flow-editor .editor-actions .article-save-hint,#editor.article-flow-editor #editor-save-result{flex-basis:100%;text-align:center;font-size:13px;line-height:1.5;margin:0 0 10px}
#editor.article-flow-editor .editor-actions button{border:1px solid #191919;border-radius:24px;background:#fff;color:#191919;padding:12px 24px;font-size:15px;font-weight:600}
#editor.article-flow-editor .editor-actions .save{background:#2459db;color:#fff;border-color:#2459db;min-width:180px}
.article-drafts-entry{display:flex;justify-content:flex-end;margin-bottom:12px}.article-drafts-entry button{padding:9px 16px;border:1px solid #aab8c8;border-radius:8px;background:#fff;color:#183f66;cursor:pointer}
#article-editor-feedback{padding:14px 18px;border:1px solid #9bcbb2;background:#edf9f2;color:#194c32;border-radius:8px}
#article-drafts-dialog{width:min(760px,95vw);max-height:90dvh;overflow:auto}.article-drafts-shell{padding:24px}#article-drafts-list article{display:flex;align-items:center;gap:10px;padding:16px 0;border-bottom:1px solid #ddd}#article-drafts-list article>div{flex:1;min-width:0}#article-drafts-list small{display:block;margin-top:6px;color:#555}#article-drafts-list button{padding:10px;border-radius:8px;border:1px solid #999;background:#fff}
.article-drafts-search{display:grid;gap:6px;margin:18px 0 8px;font-weight:600}.article-drafts-search input{width:100%;padding:12px;border:1px solid #aab8c8;border-radius:8px;font:inherit}.article-drafts-pagination{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin:18px 0}.article-drafts-pagination #article-drafts-count{margin-right:auto}.article-drafts-pagination button{padding:9px 12px;border:1px solid #aab8c8;border-radius:8px;background:#fff;color:#183f66;cursor:pointer}.article-drafts-pagination button:disabled{opacity:.45;cursor:not-allowed}
#article-channels-dialog{width:min(1100px,96vw);max-height:95dvh;overflow:auto}.article-channels-shell{padding:24px}.article-channels-shell>.dialog-head{gap:20px}.article-channels-shell>button{margin-top:20px;padding:12px 18px}.article-channels-shell .sales-channel-panel{margin-top:20px}
@media(max-width:700px){
 #editor.article-flow-editor #edit-form{padding:0 20px}
 #editor.article-flow-editor #edit-form>.dialog-head{padding:20px 0;gap:8px}
 #editor.article-flow-editor .dialog-head h2{font-size:22px}
 #editor.article-flow-editor #editor-voice-toggle{font-size:0;width:40px;padding:0}#editor.article-flow-editor #editor-voice-toggle::after{content:'🎙';font-size:18px}
 #editor.article-flow-editor .article-flow-section{padding:26px 0}
 #editor.article-flow-editor .grid.editor-grid,#editor.article-flow-editor .sales-category-grid,#editor.article-flow-editor .ebay-aspect-fields-grid,#editor.article-flow-editor .wheel-fields-grid{grid-template-columns:1fr;gap:18px}
 #editor.article-flow-editor .sales-category-grid>.ebay-category-picker-field:nth-child(n){grid-row:auto;grid-column:auto}
 #editor.article-flow-editor .sales-category-grid>.ebay-category-picker-field:nth-child(2){order:3}
 #editor.article-flow-editor .image-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
 #editor.article-flow-editor .image-card.is-main{grid-column:span 2;grid-row:span 2}
 #editor.article-flow-editor .image-add-tile{font-size:10px;padding:3px}
 #editor.article-flow-editor .image-main-badge{font-size:11px;padding:5px 8px}
 #editor.article-flow-editor .vendo-media-toolbar{float:none;margin:0 0 12px;justify-content:flex-start}
 #editor.article-flow-editor .article-flow-heading{margin-bottom:18px}
 #editor.article-flow-editor .package-fields-grid{display:block}#editor.article-flow-editor .package-fields-grid fieldset{max-width:100%;margin:14px 0}
 #editor.article-flow-editor .editor-actions button{width:100%;min-height:48px}
 #editor.article-flow-editor .article-policy-summary{grid-template-columns:1fr;gap:8px}#editor.article-flow-editor .article-policy-summary dd{margin-bottom:12px}
 #article-drafts-list article{flex-wrap:wrap}#article-drafts-list article>div{flex-basis:100%}
}
