/* Blips on the phone: the full-screen viewer (#mobile-blips-viewer, drawn
 * by static/js/inline/mobile-blips.js) and the blip composer (the shared
 * composer #new-custom-modal in .story-mode).
 *
 * The look is the Community pages' (mobile-community-home.css): open space,
 * no boxes, Archivo for words (condensed 900 for display), JetBrains Mono
 * for eyebrows, round icon buttons.
 *
 * Colour follows the app's look exactly:
 *   Light  white page, near-black ink
 *   Dark   black page, near-white ink
 *   Page colour (html[data-page-color], mobile-page-colors.js --pc-*)
 *          the owner's page and ink
 *   Glass  (html[data-appearance="glass"], mobile-glass.css --gl-*)
 *          frosted glass over the app
 * The film itself is never tinted. A tall picture or video fills the
 * screen and its chrome is white on a soft scrim in every look; a wide one
 * sits on the page and the chrome takes the page's ink.
 *
 * Every selector carries the viewer id twice (or the composer id and
 * .story-mode) plus !important where the page's blanket sweeps reach:
 * [data-theme=light] * * * (black on every leaf), the button sweeps
 * (square fills, shadows, backdrop-filter), and the modal colour fixer's
 * inline colours (colours here also set -webkit-text-fill-color, which
 * inline `color` cannot beat). Token names avoid page-colour roles where
 * a colour sits on a photograph (mobile-page-colors.js customRole).
 */

/* ------------------------------------------------------------------ tokens */
html body #mobile-blips-viewer#mobile-blips-viewer,
html body #new-custom-modal#new-custom-modal.story-mode {
    --bv-page: #ffffff;
    --bv-ink: #0b0b0c;
    --bv-dim: color-mix(in srgb, var(--bv-ink) 60%, var(--bv-page));
    --bv-faint: color-mix(in srgb, var(--bv-ink) 40%, var(--bv-page));
    --bv-line: color-mix(in srgb, var(--bv-ink) 12%, var(--bv-page));
    --bv-wash: color-mix(in srgb, var(--bv-ink) 6%, transparent);
    --bv-accent: var(--primary-color, #0b0b0c);
    --bv-on-accent: #ffffff;
    --bv-danger: #d92d20;
    --bv-menu: #ffffff;
    --bv-menu-shadow: 0 18px 44px rgba(10, 10, 14, 0.22), 0 0 0 1px rgba(10, 10, 14, 0.06);
    /* On a photograph: white, whatever the page. */
    --bv-on-photo: #ffffff;
    --bv-on-photo-dim: rgba(255, 255, 255, 0.78);
    --bv-on-photo-track: rgba(255, 255, 255, 0.34);
    --bv-disc-on-photo: rgba(0, 0, 0, 0.26);
    --bv-top: var(--blips-top-inset, env(safe-area-inset-top, 0px));
    --bv-sans: "Archivo", var(--font-family, -apple-system), system-ui, sans-serif;
    --bv-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html[data-theme="dark"] body #mobile-blips-viewer#mobile-blips-viewer,
html[data-theme="dark"] body #new-custom-modal#new-custom-modal.story-mode {
    --bv-page: #000000;
    --bv-ink: #f4f4f2;
    --bv-danger: #ff6b5e;
    --bv-menu: #161618;
    --bv-menu-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

html[data-page-color] body #mobile-blips-viewer#mobile-blips-viewer,
html[data-page-color] body #new-custom-modal#new-custom-modal.story-mode {
    --bv-page: var(--pc-page);
    --bv-ink: var(--pc-ink);
    --bv-dim: var(--pc-dim);
    --bv-faint: var(--pc-faint);
    --bv-line: var(--pc-line);
    --bv-wash: color-mix(in srgb, var(--pc-ink) 7%, transparent);
    --bv-accent: var(--pc-btn);
    --bv-on-accent: var(--pc-on-btn);
    --bv-danger: var(--pc-bad);
    --bv-menu: var(--pc-card, var(--pc-page));
}

html[data-appearance="glass"] body #mobile-blips-viewer#mobile-blips-viewer,
html[data-appearance="glass"] body #new-custom-modal#new-custom-modal.story-mode {
    --bv-page: transparent;
    --bv-ink: #ffffff;
    --bv-dim: rgba(255, 255, 255, 0.72);
    --bv-faint: rgba(255, 255, 255, 0.52);
    --bv-line: rgba(255, 255, 255, 0.24);
    --bv-wash: var(--gl-fill, rgba(255, 255, 255, 0.14));
    --bv-accent: var(--gl-cta, rgba(255, 255, 255, 0.92));
    --bv-on-accent: var(--gl-cta-ink, #0b0b0c);
    --bv-danger: #ff8a80;
    --bv-menu: var(--gl-sheet, rgba(28, 28, 32, 0.42));
    --bv-menu-shadow: var(--gl-shadow, 0 10px 30px rgba(0, 0, 0, 0.22)), 0 0 0 1px var(--gl-rim, rgba(255, 255, 255, 0.32));
}

/* ================================================================ viewer */
html body #mobile-blips-viewer#mobile-blips-viewer {
    position: fixed !important;
    inset: 0 !important;
    z-index: 130001;
    overflow: hidden !important;
    padding: 0 !important;
    background: var(--bv-page) !important;
    font-family: var(--bv-sans) !important;
    touch-action: none;
    overscroll-behavior: contain;
    /* What the chrome is drawn in; set per mode below. */
    --bv-c: var(--bv-ink);
    --bv-c-dim: var(--bv-dim);
    --bv-c-track: var(--bv-line);
    --bv-disc: var(--bv-wash);
}
html[data-appearance="glass"] body #mobile-blips-viewer#mobile-blips-viewer {
    background: rgba(11, 11, 12, 0.34) !important;
    -webkit-backdrop-filter: blur(30px) saturate(160%) !important;
    backdrop-filter: blur(30px) saturate(160%) !important;
}
/* A tall film fills the screen: white chrome on the scrim, in every look. */
html body #mobile-blips-viewer#mobile-blips-viewer.is-fill {
    background: #000 !important;
    --bv-c: var(--bv-on-photo);
    --bv-c-dim: var(--bv-on-photo-dim);
    --bv-c-track: var(--bv-on-photo-track);
    --bv-disc: var(--bv-disc-on-photo);
}
html body #mobile-blips-viewer#mobile-blips-viewer.is-dragging {
    border-radius: 28px;
}

