/* Web parity with the 17 Nov 2026 app update. */

/* Profiles without a photo: a grey person icon, not initials. Organizations keep their mark. */
.media-avatar--person,
.media-avatar--fallback:not(.media-avatar--org),
[class*="--initials"]:not(.is-org):not([class*="org"]) {
    background: #E6E8EC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239AA1AB'%3E%3Ccircle cx='12' cy='9' r='4.2'/%3E%3Cpath d='M3.6 22c.8-4.8 4.3-7.6 8.4-7.6s7.6 2.8 8.4 7.6z'/%3E%3C/svg%3E") center 80% / 74% no-repeat !important;
    color: transparent !important;
    font-size: 0 !important;
    text-shadow: none !important;
    overflow: hidden;
}
.media-avatar--person > *,
[class*="--initials"]:not(.is-org):not([class*="org"]) > * { display: none !important; }
.media-avatar--fallback:not(.media-avatar--org)::before,
.media-avatar--fallback:not(.media-avatar--org)::after { content: none !important; }

/* Following tab, signed out: two actions side by side. */
.mfeed-state__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Shorts: end of the feed and load failures. */
.media-shorts__endcard {
    height: calc(100dvh - var(--media-header-height, 64px));
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex; align-items: center; justify-content: center;
    padding: 24px; text-align: center; color: #fff;
}
.media-shorts__endcard-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.media-shorts__endcard-title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: inherit; }
@media (max-width: 640px) { .media-shorts__endcard { height: 100dvh; } }

/* Video page: Up Next is a visible heading like More from. */
.media-watch__upnext { margin: 20px 0 10px; }

