/* Editor owns article banners; global automation remains administrator-only. */
.banner-editor494 #banners #addBannerBtn,.banner-editor494 #banners>.settings-card,.banner-editor494 #banners .monthly-automation494,.banner-editor494 #banners .banner-admin-card .duplicate,.banner-editor494 #banners .banner-admin-card .delete,.banner-editor494 #banners .banner-drag{display:none!important}
.media-order-handle494{cursor:grab;touch-action:none;user-select:none;min-width:38px;min-height:38px;font-size:22px!important;color:#12638b!important;background:#edf8fc!important;border:1px solid #b2dbe9!important;border-radius:9px}
.media-order-handle494:active{cursor:grabbing}.media-card.reordering494{opacity:.45}.media-card.order-before494{box-shadow:0 -4px 0 #008abd!important}.media-card.order-after494{box-shadow:0 4px 0 #008abd!important}
.media-order-status494{color:#155474;font-weight:600;margin:8px 0 14px}.media-order-status494[role=alert]{color:#a02323}
.banner-editor494 #banners .memories4722,.banner-editor494 #banners .playback-settings4722,.banner-editor494 #banners .banner-manager-toolbar,.banner-editor494 #banners #v400BannerAutomation{display:none!important}

/* 4.10.11: explicit gallery branches; shared draft metadata and photo picker. */
#articleGalleryFolderPicker [hidden]{display:none!important}
#articleGalleryFolderPicker .gallery421-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}
#articleGalleryFolderPicker button,#articleGalleryFolderPicker .gallery-upload-direct{cursor:pointer}
#articleGalleryFolderPicker button:hover,#articleGalleryFolderPicker .gallery-upload-direct:hover{filter:brightness(.96)}
#articleGalleryFolderPicker [aria-pressed="true"]{outline:3px solid #009cb6;outline-offset:-3px;background:#e7f7fa}
#articleGalleryFolderPicker .gallery-new-panel{border:0;padding:0;background:none}
#articleGalleryFolderPicker .gallery421-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px;max-height:300px;overflow:auto;margin:14px 0}
#articleGalleryFolderPicker .gallery421-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:10px;border:1px solid #c8dce5;border-radius:12px;background:#f5fafc;color:#123c50;gap:6px}
#articleGalleryFolderPicker .gallery421-card img{width:100%;height:90px;object-fit:cover;border-radius:7px}
#articleGalleryFolderPicker .gallery421-card small{color:#587483}
#articleGalleryFolderPicker .gallery421-work textarea,#articleGalleryFolderPicker .gallery421-work input[type=text],#articleGalleryFolderPicker .gallery421-search{width:100%;box-sizing:border-box;padding:12px;border:1px solid #c8dce5;border-radius:10px;font:inherit;font-size:15px}
#articleGalleryFolderPicker .gallery421-work .gallery-picker-label{display:block;margin:14px 0}
#articleGalleryFolderPicker .gallery421-drop{padding:18px;border:2px dashed #b4ced9;border-radius:12px;text-align:center}
#articleGalleryFolderPicker .gallery421-drop.active{background:#dff4f8;border-color:#009cb6}
#articleGalleryFolderPicker .gallery421-source-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(95px,1fr));gap:8px;max-height:280px;overflow:auto;margin:12px 0}
#articleGalleryFolderPicker .gallery421-source-photos button{padding:5px;background:#f5fafc;border:1px solid #b4ced9;border-radius:9px}
#articleGalleryFolderPicker .gallery421-source-photos img{width:100%;height:80px;object-fit:cover}
#articleGalleryFolderPicker .gallery421-source-photos span{display:block}
#articleGalleryFolderPicker .gallery421-import-panel{padding:14px;border:1px solid #b4ced9;border-radius:12px}
#articleGalleryFolderPicker .gallery-cover-grid{max-height:360px;overflow:auto}
#articleGalleryFolderPicker .gallery421-status:empty{display:none}
@media(max-width:550px){#articleGalleryFolderPicker .gallery421-choices{grid-template-columns:1fr}#articleGalleryFolderPicker .gallery-picker-head-actions{flex-wrap:wrap}}
#articleGalleryFolderPicker .gallery-display-title,#articleGalleryFolderPicker .gallery-display-description,#articleGalleryFolderPicker .gallery421-search{font-size:15px}
#articleGalleryFolderPicker .gallery421-choices button,#articleGalleryFolderPicker .gallery421-card,#articleGalleryFolderPicker .gallery421-work button{font-size:14px}
#articleGalleryFolderPicker .gallery421-card small{font-size:12px}

/* 4.10.12: choose once, then work in the selected gallery step. */
#articleGalleryFolderPicker .gallery422-back{display:inline-flex;align-items:center;background:none;border:0;padding:10px 0;color:#087f98;font:inherit;font-size:14px;cursor:pointer;margin:5px 0}
#articleGalleryFolderPicker .gallery422-back:hover{text-decoration:underline}
#articleGalleryFolderPicker .gallery421-status{font-size:14px;line-height:1.5;color:#315d70}

/* 4.10.13: sorting in the article gallery picker only. */
#articleGalleryFolderPicker .gallery423-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.65fr);gap:14px;align-items:end}
#articleGalleryFolderPicker .gallery423-tools label{margin-bottom:0}
#articleGalleryFolderPicker .gallery423-tools select,#articleGalleryFolderPicker .gallery423-import-sort{box-sizing:border-box;width:100%;min-height:46px;padding:10px;border:1px solid #c8dce5;border-radius:10px;background:#fff;color:#123c50;font:inherit;font-size:14px;cursor:pointer}
#articleGalleryFolderPicker .gallery423-date{display:block;line-height:1.5;border-top:1px solid #dbe8ee;padding-top:6px;margin-top:3px;font-size:12px;color:#315d70}
#articleGalleryFolderPicker .gallery423-source-date{display:block;line-height:1.5;color:#315d70;margin:7px 0;font-size:13px}
@media(max-width:550px){#articleGalleryFolderPicker .gallery423-tools{grid-template-columns:1fr;gap:4px}}

/* Article banner draft only exposes image controls. */
.article-banner-edit426[hidden], #bannerForm .field[hidden] { display: none !important; }
.article-banner-edit426 { margin-bottom: 14px; }
.article-banner-edit426 button { justify-self: start; align-self: flex-start; }