/* Everything inside takes the chrome colour and the Community type unless
   a rule below says otherwise. Beats the theme's leaf sweep and the old
   white-text overrides. */
html body #mobile-blips-viewer#mobile-blips-viewer,
html body #mobile-blips-viewer#mobile-blips-viewer * {
    color: var(--bv-c) !important;
    -webkit-text-fill-color: var(--bv-c) !important;
    text-shadow: none !important;
    box-sizing: border-box;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
html body #mobile-blips-viewer#mobile-blips-viewer svg,
html body #mobile-blips-viewer#mobile-blips-viewer svg * {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}
html body #mobile-blips-viewer#mobile-blips-viewer svg [stroke] { stroke: currentColor !important; }
html body #mobile-blips-viewer#mobile-blips-viewer svg *:not([stroke]) { stroke: none !important; }
html body #mobile-blips-viewer#mobile-blips-viewer svg [fill="currentColor"] { fill: currentColor !important; }
html body #mobile-blips-viewer#mobile-blips-viewer svg [fill="none"] { fill: none !important; }
/* One face throughout; the mono eyebrows name themselves below. */
html body #mobile-blips-viewer#mobile-blips-viewer * { font-family: inherit !important; }
html body #mobile-blips-viewer#mobile-blips-viewer button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* ------------------------------------------------------------------ stage */
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-stage {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent !important;
}
html body #mobile-blips-viewer#mobile-blips-viewer.is-fill .blipv-media {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    background: #000;
}
/* A wide film is set on the page between the top row and the foot. */
html body #mobile-blips-viewer#mobile-blips-viewer.is-fit .blipv-stage {
    padding: calc(var(--bv-top) + 84px) 16px calc(env(safe-area-inset-bottom, 0px) + 140px);
}
html body #mobile-blips-viewer#mobile-blips-viewer.is-fit .blipv-media {
    position: static;
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border-radius: 22px !important;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-embed {
    border: 0 !important;
    border-radius: 18px;
    background: #000 !important;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-embed--wide { width: 100%; max-width: 480px; aspect-ratio: 16 / 9; }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-embed--tall { width: 100%; max-width: 340px; height: min(600px, 100%); }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-audio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-audio svg { width: 72px; height: 72px; opacity: .85; }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-audio audio { width: min(300px, 80vw); }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-text {
    max-width: 520px;
    padding: 0 12px;
    font-family: var(--bv-sans) !important;
    font-size: 40px;
    line-height: .95;
    font-weight: 900;
    font-stretch: 75%;
    font-variation-settings: "wdth" 75;
    text-transform: uppercase;
    text-align: left;
    overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ scrims */
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-scrim {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
    display: none;
    pointer-events: none;
}
html body #mobile-blips-viewer#mobile-blips-viewer.is-fill .blipv-scrim { display: block; }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-scrim--top {
    top: 0;
    height: calc(var(--bv-top) + 150px);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.22) 55%, rgba(0, 0, 0, 0) 100%) !important;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-scrim--foot {
    bottom: 0;
    height: calc(env(safe-area-inset-bottom, 0px) + 300px);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0) 100%) !important;
}

/* ---------------------------------------------------------------- loading */
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none !important;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-loading.is-loading { display: flex !important; }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-spinner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2.5px solid var(--bv-c-track);
    border-top-color: var(--bv-c);
    animation: blipvSpin 800ms linear infinite;
}
@keyframes blipvSpin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------------- tap zones */
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-tap {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    background: transparent !important;
    cursor: pointer;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-tap--prev { left: 0; width: 30%; }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-tap--next { right: 0; width: 70%; }

/* ------------------------------------------------------------ round icons */
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-icon {
    flex: 0 0 auto;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: var(--bv-disc) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    outline: none;
    font-size: 0 !important;
    line-height: 0 !important;
    transition: transform 140ms ease, background-color 140ms ease;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-icon[hidden],
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-icon[style*="display: none"],
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-icon[style*="display:none"],
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-menu-wrap[style*="display: none"],
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-menu-wrap[style*="display:none"] { display: none !important; }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-icon:active { transform: scale(0.9); }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-icon:focus-visible {
    box-shadow: 0 0 0 2px var(--bv-c) !important;
}
html[data-appearance="glass"] body #mobile-blips-viewer#mobile-blips-viewer:not(.is-fill) .blipv-icon {
    background: var(--gl-fill, rgba(255, 255, 255, 0.14)) !important;
    box-shadow: var(--gl-hi, inset 0 1px 0 rgba(255, 255, 255, 0.35)), inset 0 0 0 1px var(--gl-rim, rgba(255, 255, 255, 0.32)) !important;
    -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
    backdrop-filter: blur(16px) saturate(160%) !important;
}

/* Desktop arrows; a phone turns pages by tapping the film. */
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px !important;
    height: 48px !important;
    transform: translateY(-50%);
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-arrow:active { transform: translateY(-50%) scale(0.92); }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-arrow--prev { left: 16px; }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-arrow--next { right: 16px; }
@media (hover: none), (pointer: coarse) {
    html body #mobile-blips-viewer#mobile-blips-viewer .blipv-arrow { display: none !important; }
}

/* --------------------------------------------------------------- progress */
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-progress {
    position: absolute;
    top: calc(var(--bv-top) + 10px);
    left: 16px;
    right: 16px;
    z-index: 5;
    display: flex;
    gap: 4px;
    height: 3px;
    pointer-events: none;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-progress__track {
    flex: 1 1 0;
    height: 3px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--bv-c-track) !important;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-progress .mobile-blips-progress-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--bv-c) !important;
}

