
/* One desktop header on Reels, with the same live search and account controls. */
@media(min-width:768px){body.mg-reels-shell .mg-rg-topbar.mg-shared-reels-header{height:68px!important;padding:0 max(24px,calc((100vw - 1280px)/2))!important;gap:18px!important;box-sizing:border-box;justify-content:flex-start!important}body.mg-reels-shell .mg-rg-topbar .mg-rg-brand{margin:0!important;font-size:40px!important;line-height:1!important;flex:0 0 auto}body.mg-reels-shell .mg-rg-topbar .desktop-header-search{display:block!important;flex:1 1 auto!important;min-width:120px;width:auto!important;max-width:none!important;margin:0!important}body.mg-reels-shell .mg-rg-topbar .search-wrapper{display:block!important;width:100%!important}body.mg-reels-shell .mg-rg-topbar #search-input{width:100%!important;height:48px!important}body.mg-reels-shell .mg-rg-topbar .desktop-header-icons{margin-left:0!important;flex:0 0 auto!important}.mg-shared-home{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;padding:8px 14px;border:1px solid #e4e6eb;border-radius:24px;font-size:14px;box-shadow:0 1px 2px #0001}.mg-shared-home i{color:#0866ff}}
@media(max-width:767px){.mg-rg-topbar .mg-shared-home,.mg-rg-topbar .desktop-header-search{display:none!important}}
/* Embedded marketplace tabs share one width, title scale and card treatment. */
body.mg-market-unified .container.sg-offcanvas{width:100%!important;max-width:1040px!important;margin:0 auto!important;padding:20px 16px!important;box-sizing:border-box}
body.mg-market-unified .container.sg-offcanvas>.row{margin:0!important;display:flex!important;gap:0!important}
body.mg-market-unified .container.sg-offcanvas>.row>.middle-feed,body.mg-market-unified .container.sg-offcanvas>.row>.sg-offcanvas-mainbar{flex:0 0 100%!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:0!important}
body.mg-market-unified .sg-offcanvas-sidebar,body.mg-market-unified .right-sidebar{display:none!important}
body.mg-market-unified .sg-offcanvas-mainbar>.row>.col-lg-8{flex:0 0 100%!important;width:100%!important;max-width:100%!important}
body.mg-market-unified .sg-offcanvas-mainbar>.row>.col-lg-4{display:none!important}
body.mg-market-unified .mg-products-header,body.mg-market-unified .card{border:1px solid #e4e6eb!important;border-radius:12px!important;box-shadow:0 1px 2px #00000008!important;overflow:hidden}
body.mg-market-unified .mg-products-header{padding:20px!important;margin-bottom:16px!important;width:100%!important}
body.mg-market-unified .mg-products-header .inner{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:16px!important;width:100%!important}
body.mg-market-unified .mg-products-heading{flex:1 1 220px!important;min-width:0!important;width:auto!important}
body.mg-market-unified .mg-products-heading h2{font-size:24px!important;line-height:1.3!important;white-space:normal!important;margin:0 0 6px!important}
body.mg-market-unified .mg-products-heading p{font-size:14px!important;line-height:1.5!important;white-space:normal!important;margin:0!important}
body.mg-market-unified .mg-product-create,body.mg-market-unified .mg-empty-create{width:auto!important;flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;justify-content:center;gap:8px;min-height:40px;padding:10px 16px!important;border-radius:8px!important;white-space:nowrap!important}
body.mg-market-unified .mg-post-view-controls{width:100%!important;display:flex!important;align-items:center!important;flex-wrap:wrap;box-sizing:border-box;float:none!important}
body.mg-market-unified .mg-post-view-controls strong{flex:1!important}
body.mg-market-unified .js_posts_stream{width:100%!important;max-width:none!important}
body.mg-market-unified .card-header.with-icon{background:#fff!important;padding:20px!important;min-height:80px!important;font-size:24px!important;display:flex!important;align-items:center!important;gap:10px}
body.mg-market-unified .card-header.with-icon .float-end{margin-left:auto!important;order:2}
body.mg-market-unified .no-data-wrap{min-height:280px!important;padding:40px 20px!important}
body.mg-market-unified .mg-product-duplicate{display:none!important}
/* Facebook-style compact create-post view and a separate two-column options view. */
#modal.mg-composer-modal .modal-dialog{max-width:500px!important;margin: max(24px,calc((100dvh - 560px)/2)) auto!important}
#modal.mg-composer-modal .modal-content{border-radius:12px!important;overflow:hidden;max-height:calc(100dvh - 48px)!important;box-shadow:0 8px 28px #0003}
#modal.mg-composer-modal .modal-header{justify-content:center!important;position:relative;min-height:60px!important;padding:16px!important}
#modal.mg-composer-modal .modal-title{text-align:center!important;width:100%!important;font-size:20px!important;font-weight:700}
#modal.mg-composer-modal .btn-close{position:absolute;right:16px;top:14px;margin:0!important}
#modal .mg-composer-back{position:absolute;left:16px;top:12px;border:0;border-radius:50%;width:36px;height:36px;background:#e4e6eb;font-size:25px;z-index:2;color:#606770}
#modal .mg-composer-back[hidden]{display:none!important}
body #modal #publisher-box.mg-composer-v3 .mg-composer-identity{display:flex;align-items:center;gap:10px;padding:16px 16px 0!important}
body #modal #publisher-box.mg-composer-v3 .mg-composer-identity .publisher-avatar{position:static!important;width:40px!important;height:40px!important;flex:0 0 40px;margin:0!important;border-radius:50%}
body #modal #publisher-box.mg-composer-v3 .mg-composer-who{display:flex;flex-direction:column;gap:4px;align-items:flex-start;min-width:0}
body #modal #publisher-box.mg-composer-v3 .mg-composer-name{font-size:14px;line-height:18px}
body #modal #publisher-box.mg-composer-v3 .js_publisher-privacy .btn{padding:3px 8px!important;min-height:24px!important;font-size:12px!important;border-radius:6px!important;color:#202124!important;background:#e4e6eb!important}
body #modal #publisher-box.mg-composer-v3 .publisher-message{padding:16px!important;display:block!important}
body #modal #publisher-box.mg-composer-v3 .publisher-message textarea,body #modal #publisher-box.mg-composer-v3 .publisher-message .ql-editor{background:#fff!important;border:0!important;font-size:23px!important;line-height:1.4!important;min-height:150px!important;border-radius:0!important;padding:0!important;max-height:260px!important}
body #modal #publisher-box.mg-composer-v3 .colored-text-wrapper{margin:0!important;width:100%!important}
body #modal #publisher-box.mg-composer-v3 .mg-composer-legacy-toolbar{display:none!important}
body #modal #publisher-box.mg-composer-v3 .mg-composer-add-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #ced0d4;border-radius:8px;padding:10px 12px;margin:8px 16px 0;box-shadow:0 1px 2px #0001}
body #modal #publisher-box.mg-composer-v3 .mg-composer-add-row>strong{font-size:13px;white-space:nowrap}
.mg-composer-add-actions{display:flex;align-items:center;gap:2px}.mg-composer-action{border:0;background:transparent;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;font-size:22px;padding:0;cursor:pointer}.mg-composer-action:hover{background:#f0f2f5}.mg-composer-action:nth-child(1){color:#45bd62}.mg-composer-action:nth-child(2){color:#f3425f}.mg-composer-action:nth-child(3){color:#f7b928}.mg-composer-action:nth-child(4){color:#f5533d}.mg-composer-more{font-size:16px;color:#65676b}
body #modal #publisher-box.mg-composer-v3:not(.mg-composer-options-open) .publisher-tools-tabs{display:none!important}
body #modal #publisher-box.mg-composer-v3 .mg-composer-settings{border:0!important;background:transparent!important;padding:6px 0!important;margin:6px 16px!important;font-size:12px!important;width:calc(100% - 32px)!important;min-height:24px}
body #modal #publisher-box.mg-composer-v3 .mg-composer-settings::after{font-size:16px}
body #modal #publisher-box.mg-composer-v3 .publisher-tools-tabs ul.row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px!important;margin:0!important;padding:0!important}
body #modal #publisher-box.mg-composer-v3 .publisher-tools-tabs li{display:block!important;width:auto!important;max-width:none!important;padding:0!important;margin:0!important}
body #modal #publisher-box.mg-composer-v3 .publisher-tools-tab{background:transparent!important;border:0!important;border-radius:8px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;font-size:14px!important;text-align:left!important;min-height:48px!important;padding:10px!important;margin:0!important;white-space:normal!important;line-height:1.3!important;color:#202124!important}
body #modal #publisher-box.mg-composer-v3 .publisher-tools-tab:hover{background:#f0f2f5!important}
body #modal #publisher-box.mg-composer-v3 .publisher-tools-tab i{font-size:23px!important;min-width:24px}
body #modal #publisher-box.mg-composer-options-open>.mg-composer-identity,body #modal #publisher-box.mg-composer-options-open>.publisher-message,body #modal #publisher-box.mg-composer-options-open>.publisher-footer-buttons{display:none!important}
body #modal #publisher-box.mg-composer-options-open .publisher-slider>:not(.publisher-tools-tabs){display:none!important}
body #modal #publisher-box.mg-composer-options-open .publisher-tools-tabs{display:block!important;padding:14px 8px!important;max-height:calc(100dvh - 150px);overflow-y:auto!important}
#modal #publisher-box.mg-composer-v3 .publisher-footer-buttons{padding:10px 16px 16px!important;border:0!important;gap:8px!important}
#modal #publisher-box.mg-composer-v3 .publisher-footer-buttons>.mg-preview{flex:0 0 auto!important;padding:8px!important;font-size:12px!important;min-height:36px!important}
#modal #publisher-box.mg-composer-v3 .publisher-footer-buttons .btn{min-height:36px!important}
@media(max-width:767px){#modal.mg-composer-modal .modal-dialog{margin:10px auto!important;width:calc(100% - 20px)!important;max-width:500px!important}#modal.mg-composer-modal .modal-content{max-height:calc(100dvh - 20px)!important}body #modal #publisher-box.mg-composer-v3 .mg-composer-add-row{padding:8px!important;margin-inline:12px!important}body #modal #publisher-box.mg-composer-v3 .mg-composer-add-row>strong{font-size:12px}.mg-composer-action{width:30px;height:32px;font-size:20px}body.mg-market-unified .container.sg-offcanvas{padding:12px 8px!important}}

body.mg-market-unified .js_view-content{width:100%!important;max-width:none!important;margin:0!important}
body.mg-market-unified .js_view-content>.posts-filter{display:none!important}
body #modal #publisher-box.mg-composer-v3 .publisher-message .colored-text-wrapper{background:transparent!important;margin:0!important;padding:0!important;width:100%!important;flex:1!important;border-radius:0!important}
body #modal #publisher-box.mg-composer-v3 .publisher-message{padding:16px!important;margin:0!important;min-height:180px!important}
body #modal #publisher-box.mg-composer-v3 .publisher-message textarea{background:transparent!important;font-size:23px!important;line-height:1.4!important;width:100%!important;padding:0!important;min-height:150px!important}
body.mg-market-workspace .mg-market-content-frame{height:calc(100dvh - 214px)!important;min-height:420px!important}
body.mg-market-workspace .footer,body.mg-market-workspace .chat-sidebar{display:none!important}
@media(min-width:768px){body.mg-market-workspace{overflow:hidden!important}body.mg-market-workspace .main-wrapper{height:100dvh!important;overflow:hidden!important}body.mg-market-workspace .mg-market-shell-active{margin-top:0!important}}

body.mg-market-workspace .mg-market-tools{position:relative!important;top:auto!important;margin:0 auto 8px!important}
body.mg-market-workspace .main-wrapper{padding-right:0!important}
body.mg-market-workspace .mg-market-shell-active{max-width:1240px!important;width:100%!important;margin-inline:auto!important}
body.mg-market-unified .container.sg-offcanvas.mg-reference-feed>.row{display:flex!important;grid-template-columns:minmax(0,1fr)!important}
body.mg-market-unified .container.sg-offcanvas.mg-reference-feed>.row>.middle-feed{min-width:100%!important;flex-basis:100%!important}

body.mg-market-unified .container.sg-offcanvas .sg-offcanvas-mainbar>.row{display:flex!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important}
body.mg-market-unified .container.sg-offcanvas .sg-offcanvas-mainbar>.row>.middle-feed{min-width:100%!important;max-width:100%!important;width:100%!important;flex-basis:100%!important;padding-inline:12px!important}

body .mg-market-shell-active>:not(.mg-market-tools):not(.mg-market-content-frame):not(.mg-market-loading){display:none!important}
html.mg-market-framed-root body.mg-market-unified .main-wrapper{padding:0!important;height:auto!important}
body.mg-market-unified .footer-bottom-bar{display:none!important}
@media(max-width:767px){body.mg-ui-refined .footer-bottom-bar{display:none!important}body.mg-market-workspace{overflow:hidden!important}body.mg-market-workspace .main-wrapper{height:100dvh!important;overflow:hidden!important;padding-right:0!important}body.mg-market-workspace .mg-market-content-frame{height:calc(100dvh - 196px - env(safe-area-inset-bottom,0px))!important;min-height:0!important}body.mg-market-workspace .mg-market-shell-active{padding-inline:0!important}body.mg-market-unified .container.sg-offcanvas{padding:12px 8px!important}body.mg-market-unified .container.sg-offcanvas .sg-offcanvas-mainbar>.row>.middle-feed{padding-inline:0!important}}

body.mg-market-unified .container.sg-offcanvas .sg-offcanvas-mainbar>.row{margin:0!important}
body.mg-market-unified .container.sg-offcanvas .sg-offcanvas-mainbar>.row>.col-lg-8,body.mg-market-unified .container.sg-offcanvas .sg-offcanvas-mainbar>.row>.middle-feed{padding:0!important}
body.mg-ui-refined .mg-market-tools>a[aria-current="page"]{background:#e7f3ff!important;border-color:#b8d6ff!important;color:#0866ff!important;font-weight:600}
body #modal #publisher-box.mg-composer-v3 .publisher-tools-tab{flex-direction:row!important;text-align:start!important}

body #modal #publisher-box.mg-composer-v3 .publisher-tools-tab{height:auto!important;min-height:48px!important}
@media(min-width:768px){html.mg-market-framed-root{scrollbar-gutter:stable}}

.mg-market-activity-head{padding:20px;border-bottom:1px solid #e4e6eb}.mg-market-activity-head h2{font-size:24px;line-height:1.3;margin:0 0 6px;color:#1c1e21}.mg-market-activity-head p{font-size:14px;color:#65676b;margin:0}.mg-market-activity-empty{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:36px 20px}.mg-market-activity-empty>i{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:#e7f3ff;color:#0866ff;font-size:30px;margin-bottom:20px}.mg-market-activity-empty h3{font-size:20px;font-weight:600;margin:0 0 8px;color:#1c1e21}.mg-market-activity-empty p{font-size:14px;color:#65676b;margin:0}.mg-market-conversation-list{margin:0;padding:0;list-style:none}body.mg-market-only .js_chat-new{display:none!important}body.mg-market-only .mg-market-inbox-page{margin:0 auto!important;padding:20px 16px!important;max-width:1040px!important;width:100%!important}body.mg-market-only .mg-market-activity-card{width:100%!important}.mg-market-activity-card .card-body{padding:0!important}
@media(max-width:767px){body.mg-market-only .mg-market-inbox-page{padding:12px 8px!important}.mg-market-activity-head{padding:20px}.mg-market-activity-empty{min-height:280px}}

body.mg-market-unified .mg-market-view-heading,body.mg-market-unified .mg-market-header{background:#fff!important;background-image:none!important;border:1px solid #e4e6eb!important;border-radius:12px!important;padding:20px!important;margin:0 0 16px!important;box-shadow:0 1px 2px #00000008!important;text-align:start!important;color:#1c1e21!important;min-height:0!important}
body.mg-market-unified .mg-market-view-heading>div{display:none!important}body.mg-market-unified .mg-market-view-heading h2,body.mg-market-unified .mg-market-header h1{font-size:24px!important;line-height:1.3!important;color:#1c1e21!important;margin:0 0 6px!important}body.mg-market-unified .mg-market-view-heading p,body.mg-market-unified .mg-market-header p{color:#65676b!important;font-size:14px!important;line-height:1.5!important;margin:0!important}body.mg-market-unified .mg-market-header .btn{color:#0866ff!important;background:#e7f3ff!important;border:1px solid #b8d6ff!important;min-height:40px!important;border-radius:8px!important}body.mg-market-unified .mg-market-header .d-flex>div[style*="width:48px"]{color:#0866ff!important;background:#e7f3ff!important}body.mg-market-unified .mg-market-view-heading+.card>.card-header{display:none!important}body.mg-market-unified .stat-panel{background:#fff!important;background-image:none!important;border:1px solid #e4e6eb!important;border-radius:12px!important;color:#1c1e21!important;box-shadow:0 1px 2px #00000008!important}body.mg-market-unified .stat-panel .bg-icon{color:#0866ff!important;opacity:.12}

body.mg-market-only .sg-offcanvas-mainbar .card>.card-body{padding:0!important}body.mg-market-only .sg-offcanvas-mainbar .card>.card-body>.text-center{margin:0!important}