/* Post page: images are never cropped, including multi-image layouts. */
.media-written--post .media-gallery__item img { object-fit: contain !important; background: #F2F4F7; }

/* Image viewer: Source among the mirrored actions. */
.mxv__act--source svg { width: 22px; height: 22px; }

/* Signed-out Create and Profile. */
.mxso { padding: 48px 20px 72px; }
.mxso__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.mxso__title { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; color: var(--media-text, #0E1520); }
.mxso__lede { margin: 14px auto 0; max-width: 520px; font-size: 17px; line-height: 1.5; color: var(--media-text-muted, #5A6474); }
.mxso__examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 32px 0 0; text-align: left; }
.mxso__examples .mx-ex-card__media { aspect-ratio: 4 / 5; }
.mxso__examples .mx-ex-card__media img { width: 100%; height: 100%; object-fit: cover; }
.mxso__examples .mx-ex-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mxso__actions { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mxso__cta { min-width: 240px; justify-content: center; }
.mxso__signin { margin: 0; font-size: 15px; color: var(--media-text-muted, #5A6474); }
.mxso__signin a { font-weight: 600; }
.mxso__trust { margin: 24px 0 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--media-text-muted, #5A6474); }
.mxso__faces { display: flex; justify-content: center; margin-bottom: 24px; }
.mxso__face { position: relative; width: 72px; height: 72px; margin: 0 -8px; border-radius: 50%; border: 3px solid #fff; background: #E6E8EC; }
.mxso__face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.mxso__badge { position: absolute; right: -2px; bottom: -2px; display: inline-flex; background: #fff; border-radius: 50%; padding: 1px; }
.mxso__benefits { list-style: none; margin: 28px auto 0; padding: 0; max-width: 440px; display: grid; gap: 16px; text-align: left; }
.mxso__benefits li { display: flex; gap: 14px; align-items: flex-start; }
.mxso__benefits svg { flex: 0 0 auto; color: var(--media-primary, #0B5FFF); margin-top: 2px; }
.mxso__benefits strong { display: block; font-size: 15px; color: var(--media-text, #0E1520); }
.mxso__benefits span { font-size: 14px; line-height: 1.45; color: var(--media-text-muted, #5A6474); }
@media (max-width: 640px) {
    .mxso { padding: 28px 16px 96px; }
    .mxso__examples { gap: 8px; }
    .mxso__examples .mx-ex-card__meta, .mxso__examples .mx-ex__by { display: none; }
    .mxso__examples .mx-ex-card__title { font-size: 13px; }
}

.mxso__examples .mx-ex-card__duration, .mxso__examples .mx-ex-card__play { position: absolute; }
.mxso__examples .mx-ex-card__media { position: relative; display: block; overflow: hidden; border-radius: 10px; }

/* Private, unverified and empty profile (Nov 2026 empty-state brief). */
.media-profile__handle .media-profile__vis { display: inline-flex; align-items: center; gap: 4px; margin: 0 !important; padding: 0; background: none !important; border-radius: 0; font-size: 13px; font-weight: 500; color: var(--media-text-muted, #5A6474); vertical-align: baseline; }
.media-profile__handle .media-profile__vis:hover { color: var(--media-text, #0E1520); background: none; text-decoration: underline; }
.media-profile__vis-sep { margin: 0 6px; color: var(--media-text-muted, #98A2B3); }
.media-profile__idstatus { margin-top: 4px !important; }
.media-owner-status--private_unverified { flex-wrap: wrap !important; align-items: center !important; gap: 10px 16px !important; padding: 12px 16px !important; background: #F5F8FF !important; }
.media-owner-status--private_unverified .media-owner-status__text { flex: 1 1 360px; min-width: 0; }
.media-owner-status--private_unverified .media-owner-status__title { margin: 0; font-weight: 600; }
.media-owner-status--private_unverified .media-owner-status__body { margin: 2px 0 0; }
.media-owner-status__actions { display: inline-flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.media-owner-status__info { flex-basis: 100%; margin: 0 0 0 32px; font-size: 13px; color: var(--media-text-muted, #5A6474); }
.media-owner-status__info summary { cursor: pointer; width: max-content; color: var(--media-primary, #0B5FFF); font-weight: 500; list-style: none; }
.media-owner-status__info summary::-webkit-details-marker { display: none; }
.media-owner-status__info summary::after { content: ' \25BE'; }
.media-owner-status__info[open] summary::after { content: ' \25B4'; }
.media-owner-status__info p { margin: 6px 0 0; max-width: 620px; }
.media-pempty .mpe-start { padding-top: 8px; }
.media-pempty .mpe-explore { margin-top: 28px; }
.media-pempty .mpe-explore__h { font-size: 15px; font-weight: 600; }
.media-pempty .mpe-explore__lede { display: none; }
.media-pempty .mpe-explore__grid { grid-template-columns: repeat(3, minmax(0, 220px)) !important; gap: 14px !important; }
@media (max-width: 640px) {
    .media-owner-status__info { margin-left: 0; }
    .media-owner-status__actions { width: 100%; }
    .media-pempty .mpe-explore__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .media-pempty .mpe-explore__item:nth-child(n+3) { display: none; }
}
.media-pempty .mpe-explore__head { max-width: 688px; }
@media (max-width: 640px) {
    .media-owner-status--private_unverified .media-owner-status__icon { display: none !important; }
    html body .media-owner-status--private_unverified .media-owner-status__actions { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; gap: 16px !important; }
    .media-owner-status--private_unverified .media-owner-status__actions > * { width: auto !important; margin: 0 !important; }
    .media-pempty .mpe-explore__head { max-width: none; }
}

/* Creation headers: compact M. mark between Close and the title. */
.media-studio-mark { display: inline-block; flex: 0 0 auto; width: 26px; height: 26px; margin: 0 12px 0 4px; background: var(--media-studio-mark) center / contain no-repeat; vertical-align: middle; }
.mcx__title .media-studio-mark, .mcs2__title .media-studio-mark { width: 22px; height: 22px; margin: -3px 8px 0 0; }
.as__head-start, .cv__heading, .media-studiobar__left { align-items: center; }

/* Segmented progress under "Stage · Step n of N". */
.media-studiobar__centre { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.media-studiobar__stage { margin: 0; font-size: 14px !important; font-weight: 500 !important; color: var(--media-text, #0E1520) !important; line-height: 1.25; }
.media-studiobar__of { font-size: 13px; font-weight: 400; color: var(--media-text-muted, #5A6474); }
.media-cprog__bar { display: flex; gap: 4px; width: 210px; margin-top: 6px; }
.media-cprog__bar i { flex: 1 1 0; height: 4px; border-radius: 999px; background: #E4E7EC; }
.media-cprog__bar i.is-on { background: var(--media-primary, #0B5FFF); }
@media (prefers-reduced-motion: no-preference) { .media-cprog__bar i { transition: background-color .2s ease; } }
@media (max-width: 640px) {
    .media-studio-mark { width: 22px; height: 22px; margin: 0 8px 0 2px; }
    .media-cprog__bar { width: 140px; margin-top: 4px; }
    .media-studiobar__stage { font-size: 13px !important; }
    .media-studiobar__of { font-size: 12px; }
}
@media (max-width: 640px) {
    html body .media-studiobar { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'l r' 'c c'; align-items: center; height: auto !important; min-height: 0 !important; row-gap: 2px; padding-top: 6px !important; padding-bottom: 8px !important; }
    html body .media-studiobar__left { grid-area: l; display: flex !important; align-items: center; min-width: 0; flex-wrap: nowrap !important; }
    html body .media-studiobar__right { grid-area: r; }
    html body .media-studiobar__centre { grid-area: c; position: static !important; transform: none !important; left: auto !important; width: auto !important; }
    html body .media-studiobar .media-focus-bar__titles { min-width: 0; }
    html body .media-studiobar .media-focus-bar__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
}

/* Stage text sits closer to the progress segments (JM, 17 Nov). */
html body .media-studiobar__stage { line-height: 1.1 !important; padding-bottom: 0 !important; margin-bottom: 0 !important; }
html body .media-cprog__bar { margin-top: 3px; }
html body .media-studiobar__centre { gap: 0 !important; }
html body .media-cprog__bar { margin-top: 5px; }

/* My Content cards: a neat hover (JM, 17 Nov). No half-card background or lifted shadow; the picture dims slightly and the title darkens. */
html body .media-mc__list--grid .media-mc__row:hover { background: transparent !important; box-shadow: none !important; border-color: transparent !important; }
html body .media-mc__list--grid .media-mc__row .media-mc__thumb { position: relative; overflow: hidden; transition: filter .15s ease; }
html body .media-mc__list--grid .media-mc__row:hover .media-mc__thumb { box-shadow: none !important; filter: brightness(.96); }
html body .media-mc__list--grid .media-mc__row:hover .media-mc__title { color: var(--media-primary, #0B5FFF) !important; }

/* My Content toolbar: borderless controls matching the format chips (JM, 17 Nov). */
html body .media-mc__search input { border: 0 !important; background-color: #F2F4F7 !important; height: 36px !important; box-shadow: none !important; color: #142033; }
html body .media-mc__search input:hover { background-color: #EAEDF1 !important; }
html body .media-mc__search input:focus { background-color: #fff !important; box-shadow: 0 0 0 2px rgba(11,95,255,.25) !important; outline: 0; }
html body button.media-mc__folders, html body .media-mc__folders > button, html body .media-mc__folders > a { border: 0 !important; background: #F2F4F7 !important; border-radius: 7px !important; height: 36px !important; padding: 0 14px !important; font-size: 13px !important; font-weight: 500 !important; color: #48566B !important; box-shadow: none !important; }
html body button.media-mc__folders:hover, html body .media-mc__folders > button:hover { background: #EAEDF1 !important; color: #142033 !important; }
html body [class*='media-mc'] .media-combo__control, html body [class*='media-mc'] .media-combo__native { border: 0 !important; background-color: #F2F4F7 !important; border-radius: 7px !important; height: 36px !important; min-height: 36px !important; font-size: 13px !important; font-weight: 500 !important; color: #48566B !important; box-shadow: none !important; }
html body [class*='media-mc'] .media-combo__control:hover { background-color: #EAEDF1 !important; color: #142033 !important; }
html body [class*='media-mc'] .media-combo__control[aria-expanded='true'], html body [class*='media-mc'] .media-combo__control:focus-visible { box-shadow: 0 0 0 2px rgba(11,95,255,.25) !important; }
html body .media-mc__viewtoggle { border: 0 !important; background: #F2F4F7 !important; border-radius: 8px !important; padding: 3px !important; gap: 2px; height: 36px; box-sizing: border-box; display: inline-flex; align-items: center; }
html body .media-mc__viewtoggle .media-mc__view { border: 0 !important; border-radius: 6px !important; background: transparent !important; height: 30px; width: 34px; color: #6B7686; box-shadow: none !important; }
html body .media-mc__viewtoggle .media-mc__view:hover { color: #142033; }
html body .media-mc__viewtoggle .media-mc__view.is-on { background: #fff !important; color: var(--media-primary, #0B5FFF) !important; box-shadow: 0 1px 2px rgba(16,22,30,.08) !important; }
/* Studio: a little more room between the progress header and the page content (JM, 17 Nov). */
html body .media-studiobar + main { padding-top: 14px; }
@media (max-width: 720px) { html body .media-studiobar + main { padding-top: 8px; } }

/* Post > Schedule popover (JM, 17 Nov): wider when picking, no truncated fields, quiet actions. */
html body .mcx__pubmenu[data-mcx-when-menu].is-picking { width: 300px; max-width: calc(100vw - 32px); }
html body .mcx__whenpick { padding: 12px 14px 14px; margin-top: 6px; border-top: 1px solid #eef0f3; display: grid; gap: 8px; }
html body .mcx__whenhead { margin: 0; font-size: 12px; font-weight: 600; color: #6b7280; letter-spacing: .01em; }
html body .mcx__whenpick .mcx__whenlabel { display: block; margin: 0; font-size: inherit; }
html body .mcx__whenpick .mdt { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; margin: 0; }
html body .mcx__whenpick .mdt__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html body .mcx__whenpick .mdt__field { display: block; min-width: 0; margin: 0; }
html body .mcx__whenpick .mdt__date, html body .mcx__whenpick .mdt__time { width: 100%; min-width: 0; height: 38px; box-sizing: border-box; padding: 0 10px; font: inherit; font-size: 14px; color: #111827; background-color: #f3f4f6; border: 0; border-radius: 10px; box-shadow: none; }
html body .mcx__whenpick .mdt__time { padding-right: 26px; }
html body .mcx__whenpick .mdt__date:focus, html body .mcx__whenpick .mdt__time:focus { outline: 2px solid rgba(17, 94, 249, .35); outline-offset: 0; background-color: #fff; }
html body .mcx__whenpick .mcx__help { margin: 0; font-size: 12px; line-height: 1.4; color: #6b7280; }
html body .mcx__whenacts { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 4px; }
html body .mcx__whencancel { appearance: none; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: #374151; padding: 0 12px; height: 34px; border-radius: 999px; cursor: pointer; }
html body .mcx__whencancel:hover { background: #f3f4f6; }
html body .mcx__whenacts .media-button { height: 34px; min-height: 34px; padding: 0 16px; font-size: 14px; border-radius: 999px; width: auto; }
/* Post composer More menu: compact rows with light icons, divider before Discard (JM, 17 Nov). */
html body .mcx__pop[data-mcx-more-menu] { min-width: 232px; padding: 6px; }
html body .mcx__pop[data-mcx-more-menu] > button, html body .mcx__pop[data-mcx-more-menu] > a { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: #111827; text-decoration: none; text-align: left; cursor: pointer; }
html body .mcx__pop[data-mcx-more-menu] > button:hover, html body .mcx__pop[data-mcx-more-menu] > a:hover, html body .mcx__pop[data-mcx-more-menu] > button:focus-visible, html body .mcx__pop[data-mcx-more-menu] > a:focus-visible { background: #f3f4f6; }
html body .mcx__pop[data-mcx-more-menu] > [hidden] { display: none; }
html body .mcx__mi { flex: 0 0 16px; color: #6b7280; }
html body .mcx__pop[data-mcx-more-menu] > .is-danger { color: #dc2626; }
html body .mcx__pop[data-mcx-more-menu] > .is-danger .mcx__mi { color: #dc2626; }
html body .mcx__popsep { display: block; height: 1px; margin: 6px 4px; background: #eef0f3; }
html body .mcx__popsep[hidden] { display: none; }
html body .mcx__pop[data-mcx-more-menu] .mcx__popsep[hidden]:has(+ [data-mcx-discard]:not([hidden])) { display: block; }html body .mcx__pop[data-mcx-more-menu] > button, html body .mcx__pop[data-mcx-more-menu] > a { flex-direction: row !important; justify-content: flex-start !important; align-items: center !important; }

/* Post > Add video: focused format choice (JM, 17 Nov). */
html body .mcx__panel--vnote:not([hidden]) { display: flex; align-items: center; justify-content: center; padding: 28px 24px; }
html body .mcx:has(.mcx__panel--vnote:not([hidden])) .mcx__foot,
html body dialog:has(.mcx__panel--vnote:not([hidden])) .mcx__foot,
html body dialog:has(.mcx__panel--vnote:not([hidden])) .mcx__tools { visibility: hidden; }
html body .mcx__vnote { width: 100%; max-width: 392px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
html body .mcx__vnote-h { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 600; color: #111827; }
html body .mcx__vnote-p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: #6b7280; }
html body .mcx__vnote-save { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: #6b7280; }
html body .mcx__vnote-save.is-error { color: #b91c1c; }
html body .mcx__vnote-retry { appearance: none; border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: #115ef9; cursor: pointer; }
html body .mcx__vnote-acts { display: flex; gap: 8px; justify-content: center; margin-top: 18px; width: 100%; }
html body .mcx__vnote-acts .media-button { flex: 1 1 0; min-width: 0; height: 38px; min-height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
html body .mcx__vnote-acts .media-button[aria-disabled="true"] { opacity: .6; pointer-events: none; }
html body .mcx__vnote-help { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: #6b7280; max-width: 320px; }
html body .mcx__vnote-back { appearance: none; border: 0; background: transparent; margin-top: 10px; min-height: 36px; padding: 0 12px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 500; color: #374151; cursor: pointer; }
html body .mcx__vnote-back:hover { background: #f3f4f6; }
@media (max-width: 520px) { html body .mcx__panel--vnote:not([hidden]) { align-items: flex-end; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); } html body .mcx__vnote-acts { flex-direction: column; } }
/* ===== Post images (JM brief, 17 Nov): upload status, light controls, gallery, Edit image ===== */
/* Upload rows */
html body .mcx__upq { display: grid; gap: 8px; margin: 10px 0 2px; }
html body .mcx__upq[hidden] { display: none; }
html body .mcx__up { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; background: #f7f8fa; }
html body .mcx__up-thumb { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: #e9ecf1; }
html body .mcx__up-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
html body .mcx__up-body { flex: 1 1 auto; min-width: 0; display: grid; gap: 6px; }
html body .mcx__up-line { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; line-height: 1.3; color: #374151; }
html body .mcx__up-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .mcx__up-pct { color: #6b7280; font-variant-numeric: tabular-nums; }
html body .mcx__up-bar { position: relative; height: 3px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
html body .mcx__up-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: #115ef9; transition: width .2s ease; }
html body .mcx__up-bar.is-indeterminate .mcx__up-fill { width: 35%; animation: mcxUpSlide 1.1s ease-in-out infinite; }
@keyframes mcxUpSlide { 0% { left: -35%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { html body .mcx__up-bar.is-indeterminate .mcx__up-fill { animation: none; width: 100%; opacity: .45; } }
html body .mcx__up.is-failed { background: #fef2f2; }
html body .mcx__up.is-failed .mcx__up-label { color: #b91c1c; }
html body .mcx__up-acts { font-size: 13px; color: #9ca3af; }
html body .mcx__up-act { appearance: none; border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: #115ef9; cursor: pointer; }
html body .mcx__up-act:last-child { color: #374151; font-weight: 500; }

/* Gallery */
html body .mcx__media:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
html body .mcx__media[data-count="1"] { grid-template-columns: 1fr; }
html body .mcx__media .mcx__img { position: relative; margin: 0; border-radius: 8px; overflow: hidden; background: #f3f4f6; aspect-ratio: 4 / 3; min-height: 0; height: auto; }
html body .mcx__media .mcx__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
html body .mcx__media[data-count="1"] .mcx__img { aspect-ratio: auto; max-height: 460px; }
html body .mcx__media[data-count="1"] .mcx__img img { height: auto; max-height: 460px; object-fit: contain; }
html body .mcx__media[data-count="3"] .mcx__img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
html body .mcx__media[data-count="5"] { grid-template-columns: repeat(3, 1fr); }
html body .mcx__media[data-count="5"] .mcx__img { aspect-ratio: 1 / 1; }

/* Light overlay controls: small translucent scrim only where needed for contrast */
html body .mcx__media .mcx__img-remove,
html body .mcx__media .mcx__img-edit,
html body .mcx__media .mcx__img-move { appearance: none; border: 0 !important; box-shadow: none !important; background: rgba(17, 24, 39, .48) !important; color: #fff !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s ease; }
html body .mcx__media .mcx__img-remove:hover,
html body .mcx__media .mcx__img-edit:hover,
html body .mcx__media .mcx__img-move:hover:not(:disabled) { background: rgba(17, 24, 39, .66) !important; }
html body .mcx__media .mcx__img-remove { position: absolute; top: 6px; right: 6px; left: auto; bottom: auto; width: 30px; height: 30px; padding: 0; border-radius: 999px; }
html body .mcx__media .mcx__img-remove::before { content: ''; position: absolute; inset: -7px; }
html body .mcx__media .mcx__img-remove svg { width: 15px; height: 15px; }
html body .mcx__media .mcx__img-edit { position: absolute; left: 6px; bottom: 6px; top: auto; right: auto; height: 30px; padding: 0 10px 0 8px; gap: 5px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 600; }
html body .mcx__media .mcx__img-edit::before { content: ''; position: absolute; inset: -6px; }
html body .mcx__img-moves { position: absolute; right: 6px; bottom: 6px; display: inline-flex; gap: 4px; }
html body .mcx__media .mcx__img-move { position: relative; width: 30px; height: 30px; padding: 0; border-radius: 999px; left: auto; top: auto; }
html body .mcx__media .mcx__img-move:disabled { opacity: .35; cursor: default; }
html body .mcx__media .mcx__img-alt { position: absolute; top: 8px; left: 8px; padding: 2px 6px; border-radius: 6px; background: rgba(17, 24, 39, .48); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; }
html body .mcx__media .mcx__img-remove:focus-visible, html body .mcx__media .mcx__img-edit:focus-visible, html body .mcx__media .mcx__img-move:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

/* Edit image */
html body .mcx__cropwork { display: grid; gap: 12px; max-width: 560px; margin: 0 auto; width: 100%; }
html body .mcx__cropseg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #f3f4f6; overflow-x: auto; scrollbar-width: none; justify-self: center; max-width: 100%; }
html body .mcx__cropseg::-webkit-scrollbar { display: none; }
html body .mcx__cropseg button { flex: 0 0 auto; height: 32px; padding: 0 12px; border: 0 !important; border-radius: 9px; background: transparent; box-shadow: none; font: inherit; font-size: 13px; font-weight: 500; color: #4b5563; white-space: nowrap; cursor: pointer; }
html body .mcx__cropseg button:hover { color: #111827; }
html body .mcx__cropseg button[aria-pressed="true"] { background: #fff; color: #115ef9; font-weight: 600; box-shadow: 0 1px 2px rgba(17, 24, 39, .08); }
html body .mcx__cropstage { margin: 0 auto; border-radius: 8px; }
html body .mcx__cropzoom { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 13px; color: #6b7280; }
html body .mcx__cropzoom input[type=range] { flex: 1 1 auto; -webkit-appearance: none; appearance: none; height: 3px; border-radius: 999px; background: #e5e7eb; outline: none; }
html body .mcx__cropzoom input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #115ef9; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(17, 94, 249, .35); cursor: pointer; }
html body .mcx__cropzoom input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #115ef9; border: 2px solid #fff; cursor: pointer; }
html body .mcx__cropwork [data-mcx-crop-help] { margin: -6px 0 0; font-size: 12px; color: #9ca3af; text-align: center; }
html body .mcx__alt { display: grid; gap: 4px; }
html body .mcx__alt-label { font-size: 13px; font-weight: 600; color: #111827; }
html body .mcx__alt .mcx__help { margin: 0; font-size: 12px; color: #6b7280; }
html body .mcx__alt-input { min-height: 0; height: 64px; resize: vertical; padding: 10px 12px; border: 0 !important; border-radius: 10px; background: #f3f4f6; box-shadow: none; font: inherit; font-size: 14px; color: #111827; }
html body .mcx__alt-input:focus { outline: 2px solid rgba(17, 94, 249, .35); background: #fff; }
html body .mcx__cropfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; }
html body .mcx__cropfoot .mcx__danger { color: #dc2626; font-size: 14px; font-weight: 500; }
html body .mcx__cropfoot-end { display: inline-flex; align-items: center; gap: 6px; }
html body .mcx__cropfoot-end .mcx__quiet { height: 34px; padding: 0 12px; border-radius: 999px; font-size: 14px; }
html body .mcx__cropfoot-end .mcx__quiet:hover { background: #f3f4f6; }
html body .mcx__cropfoot-end .media-button { height: 34px; min-height: 34px; padding: 0 18px; border-radius: 999px; font-size: 14px; width: auto; }html body .mcx__cropwork { max-width: none; justify-items: stretch; }
html body [data-mcx-crop] { overflow-x: hidden; }
html body .mcx__cropstage { justify-self: center; }
html body .mcx__cropzoom { width: 100%; box-sizing: border-box; }
html body .mcx__cropseg { justify-self: center; }
html body .mcx__alt-input { width: 100%; box-sizing: border-box; }

/* ===== Link preview cards (JM brief, 17 Nov): image-led editorial card, used in composer and published posts ===== */
html body .media-linkcard { display: block; position: relative; margin-top: 12px; border: 0 !important; border-radius: 10px; background: #f7f8fa; overflow: hidden; text-decoration: none !important; color: inherit; box-shadow: none !important; }
html body a.media-linkcard:hover .media-linkcard__title { color: #115ef9; }
html body .media-linkcard.has-image .media-linkcard__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; margin: 0; max-width: none; background: #eceef2; }
html body .media-linkcard__text { display: grid; gap: 4px; padding: 12px 14px 14px; min-width: 0; }
html body .media-linkcard__domain { font-size: 12px; font-weight: 500; color: #6b7280; letter-spacing: .01em; text-transform: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .media-linkcard__title { font-size: 16px; line-height: 1.35; font-weight: 600; color: #111827; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s ease; }
html body .media-linkcard__desc { font-size: 13.5px; line-height: 1.45; color: #6b7280; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html body .media-linkcard.is-fallback .media-linkcard__text, html body .media-linkcard:not(.has-image) .media-linkcard__text { padding: 14px 40px 14px 14px; }
html body .media-linkcard:not(.has-image)::after { content: ''; position: absolute; top: 14px; right: 14px; width: 14px; height: 14px; opacity: .45; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-9 9'/%3E%3Cpath d='M19 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E"); }
html body .mcx__linkcard-card { margin-top: 10px; }
html body .mcx__linkcard-card:not(.has-image)::after { right: 46px; }
html body .mcx__linkcard-remove { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; padding: 0; border: 0 !important; border-radius: 999px; background: rgba(17, 24, 39, .48) !important; color: #fff !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: none !important; }
html body .mcx__linkcard-card:not(.has-image) .mcx__linkcard-remove { background: transparent !important; color: #6b7280 !important; }
html body .mcx__linkcard-card:not(.has-image) .mcx__linkcard-remove:hover { background: #eceef2 !important; }
html body .mcx__linkcard-remove svg { width: 15px; height: 15px; }
html body .mcx__linkload { margin-top: 10px; display: grid; gap: 8px; padding: 12px 14px; border-radius: 10px; background: #f7f8fa; }
html body .mcx__linkload-bar { position: relative; height: 3px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
html body .mcx__linkload-bar::after { content: ''; position: absolute; top: 0; bottom: 0; width: 35%; border-radius: 999px; background: #115ef9; animation: mcxUpSlide 1.1s ease-in-out infinite; }
html body .mcx__linkload-text { font-size: 13px; color: #6b7280; }
@media (max-width: 600px) { html body .media-linkcard__title { font-size: 15px; } }
html body .media-linkcard__domain { display: flex; align-items: center; gap: 6px; }
html body .media-linkcard__icon { width: 16px; height: 16px; border-radius: 4px; flex: 0 0 16px; object-fit: contain; margin: 0; }
html body .media-linkcard.has-image .media-linkcard__img { border-radius: 0; }

/* Post composer, full screen: header matches the Create studio bar (mark 26px, 22px to the title, 15px semibold). */
html body .mcx.is-full h2 { display: flex; align-items: center; font-size: 15px; font-weight: 600; letter-spacing: 0; }
html body .mcx.is-full h2 .media-studio-mark { width: 26px; height: 26px; flex: 0 0 26px; margin-right: 22px; }
html body .mcx.is-full h2, html body .mcx.is-full h2 [data-mcx-title-text] { font-size: 15px !important; font-weight: 600 !important; }

/* Import content page (JM brief, 17 Nov): three equal source cards, quiet empty states. */
html body .mimp-hub__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
html body .mimp-hub__card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 132px; padding: 18px; border: 0 !important; border-radius: 14px; background: #f6f7f9; box-shadow: none !important; text-decoration: none; color: inherit; position: relative; transition: background .15s ease; }
html body .mimp-hub__card:hover, html body .mimp-hub__card:focus-visible { background: #eef0f4; }
html body .mimp-hub__card--wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; margin-top: 12px; }
html body .mimp-hub__card-icon { width: 36px; height: 36px; border-radius: 10px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #111827; }
html body .mimp-hub__card-icon svg { width: 18px; height: 18px; }
html body .mimp-hub__card-text { display: grid; gap: 4px; }
html body .mimp-hub__card-title { font-size: 15px; font-weight: 600; color: #111827; }
html body .mimp-hub__card-note { font-size: 13px; line-height: 1.45; color: #6b7280; }
html body .mimp-hub__card-arrow { position: absolute; top: 18px; right: 18px; color: #9ca3af; }
html body .mimp-hub__card--wide .mimp-hub__card-arrow { position: static; margin-left: auto; }
html body .mimp-hub__also { margin: 14px 0 0; font-size: 13px; color: #6b7280; }
html body .mimp-hub__also strong { font-weight: 500; color: #374151; }
html body .mimp-hub__none { border: 0 !important; background: transparent !important; padding: 4px 0 0 !important; }
html body .mimp-hub__none-title { margin: 0 0 2px; font-size: 14px; font-weight: 600; color: #111827; }
@media (max-width: 760px) { html body .mimp-hub__cards { grid-template-columns: 1fr; } html body .mimp-hub__card { min-height: 0; flex-direction: row; align-items: center; } html body .mimp-hub__card-arrow { position: static; margin-left: auto; } }
/* Feed publisher header: Follow as a small blue text action (Nov 2026). */
.mfeed-card__who { flex-wrap: wrap; row-gap: 0; }
.mfeed-card__follow-wrap { display: inline-flex; align-items: center; white-space: nowrap; }
.mfeed-card__follow { appearance: none; position: relative; border: 0; background: transparent; padding: 0 2px; margin: 0; font: inherit; font-size: 13px; font-weight: 600; line-height: inherit; color: #115ef9; cursor: pointer; transition: color .15s ease, opacity .2s ease; }
.mfeed-card__follow::before { content: ''; position: absolute; left: -8px; right: -8px; top: 50%; height: 44px; transform: translateY(-50%); }
.mfeed-card__follow:hover { color: #0a47c9; text-decoration: underline; text-underline-offset: 2px; }
.mfeed-card__follow:focus-visible { outline: 2px solid rgba(17, 94, 249, .45); outline-offset: 2px; border-radius: 4px; }
.mfeed-card__follow.is-loading, .mfeed-card__follow[aria-busy="true"] { opacity: .55; pointer-events: none; }
.mfeed-card__follow-wrap:has(.mfeed-card__follow[data-media-follow-state="following"]), .mfeed-card__follow-wrap:has(.mfeed-card__follow[aria-pressed="true"]) { display: none; }
@media (max-width: 480px) { .mfeed-card__handle { display: none; } }.mfeed-card__follow-wrap { gap: 5px; }
.mfeed-card__follow { padding: 0; }

/* Sign in / Join (Nov 2026 registration brief): compact equal buttons, VERIFIED apart, short verification note. */
.media-signin__providers { display: grid; gap: 10px; }
.media-signin__provider { height: 48px; min-height: 48px; border-radius: 11px !important; font-size: 15px; font-weight: 500; box-shadow: none !important; }
.media-signin__provider svg, .media-signin__provider img { width: 19px; height: 19px; }
.media-signin__divider--verified { margin-top: 18px; }
.media-signin__verify-note { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; font-size: 12.5px; line-height: 1.45; color: #6b7280; }
.media-signin__verify-note svg { flex: 0 0 16px; margin-top: 1px; color: #115ef9; }
.media-signin__verify-note strong { display: block; font-size: 13.5px; font-weight: 500; color: #111827; }
.media-signin__legal { text-align: center; font-size: 12px; color: #6b7280; }
/* ==== Default avatars (Nov 2026): outline person for people, outline building for organizations; no initials ==== */
.media-avatar--person,
.media-avatar--fallback:not(.media-avatar--org),
[class*="--initials"]:not(.is-org):not([class*="org"]) {
    background: #F0F4FA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23657B9B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4.6'/%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3C/svg%3E") center / 48% no-repeat !important;
    color: transparent !important;
    font-size: 0 !important;
    text-shadow: none !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
}
.media-avatar--org:not(:has(img)),
.media-avatar--org.media-avatar--fallback,
[class*="--initials"].is-org,
[class*="--initials"][class*="org"],
.media-pf-hero__logo--initials,
.media-partner-card__logo--initials {
    background: #F0F4FA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23657B9B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z'/%3E%3Cpath d='M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2'/%3E%3Cpath d='M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M10 6h4M10 10h4M10 14h4M10 18h4'/%3E%3C/svg%3E") center / 48% no-repeat !important;
    color: transparent !important;
    font-size: 0 !important;
    text-shadow: none !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
}
.media-avatar--org:not(:has(img)) > *,
.media-avatar--org.media-avatar--fallback > *,
[class*="--initials"].is-org > *,
[class*="--initials"][class*="org"] > *,
.media-pf-hero__logo--initials > *,
.media-partner-card__logo--initials > * { display: none !important; }
.media-avatar--org.media-avatar--fallback::before,
.media-avatar--org.media-avatar--fallback::after { content: none !important; }
/* Never a broken-image icon while a photo loads or after it fails. */
.media-avatar img { background: #F0F4FA; }

/* Focus bar breathing room (Nov 2026): more space between 'Stage · Step n of N' and the segments, on every creation flow. */
html body .media-studiobar__centre .media-cprog__bar { margin-top: 9px; }
@media (max-width: 760px) { html body .media-studiobar__centre .media-cprog__bar { margin-top: 7px; } }


/* Explore Media.com on empty profiles and Organizations: four cards across, filling the column, with See more on the row's right edge (JM, 23 Nov 2026). Phones keep two. */
@media (min-width: 641px) {
    :is(.media-pempty, .media-oempty) .mpe-explore__grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 14px !important; }
    :is(.media-pempty, .media-oempty) .mpe-explore__head { max-width: none; }
}
@media (max-width: 640px) {
    .media-oempty .mpe-explore__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .media-oempty .mpe-explore__item:nth-child(n+3) { display: none; }
}