/* -------------------------------------------------------------- top row */
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-top {
    position: absolute;
    top: calc(var(--bv-top) + 24px);
    left: 16px;
    right: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-top > * { pointer-events: auto; }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-top > .blipv-who { pointer-events: none; }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-who {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-who__face {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--bv-disc) !important;
    box-shadow: 0 0 0 2px var(--bv-c) !important;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-who__face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-who__initial {
    font-size: 16px;
    font-weight: 900;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-who__words {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-who__name {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: var(--bv-sans) !important;
    font-size: 17px;
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-who__age {
    display: block;
    font-family: var(--bv-mono) !important;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bv-c-dim) !important;
    -webkit-text-fill-color: var(--bv-c-dim) !important;
}
html body #mobile-blips-viewer#mobile-blips-viewer.is-fill .blipv-who__name,
html body #mobile-blips-viewer#mobile-blips-viewer.is-fill .blipv-who__age,
html body #mobile-blips-viewer#mobile-blips-viewer.is-fill .blipv-caption {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35) !important;
}

/* The + only shows beside a live blip; the invitation has its own button. */
html body #mobile-blips-viewer#mobile-blips-viewer.is-empty #mobile-blips-drop-btn { display: none !important; }

/* ------------------------------------------------------------------ menu */
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-menu-wrap { position: relative; }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-menu {
    position: absolute;
    top: 48px;
    right: 0;
    z-index: 8;
    min-width: 196px;
    padding: 6px;
    border: 0 !important;
    border-radius: 20px;
    background: var(--bv-menu) !important;
    box-shadow: var(--bv-menu-shadow) !important;
    /* The menu is a page surface, not the film: page ink even over a photo. */
    --bv-c: var(--bv-ink);
}
html[data-appearance="glass"] body #mobile-blips-viewer#mobile-blips-viewer .blipv-menu {
    -webkit-backdrop-filter: var(--gl-blur, blur(22px) saturate(170%)) !important;
    backdrop-filter: var(--gl-blur, blur(22px) saturate(170%)) !important;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-menu__item {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    font-family: var(--bv-sans) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    text-align: left;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-menu__item:active { background: var(--bv-wash) !important; }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-menu__item svg { width: 20px; height: 20px; flex: 0 0 auto; }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-menu__item--danger,
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-menu__item--danger * {
    color: var(--bv-danger) !important;
    -webkit-text-fill-color: var(--bv-danger) !important;
}

/* ------------------------------------------------------------------ foot */
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 12px calc(env(safe-area-inset-bottom, 0px) + 14px) 16px;
    pointer-events: none;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-caption-wrap {
    position: static !important;
    padding: 0 4px 0 0;
    pointer-events: none;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-caption {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    margin: 0;
    padding: 0 !important;
    max-width: 34ch;
    border: 0 !important;
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    font-family: var(--bv-sans) !important;
    font-size: 20px !important;
    line-height: 1.22 !important;
    font-weight: 650 !important;
    letter-spacing: -0.015em;
    text-align: left;
    white-space: normal;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-media-ctl {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2px;
    pointer-events: auto;
    background: none !important;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-act {
    height: 44px !important;
    min-width: 44px;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0 !important;
    border-radius: 999px !important;
    background: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transition: transform 140ms ease;
}
html body #mobile-blips-viewer#mobile-blips-viewer.is-fill .blipv-act {
    filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-act:active { transform: scale(0.9); }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-act svg { width: 23px; height: 23px; display: block; }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-act__count {
    font-family: var(--bv-mono) !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-act__count:empty { display: none; }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-act.is-on,
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-act.is-on * {
    color: #ff4a15 !important;
    -webkit-text-fill-color: #ff4a15 !important;
}

/* ------------------------------------------------------------ invitation */
/* The owner with nothing live: the page itself, big words, one button. */
html body #mobile-blips-viewer#mobile-blips-viewer.is-empty .blipv-stage {
    align-items: flex-end;
    justify-content: flex-start;
    padding: calc(var(--bv-top) + 96px) 20px calc(env(safe-area-inset-bottom, 0px) + 40px);
}
html body #mobile-blips-viewer#mobile-blips-viewer.is-empty .blipv-foot,
html body #mobile-blips-viewer#mobile-blips-viewer.is-empty .blipv-progress,
html body #mobile-blips-viewer#mobile-blips-viewer.is-empty .blipv-tap { display: none !important; }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-empty {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-eyebrow {
    margin: 0 0 14px;
    font-family: var(--bv-mono) !important;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bv-dim) !important;
    -webkit-text-fill-color: var(--bv-dim) !important;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-eyebrow span,
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-eyebrow * {
    color: var(--bv-faint) !important;
    -webkit-text-fill-color: var(--bv-faint) !important;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-empty__title {
    margin: 0;
    font-family: var(--bv-sans) !important;
    font-size: 72px;
    line-height: .86;
    font-weight: 900;
    font-stretch: 75%;
    font-variation-settings: "wdth" 75;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-empty__copy {
    max-width: 30ch;
    margin: 16px 0 0;
    font-family: var(--bv-sans) !important;
    font-size: 17px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em;
    color: var(--bv-dim) !important;
    -webkit-text-fill-color: var(--bv-dim) !important;
    text-wrap: pretty;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-cta,
html body #new-custom-modal#new-custom-modal.story-mode #submit-new-byte-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    height: 56px !important;
    padding: 0 28px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--bv-accent) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    font-family: var(--bv-sans) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    transition: transform 140ms ease, background-color 160ms ease, opacity 160ms ease !important;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-cta { margin-top: 28px; }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-cta,
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-cta * {
    color: var(--bv-on-accent) !important;
    -webkit-text-fill-color: var(--bv-on-accent) !important;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-cta svg { width: 20px; height: 20px; }
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-cta:active,
html body #new-custom-modal#new-custom-modal.story-mode #submit-new-byte-btn:active { transform: scale(0.97); }

/* The header's Blips button: the app colour when fresh blips exist. */
html body #mobile-header-blips-wrap.has-blips {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18) inset, 0 0 0 2px rgba(var(--primary-rgb), 0.22);
}
html body #mobile-header-blips-wrap:active { transform: scale(0.96); }

/* ============================================================== composer */
/* The shared composer in .story-mode: the same form and ids, drawn as a
   Community page. Regular posts keep create.css. */
html body #new-custom-modal#new-custom-modal.story-mode {
    background: var(--bv-page) !important;
    font-family: var(--bv-sans) !important;
}
html[data-appearance="glass"] body #new-custom-modal#new-custom-modal.story-mode {
    background: var(--gl-sheet, rgba(28, 28, 32, 0.42)) !important;
    -webkit-backdrop-filter: blur(30px) saturate(160%) !important;
    backdrop-filter: blur(30px) saturate(160%) !important;
}
html body #new-custom-modal#new-custom-modal.story-mode *:not(i):not(svg):not(path) {
    font-family: var(--bv-sans) !important;
}
html body #new-custom-modal#new-custom-modal.story-mode :is(#bytes-composer-head, #bytes-modal-scroll, #modal-content-wrapper, #modal-content-upload, #bytes-upload-form-content, .bytes-composer-foot) {
    background: transparent !important;
    box-shadow: none !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-head *,
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer * {
    color: var(--bv-ink) !important;
    -webkit-text-fill-color: var(--bv-ink) !important;
}

/* Head: Cancel on the left, the round settings mark on the right; the
   title moves into the page as the headline below. */
html body #new-custom-modal#new-custom-modal.story-mode #bytes-composer-head {
    border: 0 !important;
}
html body #new-custom-modal#new-custom-modal.story-mode #bytes-composer-head .bytes-composer-title {
    visibility: hidden;
}
html body #new-custom-modal#new-custom-modal.story-mode #bytes-composer-cancel {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    color: var(--bv-dim) !important;
    -webkit-text-fill-color: var(--bv-dim) !important;
}
html body #new-custom-modal#new-custom-modal.story-mode #bytes-composer-settings {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: var(--bv-wash) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
html body #new-custom-modal#new-custom-modal.story-mode #bytes-composer-settings i {
    color: var(--bv-ink) !important;
    -webkit-text-fill-color: var(--bv-ink) !important;
    font-size: 16px !important;
}

/* A video that cannot play here says so and moves on. */
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-unplayable {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    font-family: var(--bv-mono) !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bv-dim) !important;
    -webkit-text-fill-color: var(--bv-dim) !important;
}

/* Full-screen blip surfaces: nothing floats over them. */
html body:has(#new-custom-modal.story-mode[style*="display: block"]) #pwa-install-banner,
html body:has(#mobile-blips-viewer[style*="display: block"]) #pwa-install-banner {
    display: none !important;
}

/* ============================================================ blip rails */
/* The Community home's rail (#community-blips-rail, mobile-blips.js
   renderCommunityBlipsRail): blips from every room the viewer can open, as
   circles with who posted each and the room it is in. It leads the home
   page; mobile-community-home.css hides the old rail there, so this brings
   it back only once it has been redrawn as circles (.blipr-rail). */
html body.community-active.community-layers-home-on:not(.community-room-mode):not(.community-explore-open) #community-main-area#community-main-area #community-blips-rail#community-blips-rail.blipr-rail:not([hidden]) {
    display: flex !important;
}
html body #community-blips-rail#community-blips-rail.blipr-rail {
    --br-ink: #0b0b0c;
    --br-page: #ffffff;
    --br-dim: color-mix(in srgb, var(--br-ink) 55%, var(--br-page));
    --br-rim: color-mix(in srgb, var(--br-ink) 16%, var(--br-page));
    --br-accent: var(--primary-color, #0b0b0c);
    gap: 14px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 16px 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    scrollbar-width: none;
    scroll-padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
    font-family: "Archivo", var(--font-family, system-ui), sans-serif !important;
}
html[data-theme="dark"] body #community-blips-rail#community-blips-rail.blipr-rail {
    --br-ink: #f4f4f2;
    --br-page: #000000;
}
html[data-page-color] body #community-blips-rail#community-blips-rail.blipr-rail {
    --br-ink: var(--pc-ink);
    --br-page: var(--pc-page);
    --br-dim: var(--pc-dim);
    --br-rim: var(--pc-line);
    --br-accent: var(--pc-hl, var(--primary-color));
}
html[data-appearance="glass"] body #community-blips-rail#community-blips-rail.blipr-rail {
    --br-ink: #ffffff;
    --br-page: transparent;
    --br-dim: rgba(255, 255, 255, 0.72);
    --br-rim: rgba(255, 255, 255, 0.34);
}
html body #community-blips-rail#community-blips-rail.blipr-rail::-webkit-scrollbar { display: none; }
html body #community-blips-rail#community-blips-rail .blipr,
html body #mobile-community-room#mobile-community-room.room-immersive:not(#rm-a):not(#rm-b) .crs-blips__row .crs-blip {
    flex: 0 0 auto !important;
    width: 84px !important;
    min-width: 84px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 7px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    overflow: visible !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
html body #community-blips-rail#community-blips-rail .blipr__ring {
    position: relative;
    width: 80px;
    height: 80px;
    padding: 3px;
    display: block;
    border-radius: 50%;
    background: var(--br-accent) !important;
}
html body #community-blips-rail#community-blips-rail .blipr__face {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--br-page) !important;
    box-shadow: 0 0 0 2.5px var(--br-page) !important;
}
html[data-appearance="glass"] body #community-blips-rail#community-blips-rail .blipr__face {
    background: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 0 0 2.5px rgba(11, 11, 12, 0.6) !important;
}
html body #community-blips-rail#community-blips-rail .blipr__face img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
html body #community-blips-rail#community-blips-rail .blipr.is-video .blipr__ring::after {
    content: '';
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--br-ink) no-repeat center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E");
    box-shadow: 0 0 0 2.5px var(--br-page);
}
html body #community-blips-rail#community-blips-rail .blipr--add .blipr__ring {
    background: transparent !important;
    box-shadow: inset 0 0 0 2px var(--br-rim) !important;
}
html body #community-blips-rail#community-blips-rail .blipr--add .blipr__face {
    background: transparent !important;
    box-shadow: none !important;
}
html body #community-blips-rail#community-blips-rail .blipr--add svg { width: 28px; height: 28px; }
html body #community-blips-rail#community-blips-rail .blipr--add svg * { stroke: var(--br-ink) !important; }
html body #community-blips-rail#community-blips-rail .blipr__initial {
    font-size: 28px;
    font-weight: 900;
}
html body #community-blips-rail#community-blips-rail .blipr *,
html body #community-blips-rail#community-blips-rail .blipr__initial {
    color: var(--br-ink) !important;
    -webkit-text-fill-color: var(--br-ink) !important;
    text-shadow: none !important;
}
html body #community-blips-rail#community-blips-rail .blipr__name,
html body #community-blips-rail#community-blips-rail .blipr__room {
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
}
html body #community-blips-rail#community-blips-rail .blipr__name {
    font-family: "Archivo", var(--font-family, system-ui), sans-serif !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
}
html body #community-blips-rail#community-blips-rail .blipr__room {
    margin-top: -3px;
    font-family: "JetBrains Mono", ui-monospace, monospace !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--br-dim) !important;
    -webkit-text-fill-color: var(--br-dim) !important;
}

/* The room's own strip (room.js): a bit larger circles, names that read. */
html body #mobile-community-room#mobile-community-room.room-immersive:not(#rm-a):not(#rm-b) .crs-blips__row {
    gap: 12px !important;
}
html body #mobile-community-room#mobile-community-room.room-immersive:not(#rm-a):not(#rm-b) .crs-blips__row .crs-blip__ring {
    width: 78px !important;
    height: 78px !important;
}
html body #mobile-community-room#mobile-community-room.room-immersive:not(#rm-a):not(#rm-b) .crs-blips__row .crs-blip__name {
    width: 100% !important;
    font-size: 12.5px !important;
    font-weight: 750 !important;
}
html body #mobile-community-room#mobile-community-room.room-immersive:not(#rm-a):not(#rm-b) .crs-blips__row .crs-blip--add .crs-blip__face {
    font-size: 30px !important;
}

/* Viewer: the room a blip is in, ahead of its age. */
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-who__room {
    font-family: inherit !important;
}
html body #mobile-blips-viewer#mobile-blips-viewer .blipv-who__age {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ============================================= composer, camera style */
/* A new blip reads like a story camera, not a form. Inside the shared
   composer's form (same ids, same submitNewByte), in .story-mode only:
     1. the media card is the stage: a tall rounded frame that is the
        picker when empty (a big + and "Tap to add") and the film once
        something is picked (the first pick fills it; the others and an
        add tile ride in a strip at its top-left);
     2. the caption card is pulled up onto the film's foot, white on a
        soft scrim, "Say something…"; a counter only near the limit;
     3. room faces under the stage (mobile-blips.js paintBlipRoomPicker);
     4. a "24h" chip and Share with an arrow.
   Everything else in the form (eyebrows, the source switch, more options,
   the storage offer unless a video was refused) is hidden. */
html body #new-custom-modal#new-custom-modal.story-mode {
    --blipc-stage-h: clamp(330px, calc(100dvh - 318px), 660px);
    --blipc-cap-h: 88px;
    --blipc-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}
html body #new-custom-modal#new-custom-modal.story-mode #bytes-composer-head .bytes-composer-title { visibility: hidden; }
html body #new-custom-modal#new-custom-modal.story-mode #bytes-composer-head #bytes-composer-settings { flex: 0 0 40px !important; }
html body #new-custom-modal#new-custom-modal.story-mode #bytes-composer-head { padding-left: 16px !important; padding-right: 16px !important; }
html body #new-custom-modal#new-custom-modal.story-mode #modal-content-wrapper { padding: 4px 16px 0 !important; }
html body #new-custom-modal#new-custom-modal.story-mode #bytes-upload-form-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}
html body #new-custom-modal#new-custom-modal.story-mode #bytes-upload-form-content > :not(.bytes-composer-card--media):not(.bytes-composer-card--caption):not(#new-byte-upload-error):not(#blip-composer-hero):not(.bytes-composer-foot) {
    display: none !important;
}
html body #new-custom-modal#new-custom-modal.story-mode #bytes-upload-form-content > .bytes-composer-card--media { order: 1; }
html body #new-custom-modal#new-custom-modal.story-mode #bytes-upload-form-content > .bytes-composer-card--caption { order: 2; }
html body #new-custom-modal#new-custom-modal.story-mode #bytes-upload-form-content > #new-byte-upload-error { order: 3; }
html body #new-custom-modal#new-custom-modal.story-mode #bytes-upload-form-content > #blip-composer-hero { order: 4; }
html body #new-custom-modal#new-custom-modal.story-mode #bytes-upload-form-content > .bytes-composer-foot { order: 5; }

/* Head: a round close on the left; the settings disc stays on the right. */
html body #new-custom-modal#new-custom-modal.story-mode #bytes-composer-head #bytes-composer-cancel#bytes-composer-cancel {
    position: relative !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: var(--bv-wash) !important;
    font-size: 0 !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    overflow: hidden;
}
html body #new-custom-modal#new-custom-modal.story-mode #bytes-composer-head #bytes-composer-cancel#bytes-composer-cancel::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    background: var(--bv-ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 1. The stage. */
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-card.bytes-composer-card--media {
    position: relative !important;
    isolation: isolate;
    height: var(--blipc-stage-h) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    background: var(--bv-wash) !important;
    box-shadow: inset 0 0 0 2px var(--bv-line) !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-card--media::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 20px;
    border: 2px dashed var(--bv-line);
    pointer-events: none;
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-card--media:has(.bytes-media-tile:not(.bytes-media-tile-add)) {
    background: #0b0b0c !important;
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.55) !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-card--media:has(.bytes-media-tile:not(.bytes-media-tile-add))::before { display: none; }
/* The scrim the caption sits on. */
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-card--media:has(.bytes-media-tile:not(.bytes-media-tile-add))::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 44%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
}
html body #new-custom-modal#new-custom-modal.story-mode #bytes-section-media {
    position: absolute !important;
    inset: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
html body #new-custom-modal#new-custom-modal.story-mode #bytes-section-media #bytes-media-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
/* Empty: the whole stage is the picker. */
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-card--media .bytes-file-upload-control {
    position: absolute !important;
    inset: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-card--media:has(.bytes-media-tile:not(.bytes-media-tile-add)) .bytes-file-upload-control { display: none !important; }
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-card--media .bytes-file-upload-icon {
    position: relative;
    width: 96px !important;
    height: 96px !important;
    display: block !important;
    border-radius: 50% !important;
    background: var(--bv-accent) !important;
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--bv-accent) 18%, transparent) !important;
    animation: blipc-breathe 2.6s ease-in-out infinite;
    transition: transform 0.2s var(--blipc-pop);
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-card--media .bytes-file-upload-control:active .bytes-file-upload-icon { transform: scale(0.92); }
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-card--media .bytes-file-upload-icon i { display: none !important; }
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-card--media .bytes-file-upload-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 40px;
    height: 40px;
    background: var(--bv-on-accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes blipc-breathe {
    0%, 100% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--bv-accent) 18%, transparent); }
    50% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--bv-accent) 8%, transparent); }
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-card--media .bytes-file-upload-copy { display: block !important; text-align: center; }
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-card--media .bytes-file-upload-copy > span { display: none !important; }
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-card--media .bytes-file-upload-copy::before {
    content: "Tap to add";
    display: block;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    font-stretch: 80%;
    font-variation-settings: "wdth" 80;
    letter-spacing: -0.01em;
    color: var(--bv-ink);
    -webkit-text-fill-color: var(--bv-ink);
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-card--media .bytes-file-upload-copy::after {
    content: "Photo or video";
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bv-dim);
    -webkit-text-fill-color: var(--bv-dim);
}

/* Picked: the first fills the stage, the rest ride in a strip. */
html body #new-custom-modal#new-custom-modal.story-mode #bytes-media-preview#bytes-media-preview {
    position: absolute !important;
    inset: 0 !important;
    margin: 0 !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-media-tiles {
    position: absolute !important;
    inset: 0 !important;
    margin: 0 !important;
    padding: 14px 64px 14px 14px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-content: flex-start !important;
    align-items: flex-start !important;
    gap: 8px !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-media-tile {
    position: relative !important;
    flex: none !important;
    width: 44px !important;
    height: 62px !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    overflow: visible !important;
    background: #000 !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 6px 14px rgba(0, 0, 0, 0.3) !important;
    z-index: 2;
    animation: blipc-pop 0.32s var(--blipc-pop);
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-media-tile > img,
html body #new-custom-modal#new-custom-modal.story-mode .bytes-media-tile > video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: inherit !important;
    display: block !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-media-tile:first-child {
    position: absolute !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 0;
    animation: blipc-film 0.4s ease;
}
@keyframes blipc-film { from { opacity: 0; transform: scale(1.04); } }
@keyframes blipc-pop { 0% { transform: scale(0.8); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
html body #new-custom-modal#new-custom-modal.story-mode .bytes-media-tile .bytes-media-tile-remove {
    position: absolute !important;
    top: -7px !important;
    right: -7px !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 0 !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.72) !important;
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9) !important;
    z-index: 3;
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-media-tile .bytes-media-tile-remove i {
    font-size: 11px !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-media-tile:first-child .bytes-media-tile-remove {
    top: 14px !important;
    right: 14px !important;
    width: 38px !important;
    height: 38px !important;
    background: rgba(0, 0, 0, 0.42) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-media-tile:first-child .bytes-media-tile-remove i { font-size: 16px !important; }
html body #new-custom-modal#new-custom-modal.story-mode .bytes-media-tile .bytes-media-tile-badge {
    left: 4px !important;
    bottom: 4px !important;
    font-family: var(--bv-mono) !important;
    font-size: 9px !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-media-tile:first-child .bytes-media-tile-badge { left: auto !important; right: 18px !important; top: 60px !important; bottom: auto !important; font-size: 11px !important; }
html body #new-custom-modal#new-custom-modal.story-mode .bytes-media-tile.bytes-media-tile-add {
    display: grid !important;
    place-items: center !important;
    background: rgba(0, 0, 0, 0.36) !important;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    cursor: pointer;
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-media-tile.bytes-media-tile-add i {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    font-size: 17px !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-media-tile.bytes-media-tile-add span { display: none !important; }

/* What the picker says: a refusal shows as a pill on the stage; the
   "files ready" note does not. The storage offer only after a refusal. */
html body #new-custom-modal#new-custom-modal.story-mode #bytes-media-validation-msg {
    position: absolute !important;
    left: 14px !important;
    right: 14px !important;
    bottom: calc(var(--blipc-cap-h) + 4px) !important;
    z-index: 4;
    margin: 0 !important;
    padding: 10px 14px !important;
    border-radius: 16px !important;
    background: rgba(217, 45, 32, 0.92) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: center;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
html body #new-custom-modal#new-custom-modal.story-mode #bytes-media-validation-msg[style*="0, 255, 0"] { display: none !important; }
html body #new-custom-modal#new-custom-modal.story-mode .bytes-storage-offer { display: none !important; }
html body #new-custom-modal#new-custom-modal.story-mode #bytes-media-validation-msg[style*="255, 0, 0"][style*="block"] ~ .bytes-storage-offer:not([hidden]) {
    display: flex !important;
    position: absolute !important;
    left: 14px;
    right: 14px;
    bottom: 22px;
    z-index: 4;
    padding: 10px 14px !important;
    border-radius: 16px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
html body #new-custom-modal#new-custom-modal.story-mode #bytes-media-validation-msg[style*="255, 0, 0"][style*="block"] ~ .bytes-storage-offer * { color: #fff !important; -webkit-text-fill-color: #fff !important; }

/* 2. The caption, on the film's foot. */
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-card.bytes-composer-card--caption {
    position: relative !important;
    z-index: 5;
    height: var(--blipc-cap-h) !important;
    margin: calc(-1 * var(--blipc-cap-h)) 0 0 !important;
    padding: 0 18px 18px !important;
    display: flex !important;
    align-items: flex-end !important;
    gap: 10px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: none;
}
html body #new-custom-modal#new-custom-modal.story-mode:not(:has(.bytes-media-tile:not(.bytes-media-tile-add))) .bytes-composer-card--caption { visibility: hidden; }
html body #new-custom-modal#new-custom-modal.story-mode #bytes-upload-form-content #bytes-description#bytes-description,
html body #new-custom-modal#new-custom-modal.story-mode #bytes-upload-form-content #bytes-description#bytes-description:focus {
    flex: 1;
    min-width: 0;
    height: auto !important;
    min-height: 0 !important;
    max-height: 66px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 750 !important;
    letter-spacing: -0.01em !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
    resize: none !important;
    overflow-y: auto;
    field-sizing: content;
    pointer-events: auto;
    -webkit-user-select: text;
    user-select: text;
}
html body #new-custom-modal#new-custom-modal.story-mode #bytes-upload-form-content #bytes-description#bytes-description::placeholder {
    color: rgba(255, 255, 255, 0.74) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.74) !important;
    opacity: 1;
}
html body #new-custom-modal .blipc-count { display: none; }
html body #new-custom-modal#new-custom-modal.story-mode .blipc-count:not([hidden]) {
    display: block;
    flex: none;
    font-family: var(--bv-mono) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.85) !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .blipc-count.is-out { color: #ffb4a8 !important; -webkit-text-fill-color: #ffb4a8 !important; }
html body #new-custom-modal#new-custom-modal.story-mode #new-byte-upload-error {
    margin: 12px 0 0 !important;
    padding: 10px 14px !important;
    border-radius: 16px !important;
    background: color-mix(in srgb, var(--bv-danger) 14%, transparent) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: center;
    color: var(--bv-danger) !important;
    -webkit-text-fill-color: var(--bv-danger) !important;
}

/* 3. Where it goes: room faces. */
html body #new-custom-modal #blip-composer-hero { display: none; }
html body #new-custom-modal#new-custom-modal.story-mode #blip-composer-hero {
    display: block;
    margin: 16px -16px 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .blipc-room { margin: 0 !important; }
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rooms {
    display: flex;
    gap: 12px;
    padding: 8px 16px 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rooms::-webkit-scrollbar { display: none; }
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rm {
    flex: 0 0 auto !important;
    width: 64px !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 7px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    -webkit-tap-highlight-color: transparent;
}
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rooms.is-pinned .blipc-rm {
    width: auto !important;
    flex-direction: row !important;
    gap: 12px !important;
    pointer-events: none;
}
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rm__ring {
    position: relative;
    width: 58px;
    height: 58px;
    display: block;
    border-radius: 50%;
    transition: transform 0.2s ease;
}
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rm:active .blipc-rm__ring { transform: scale(0.92); }
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rm.is-on .blipc-rm__ring {
    box-shadow: 0 0 0 3px var(--bv-page), 0 0 0 6.5px var(--bv-accent) !important;
    animation: blipc-pop 0.34s var(--blipc-pop);
}
html[data-appearance="glass"] body #new-custom-modal#new-custom-modal.story-mode .blipc-rm.is-on .blipc-rm__ring {
    box-shadow: 0 0 0 3px rgba(11, 11, 12, 0.5), 0 0 0 6.5px var(--bv-accent) !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .blipc-face {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--bv-wash) !important;
    box-shadow: inset 0 0 0 1.5px var(--bv-line) !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .blipc-face img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
html body #new-custom-modal#new-custom-modal.story-mode .blipc-face__initial {
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: var(--bv-ink) !important;
    -webkit-text-fill-color: var(--bv-ink) !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rm__tick,
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rm__lock {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 50%;
}
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rm__tick {
    right: -5px;
    bottom: -5px;
    width: 24px;
    height: 24px;
    background: var(--bv-accent) !important;
    color: var(--bv-on-accent) !important;
    box-shadow: 0 0 0 2.5px var(--bv-page) !important;
    transform: scale(0);
    transition: transform 0.25s var(--blipc-pop);
}
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rm.is-on .blipc-rm__tick { transform: scale(1); }
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rm__lock {
    left: -4px;
    top: -4px;
    width: 21px;
    height: 21px;
    background: var(--bv-ink) !important;
    color: var(--bv-page) !important;
    box-shadow: 0 0 0 2.5px var(--bv-page) !important;
}
html[data-appearance="glass"] body #new-custom-modal#new-custom-modal.story-mode .blipc-rm__lock { color: #0b0b0c !important; box-shadow: none !important; }
html[data-appearance="glass"] body #new-custom-modal#new-custom-modal.story-mode .blipc-rm__tick { box-shadow: none !important; }
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rm__tick svg { width: 13px; height: 13px; }
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rm__lock svg { width: 11px; height: 11px; }
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rm__tick svg *, html body #new-custom-modal#new-custom-modal.story-mode .blipc-rm__lock svg * { color: inherit !important; }
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rm__tick svg path { stroke: var(--bv-on-accent) !important; }
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rm__lock svg rect { fill: var(--bv-page) !important; }
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rm__lock svg path { stroke: var(--bv-page) !important; }
html[data-appearance="glass"] body #new-custom-modal#new-custom-modal.story-mode .blipc-rm__lock svg rect { fill: #0b0b0c !important; }
html[data-appearance="glass"] body #new-custom-modal#new-custom-modal.story-mode .blipc-rm__lock svg path { stroke: #0b0b0c !important; }
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rm__name {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 11.5px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    color: var(--bv-dim) !important;
    -webkit-text-fill-color: var(--bv-dim) !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rm.is-on .blipc-rm__name { color: var(--bv-ink) !important; -webkit-text-fill-color: var(--bv-ink) !important; }
html body #new-custom-modal#new-custom-modal.story-mode .blipc-rooms.is-pinned .blipc-rm__name {
    font-size: 18px !important;
    font-weight: 850 !important;
    color: var(--bv-ink) !important;
    -webkit-text-fill-color: var(--bv-ink) !important;
}

/* 4. The 24h chip and Share. */
html body #new-custom-modal .blipc-timer { display: none; }
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-foot {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 0 calc(18px + env(safe-area-inset-bottom, 0px)) !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-foot #bytes-post-note { display: none !important; }
html body #new-custom-modal#new-custom-modal.story-mode .blipc-timer {
    flex: none;
    height: 56px;
    padding: 0 14px;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: var(--bv-wash) !important;
    box-shadow: inset 0 0 0 1.5px var(--bv-line) !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .blipc-timer svg { width: 17px; height: 17px; }
html body #new-custom-modal#new-custom-modal.story-mode .blipc-timer svg * { stroke: var(--bv-accent) !important; }
html[data-appearance="glass"] body #new-custom-modal#new-custom-modal.story-mode .blipc-timer svg * { stroke: #fff !important; }
html body #new-custom-modal#new-custom-modal.story-mode .blipc-timer span {
    font-family: var(--bv-mono) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--bv-ink) !important;
    -webkit-text-fill-color: var(--bv-ink) !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-foot #submit-new-byte-btn#submit-new-byte-btn {
    position: relative !important;
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    height: 56px !important;
    padding: 0 60px 0 24px !important;
    justify-content: flex-start !important;
    opacity: 1;
    box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--bv-accent) 85%, transparent) !important;
}
html body #new-custom-modal#new-custom-modal.story-mode:not(:has(.bytes-media-tile:not(.bytes-media-tile-add))) .bytes-composer-foot #submit-new-byte-btn#submit-new-byte-btn {
    opacity: 0.38 !important;
    pointer-events: none !important;
    box-shadow: none !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-foot #submit-new-byte-btn#submit-new-byte-btn:not(:disabled) { font-size: 0 !important; }
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-foot #submit-new-byte-btn#submit-new-byte-btn:not(:disabled) > * { display: none !important; }
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-foot #submit-new-byte-btn#submit-new-byte-btn:not(:disabled)::before {
    content: "Share";
    font-size: 19px;
    font-weight: 850;
    letter-spacing: -0.01em;
    color: var(--bv-on-accent);
    -webkit-text-fill-color: var(--bv-on-accent);
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-foot #submit-new-byte-btn#submit-new-byte-btn::after {
    content: "";
    position: absolute;
    right: 7px;
    top: 7px;
    width: 42px;
    height: 42px;
    background: var(--bv-on-accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 42'%3E%3Ccircle cx='21' cy='21' r='21' fill='%23000' fill-opacity='0.16'/%3E%3Cpath d='M13 21h15M22 15l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 42'%3E%3Ccircle cx='21' cy='21' r='21' fill='%23000' fill-opacity='0.16'/%3E%3Cpath d='M13 21h15M22 15l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-foot #submit-new-byte-btn#submit-new-byte-btn:disabled {
    font-size: 14px !important;
    font-weight: 800 !important;
}
html body #new-custom-modal#new-custom-modal.story-mode .bytes-composer-foot #submit-new-byte-btn#submit-new-byte-btn:disabled::after { animation: blipc-nudge 0.9s ease-in-out infinite; }
@keyframes blipc-nudge { 50% { transform: translateX(3px); } }

@media (prefers-reduced-motion: reduce) {
    html body #new-custom-modal#new-custom-modal.story-mode *, html body #new-custom-modal#new-custom-modal.story-mode *::before, html body #new-custom-modal#new-custom-modal.story-mode *::after { animation: none !important; }
}
