/* Shared community composition and stories; no media files are cropped or changed. */
.mb-community-heading{margin:0 0 12px!important}.mb-community-heading h1{font:700 32px/1.2 Georgia,serif!important;margin:0!important}.mb-community-heading>p{display:none}
.mb-community-main .mp-real-tabs,#collection-tabs .mp-real-tabs{margin:0!important;padding:0!important;gap:8px;min-height:52px;align-items:center}
.mb-community-main .mp-feed-filters,#collection-tabs .mp-feed-filters{display:flex!important;align-items:center;gap:12px!important;flex:1}
html body :is(.mb-community-main,#collection-tabs) .mb-feed-label{width:auto!important;min-width:80px!important;height:48px!important;padding:0 12px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font:600 14px/1.2 system-ui!important;letter-spacing:0!important;text-transform:none!important;transform:none!important}
:is(.mb-community-main,#collection-tabs) .mb-feed-label>svg{display:none!important}
.mb-community-main .mp-feed-filter-trigger,#collection-tabs .mp-feed-filter-trigger{margin-left:auto}
.mb-community-main .mp-real-tabs>a{display:none!important}
.mb-stories{display:flex;gap:18px;overflow-x:auto;overscroll-behavior-x:contain;padding:16px 2px 18px;border-bottom:1px solid var(--mb-line,#e4dbcf);margin-bottom:18px;scrollbar-width:thin}
.mb-stories[hidden],.mb-stories-status[hidden]{display:none!important}.mb-stories-status{font:13px/1.4 system-ui;color:var(--mb-muted,#796d62)}
.mb-stories button{border:0;background:transparent;color:var(--mb-ink,#34271f);font:12px/1.3 system-ui;padding:0;min-width:68px;width:68px;cursor:pointer;display:flex;align-items:center;flex-direction:column;gap:6px;flex:none}
.mb-story-person img,.mb-story-add-mark{box-sizing:border-box;width:62px;height:62px;border-radius:50%;border:2px solid var(--mb-line,#c3b8ab);padding:3px;object-fit:cover;display:flex;align-items:center;justify-content:center;font:300 32px/1 system-ui;color:var(--mb-accent,#a95d19)}.mb-story-unseen img{border-color:var(--mb-accent,#a95d19)}.mb-story-person>span{max-width:74px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mb-stories button:focus-visible{outline:2px solid #b66b22;outline-offset:4px;border-radius:8px}
.mb-story-viewer,.mb-story-composer{padding:0;border:1px solid var(--mb-line,#e4dbcf);border-radius:18px;color:var(--mb-ink,#34271f);background:var(--mb-card,#fffdfa);width:min(94vw,480px);max-height:92dvh;box-sizing:border-box}.mb-story-viewer::backdrop,.mb-story-composer::backdrop{background:#000b}
.mb-story-frame{display:flex;flex-direction:column;max-height:88dvh}.mb-story-frame header,.mb-story-composer header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px}.mb-story-frame header button,.mb-story-composer header button{font-size:26px;min-width:44px;min-height:44px;background:transparent;border:0;color:inherit}.mb-story-time{font:12px system-ui;color:var(--mb-muted,#796d62);padding:0 16px;margin:0 0 10px}.mb-story-picture{min-height:100px;min-width:0;overflow:auto;display:flex;justify-content:center;align-items:center}.mb-story-picture img{width:100%;max-height:65dvh;object-fit:contain}.mb-story-picture img[hidden]{display:none}.mb-story-picture p{padding:12px;font:14px system-ui}.mb-story-frame footer{display:flex;justify-content:space-between;gap:8px;padding:12px}.mb-story-frame footer button,.mb-story-composer button[type=submit]{border:1px solid var(--mb-line,#e4dbcf);color:var(--mb-ink,#34271f);background:var(--mb-paper,#faf7f2);border-radius:9px;padding:10px 14px;min-height:44px;cursor:pointer}.mb-story-frame [hidden]{display:none!important}
.mb-story-composer form{padding:14px}.mb-story-composer h2{font:700 24px Georgia;margin:0}.mb-story-composer label{display:block;margin:16px 0}.mb-story-composer input{display:block;max-width:100%;margin-top:8px}.mb-story-composer p{font:14px/1.5 system-ui}.mb-story-preview{max-width:100%;max-height:40dvh;object-fit:contain}.mb-story-composer button[type=submit]{background:#a95d19;color:#fff;width:100%}
@media(max-width:767px){.mb-community-heading h1{font-size:28px!important}.mb-stories{gap:12px;padding-block:12px;margin-bottom:14px}.mb-community-main .mp-real-tabs,#collection-tabs .mp-real-tabs{min-height:48px}html body :is(.mb-community-main,#collection-tabs) .mb-feed-label{min-width:74px!important;padding-inline:8px!important}.mb-community-tools{display:none!important}}
@media(prefers-color-scheme:dark){.mb-stories,.mb-story-viewer,.mb-story-composer{--mb-ink:#f1eae2;--mb-line:#635446;--mb-card:#29231d;--mb-paper:#211c17;--mb-muted:#c5b6a7;--mb-accent:#e4ab68}}
@media(min-width:768px){.mb-community-main .mp-real-tabs>a{display:inline-flex!important;font-size:12px!important;padding:8px 10px!important;white-space:nowrap;min-height:40px}}
#native-stories:has(.mb-stories[hidden]){display:none}
.mb-community-heading{padding:0!important}.mb-community-main .mp-real-home{padding-top:0!important}
html body :is(.mb-community-main,#collection-tabs) .mb-feed-label{color:var(--mb-muted,#796d62)!important;opacity:1!important;visibility:visible!important;text-indent:0!important;overflow:visible!important;flex:none!important}
html body :is(.mb-community-main,#collection-tabs) .mb-feed-label:is(.is-active,[aria-pressed=true]){color:var(--mb-accent,#a95d19)!important}
.mb-community-tools .mb-community-tool{padding:18px}.mb-community-tools .mb-community-tool h2{font:700 22px Georgia;margin:0 0 14px}.mb-community-tools .mb-community-tool>a{display:flex;align-items:center;min-height:44px;margin:0;padding:8px 0;font:500 14px system-ui;border-bottom:1px solid var(--mb-line,#e4dbcf);color:var(--mb-ink,#34271f);text-decoration:none}
.mb-story-add-portrait{position:relative;display:block;width:62px;height:62px}.mb-story-add-portrait>img{box-sizing:border-box;width:62px;height:62px;border-radius:50%;object-fit:cover;border:1px solid var(--mb-line,#e4dbcf)}.mb-story-add-portrait:has(img)>.mb-story-add-mark{position:absolute;right:-2px;bottom:-2px;width:25px;height:25px;padding:0;font-size:23px;background:var(--mb-accent,#a95d19);color:#fff;border:2px solid var(--mb-paper,#faf7f2)}
html body :is(.mb-community-main,#collection-tabs) .mb-community-search{display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--mb-ink,#34271f);width:44px;min-width:44px;height:44px;padding:8px;cursor:pointer;margin-left:auto}
html body :is(.mb-community-main,#collection-tabs) .mp-feed-filter-trigger{margin-left:0!important}
/* Stories are a full-screen viewer with a centered 9:16 media canvas. */
html body .mb-story-viewer[open]{position:fixed;inset:0;box-sizing:border-box;margin:0;padding:0;border:0;border-radius:0;width:100vw;max-width:none;height:100dvh;max-height:none;background:#090909;color:#fff;overflow:hidden;z-index:2147483647}
.mb-story-viewer .mb-story-frame{position:relative;box-sizing:border-box;width:min(100vw,calc(100dvh * 9 / 16));height:100dvh;max-height:none;margin:auto;background:#111;isolation:isolate}
.mb-story-viewer .mb-story-picture{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;background:#111}
.mb-story-viewer .mb-story-picture img{display:block;box-sizing:border-box;aspect-ratio:9/16;width:100%;height:auto;max-height:100dvh;object-fit:contain;background:#111}
.mb-story-viewer .mb-story-frame header{position:absolute;z-index:3;inset:0 0 auto;padding:calc(10px + env(safe-area-inset-top,0px)) 14px 32px;background:linear-gradient(#000b,transparent)}
.mb-story-viewer .mb-story-frame header button{color:#fff}.mb-story-viewer .mb-story-time{position:absolute;z-index:3;top:calc(60px + env(safe-area-inset-top,0px));left:14px;padding:0;color:#eee;text-shadow:0 1px 3px #000}
.mb-story-viewer .mb-story-frame footer{position:absolute;z-index:3;inset:auto 0 0;padding:30px 14px calc(14px + env(safe-area-inset-bottom,0px));background:linear-gradient(transparent,#000b)}
.mb-story-viewer .mb-story-frame footer button{border-color:#ffffff55;background:#0006;color:#fff}.mb-story-viewer .mb-story-picture p{color:white}
.mb-story-preview{display:block;aspect-ratio:9/16;width:auto;max-width:100%;height:40dvh;max-height:40dvh;background:#111;object-fit:contain;margin:12px auto}.mb-story-preview[hidden]{display:none}
body:has(.mb-story-viewer[open]){overflow:hidden!important}body:has(.mb-story-viewer[open]) :is(.mp-site-navigation,.mp-mobile-dock,#app-dock){visibility:hidden!important;pointer-events:none!important}

.mb-story-progress{position:absolute;z-index:5;top:calc(6px + env(safe-area-inset-top,0px));left:8px;right:8px;display:flex;gap:4px;height:3px;pointer-events:none}.mb-story-progress>span{flex:1;background:#ffffff55;overflow:hidden;border-radius:2px}.mb-story-progress i{display:block;height:100%;background:white;transform-origin:left}.mb-story-viewer .mb-story-frame header{padding-top:calc(18px + env(safe-area-inset-top,0px))}.mb-story-frame header strong{flex:1}.mb-story-picture{touch-action:none;user-select:none;-webkit-user-select:none}.mb-story-picture img{-webkit-user-drag:none;pointer-events:none}
html:has(.mb-story-viewer[open]),body:has(.mb-story-viewer[open]){background:#090909!important;color-scheme:dark}

.mb-story-viewer .mb-story-frame header strong{color:#fff!important;font:600 15px/1.3 system-ui!important}.mb-story-viewer .mb-story-frame header button{color:#fff!important;flex:none}.mb-story-viewer::backdrop{background:#090909}

/* One normalized 9:16 canvas for the original photograph and all editable layers. */
.mb-story-canvas,.mb-story-editor-stage{position:relative;aspect-ratio:9/16;container-type:inline-size;background:#111;isolation:isolate;overflow:hidden;flex:none}
.mb-story-viewer .mb-story-canvas{width:100%;height:auto;max-height:100%}
.mb-story-viewer .mb-story-canvas>img{position:absolute;inset:0;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain}
.mb-story-layers{position:absolute;inset:0;pointer-events:none;z-index:1}
html body .mb-story-layer{position:absolute;box-sizing:border-box;display:block;margin:0!important;padding:0!important;min-width:0!important;min-height:0!important;max-width:none!important;border:0!important;border-radius:8px;background:transparent!important;white-space:pre-wrap;overflow-wrap:anywhere;font:800 calc(var(--layer-font,8)*1cqw)/1.15 system-ui,sans-serif!important;letter-spacing:0!important;text-transform:none!important;user-select:none;-webkit-user-select:none;touch-action:none;text-decoration:none!important;box-shadow:none!important}
html body button.mb-story-layer{pointer-events:auto;cursor:grab}.mb-story-layer.is-selected{outline:2px dashed #fff;outline-offset:7px}
html body .mb-layer-text.mb-layer-shadow{text-shadow:0 2px 4px #000,0 0 14px #0009}
html body .mb-layer-text.mb-layer-label{background:#000b!important;padding:.16em .22em!important}
.mb-sticker-art{display:block;filter:drop-shadow(0 3px 2px #0003);pointer-events:none}.mb-sticker-art svg{display:block;width:100%;height:auto;overflow:visible}.mb-layer-sticker{text-shadow:none}
html body .mb-story-composer[open]{position:fixed;inset:0;margin:auto;border:0;border-radius:0;width:min(100vw,600px);max-width:none;height:100dvh;max-height:none;padding:0;overflow:hidden;background:var(--mb-paper,#faf7f2);color:var(--mb-ink,#34271f);z-index:2147483647}
html body .mb-story-composer>form{box-sizing:border-box;padding:0;display:flex;flex-direction:column;height:100%;gap:0;margin:0}
html body .mb-story-composer header{flex:none;padding:4px 14px;min-height:44px}.mb-story-composer header h2{font:700 20px Georgia!important}
.mb-story-photo-tool{display:flex;align-items:center;justify-content:space-between;padding:0 16px 6px;font:12px/1.2 system-ui;gap:8px;flex:none}
.mb-story-photo-tool label{cursor:pointer;margin:0;border:1px solid var(--mb-line,#d7c8b8);border-radius:20px;padding:9px 12px;color:inherit;font:600 12px system-ui!important}
.mb-story-photo-tool input{position:absolute;width:1px;height:1px;padding:0;opacity:0;overflow:hidden}.mb-story-photo-tool span{color:var(--mb-muted,#796d62)}
.mb-story-editor-space{flex:1;min-height:0;display:flex;justify-content:center;align-items:center;overflow:hidden;background:#151515}
.mb-story-editor-stage{height:100%;width:auto;max-width:100%;touch-action:none}
html body .mb-story-editor-stage>.mb-story-preview{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;margin:0;object-fit:contain;pointer-events:none;-webkit-user-drag:none}
html body .mb-story-editor-stage>.mb-story-preview[hidden]{display:none}
.mb-story-editor-controls{flex:none;padding:6px 10px 0;max-height:42dvh;overflow:auto;overscroll-behavior:contain}
.mb-layer-tools{display:flex;gap:5px;align-items:center;justify-content:space-between}
html body .mb-story-composer .mb-layer-tools button,html body .mb-story-composer [data-finish-layer]{border:1px solid var(--mb-line,#d7c8b8);border-radius:22px;padding:8px 12px;min-height:42px;background:var(--mb-card,#fffdfa);color:inherit;font:600 13px system-ui;cursor:pointer}
.mb-layer-tools button:disabled{opacity:.4}.mb-story-composer [hidden]{display:none!important}
.mb-layer-help{font:11px/1.3 system-ui!important;margin:5px 2px!important;color:var(--mb-muted,#796d62)}
.mb-sticker-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px 0;max-height:27dvh;overflow:auto}
html body .mb-story-composer .mb-sticker-choice{border:0;background:var(--mb-card,#fffdfa);padding:7px;border-radius:14px;min-width:0;min-height:56px;cursor:pointer}
.mb-layer-settings{padding-top:8px}.mb-story-composer .mb-layer-settings label{margin:0;font:12px/1.3 system-ui}.mb-layer-settings textarea{box-sizing:border-box;width:100%;border:1px solid var(--mb-line,#d7c8b8);border-radius:10px;padding:8px;background:var(--mb-card,#fffdfa);color:inherit;font:16px/1.3 system-ui;resize:none}
.mb-layer-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;align-items:center}.mb-story-composer .mb-layer-options input{width:100%;min-height:24px;margin:0;accent-color:#b86822}.mb-layer-options select{box-sizing:border-box;width:100%;font:13px system-ui;color:inherit;background:var(--mb-card,#fffdfa);border:1px solid var(--mb-line,#d7c8b8);border-radius:8px;min-height:32px}
.mb-layer-colors{display:flex;gap:12px;padding:8px 0}.mb-layer-colors button{width:28px;height:28px;border:2px solid #978473;border-radius:50%;padding:0;cursor:pointer}.mb-layer-hint{font:11px/1.4 system-ui!important;margin:4px 0!important;color:var(--mb-muted,#796d62)}
html body .mb-story-composer footer{padding:4px 12px max(10px,env(safe-area-inset-bottom,0px));flex:none;background:var(--mb-paper,#faf7f2)}.mb-story-composer footer p{margin:0;font:12px system-ui}.mb-story-composer footer p:empty{display:none}.mb-story-composer footer button[type=submit]{margin:0;min-height:44px;background:#a95d19;color:#fff;font:600 14px system-ui;border:0}
body:has(.mb-story-composer[open]){overflow:hidden!important}body:has(.mb-story-composer[open]) :is(.mp-site-navigation,.mp-mobile-dock,#app-dock){visibility:hidden!important;pointer-events:none!important}
@media(prefers-color-scheme:dark){.mb-story-composer{color-scheme:dark}}
/* Fit the complete 9:16 stage into the remaining editor space without stretching it. */
.mb-story-editor-space{container-type:size}
.mb-story-editor-stage{width:min(100cqw,calc(100cqh * 9 / 16));height:auto;max-height:100%;aspect-ratio:9/16}
.mb-story-viewer .mb-story-picture>p{position:absolute;inset:45% 12px auto;text-align:center;pointer-events:none}
.mb-story-viewer .mb-story-picture{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
/* Reactions and owner-only viewers; the shared original remains a separate layer. */
.mb-story-viewer button[data-story-like],.mb-story-viewer button[data-story-share]{font:28px/1 system-ui;padding:6px 10px;min-width:44px}
.mb-story-viewer button[data-story-like][aria-pressed=true]{color:#ff416b!important;border-color:#ff416b;background:#421124}
.mb-story-viewer .mb-story-frame footer{flex-wrap:wrap;align-items:center;gap:6px}
.mb-story-viewer [data-story-audience]{font:13px system-ui;margin-right:auto}
.mb-story-shared-card{position:absolute;inset:15% 10% 15%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px;border-radius:18px;background:#32271e;box-shadow:0 5px 24px #0004;pointer-events:none;box-sizing:border-box}
.mb-story-shared-card>strong{font:600 13px/1.3 system-ui;color:#fff;align-self:stretch;padding-bottom:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mb-story-shared-canvas{position:relative;aspect-ratio:9/16;max-height:calc(100% - 26px);width:auto;height:100%;container-type:inline-size;overflow:hidden;background:#111}
.mb-story-shared-canvas>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important}
.mb-story-shared-card+.mb-story-layers,.mb-story-editor-stage>.mb-story-layers{z-index:2}
.mb-story-audience{position:absolute;z-index:10;inset:20% 0 0;background:#211b17;color:#fff;border-radius:22px 22px 0 0;padding:14px 18px max(18px,env(safe-area-inset-bottom));overflow:auto;box-sizing:border-box;touch-action:pan-y}
.mb-story-viewer .mb-story-audience header{position:static!important;background:none!important;padding:0!important;display:flex;align-items:center}
.mb-story-audience h2{color:#fff!important;font:600 18px system-ui;margin:0;flex:1}.mb-story-audience p{font:14px system-ui;color:#dfd3c8}
.mb-story-audience-person{display:flex;align-items:center;gap:12px;min-height:60px;border-bottom:1px solid #ffffff20;font:15px system-ui}.mb-story-audience-person img{width:38px;height:38px;border-radius:50%;object-fit:cover}.mb-story-person-like{margin-left:auto;color:#ff416b;font-size:24px}
.mb-story-photo-tool[hidden],.mb-story-audience[hidden]{display:none!important}

.mb-story-avatar-fallback{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:50%;background:#6f4b2d;color:#fff;font:600 17px system-ui}

/* Publication shared to a story (as in Instagram): the photo blurred behind a wide card with author, photo and caption. */
.mb-story-canvas:has(.mb-story-post-card),.mb-story-editor-stage:has(.mb-story-post-card){background:#3a2a1f}
.mb-story-post-backdrop{position:absolute!important;inset:-8%!important;width:116%!important;height:116%!important;max-height:none!important;aspect-ratio:auto!important;object-fit:cover!important;filter:blur(28px) saturate(1.1) brightness(.75);z-index:0;pointer-events:none}
.mb-story-canvas:has(.mb-story-post-card)>.mb-story-layers,.mb-story-editor-stage:has(.mb-story-post-card)>.mb-story-layers{z-index:3}
.mb-story-shared-card.mb-story-post-card{inset:11% 6% auto;padding:0;background:transparent;box-shadow:none;z-index:2;gap:12px;max-height:84%}
.mb-story-post-frame{width:100%;border-radius:14px;overflow:hidden;background:#fff;color:#1d1814;box-shadow:0 10px 30px #0006}
.mb-story-post-head{display:flex;align-items:center;gap:10px;padding:10px 12px}
.mb-story-post-head img{width:30px!important;height:30px!important;border-radius:50%;object-fit:cover;flex:none;position:static!important;aspect-ratio:1!important}
.mb-story-post-head strong{font:700 14px/1.2 system-ui,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mb-story-viewer .mb-story-post-frame>.mb-story-post-photo,.mb-story-composer .mb-story-post-frame>.mb-story-post-photo,.mb-story-post-photo{position:static!important;inset:auto!important;display:block!important;width:100%!important;height:auto!important;max-height:max(80px,calc(149cqw - 180px))!important;aspect-ratio:4/5!important;object-fit:cover!important;background:#ddd!important}
.mb-story-post-caption{margin:0!important;padding:10px 12px 0!important;border-bottom:12px solid #fff!important;font:400 13px/1.35 system-ui,sans-serif!important;color:#1d1814!important;text-align:left!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mb-story-post-caption strong{font-weight:700;margin-right:4px}
.mb-story-post-caption{line-height:18px!important;height:auto;max-height:58px!important;box-sizing:border-box}
.mb-story-post-gone{margin:0;padding:48px 16px;text-align:center;font:600 15px/1.4 system-ui,sans-serif;color:#5d5047}
.mb-story-post-open{pointer-events:auto;min-height:40px;padding:0 18px;border:0;border-radius:999px;background:#fffdfa;color:#2c211a;font:600 14px system-ui,sans-serif;box-shadow:0 4px 14px #0005;cursor:pointer}

/* ===== 01/12/2026 · Historias más cercanas a Instagram (visor, fila y editor a pantalla completa) ===== */
/* Fila: un solo círculo propio con «+», anillo en degradado para lo no visto. */
.mb-story-own{position:relative;flex:none;display:flex}
html body .mb-stories .mb-story-add-badge{position:absolute;left:44px;top:42px;width:24px;min-width:24px;height:24px;padding:0;border-radius:50%;background:var(--mb-accent,#a95d19);color:#fff;border:2px solid var(--mb-paper,#faf7f2);font:600 18px/1 system-ui;display:grid;place-items:center;gap:0}
html body .mb-stories .mb-story-unseen img{border:3.5px solid transparent;padding:2px;background:linear-gradient(var(--mb-paper,#faf7f2),var(--mb-paper,#faf7f2)) padding-box,linear-gradient(45deg,#ffb000,#ff3b30 50%,#c81d77) border-box}
.mb-story-own-person img{border-color:var(--mb-line,#c3b8ab)}
/* Visor: cabecera con avatar y tiempo relativo; menú ⋯; interfaz oculta al mantener pulsado. */
.mb-story-viewer .mb-story-frame header{gap:8px}
.mb-story-head-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:none;border:1px solid #ffffff55}.mb-story-head-avatar[hidden]{display:none}
.mb-story-viewer .mb-story-frame header strong{flex:0 1 auto!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mb-story-ago{flex:1;font:13px system-ui;color:#ffffffbb;white-space:nowrap}
.mb-story-viewer .mb-story-frame header button{min-width:40px!important;font-size:22px!important}
.mb-story-menu{position:absolute;z-index:8;top:calc(66px + env(safe-area-inset-top,0px));right:10px;min-width:230px;display:flex;flex-direction:column;gap:2px;padding:8px;border-radius:14px;background:#1d1814f2;box-shadow:0 8px 30px #0008}
.mb-story-menu button{background:transparent!important;border:0!important;color:#fff!important;text-align:left;font:500 15px system-ui;padding:12px 10px;min-height:44px;border-radius:9px;cursor:pointer}.mb-story-menu button:hover{background:#ffffff14!important}
.mb-story-viewer .mb-story-menu .mb-story-time{position:static!important;margin:6px 10px 2px!important;padding:0!important;font:12px system-ui;color:#ffffffaa;text-shadow:none}
.mb-story-viewer .mb-story-frame>.mb-story-menu[hidden]{display:none!important}
.mb-story-viewer :is(header,footer,.mb-story-progress){transition:opacity .15s}
.mb-story-viewer.mb-story-holding :is(header,footer,.mb-story-progress,.mb-story-menu){opacity:0;pointer-events:none}
.mb-story-viewer .mb-story-frame footer{justify-content:flex-end}
.mb-story-viewer [data-story-prev]{margin-right:auto}
@media (hover:none),(max-width:767px){.mb-story-viewer :is([data-story-prev],[data-story-next]){display:none!important}}
/* Foto con fondo difuminado de sí misma en lugar de bandas negras; encuadre opcional. */
.mb-story-canvas>.mb-story-backdrop,.mb-story-editor-stage>.mb-story-backdrop{position:absolute!important;inset:-10%!important;width:120%!important;height:120%!important;max-height:none!important;aspect-ratio:auto!important;object-fit:cover!important;filter:blur(26px) saturate(1.1) brightness(.72);z-index:0;pointer-events:none}
.mb-story-canvas>.mb-story-backdrop[hidden],.mb-story-editor-stage>.mb-story-backdrop[hidden]{display:none!important}
.mb-story-viewer .mb-story-canvas>.mb-story-photo{z-index:1;background:transparent!important;transform-origin:center}
html body .mb-story-editor-stage>.mb-story-preview{z-index:1;background:transparent!important;transform-origin:center}
.mb-story-canvas>.mb-story-layers,.mb-story-editor-stage>.mb-story-layers{z-index:2}
/* Tipografías propias del sistema (sin fuentes externas). */
html body .mb-story-layer.mb-font-serif{font-family:Georgia,'Times New Roman',serif!important;font-weight:700!important}
html body .mb-story-layer.mb-font-hand{font-family:'Bradley Hand','Segoe Print','Snell Roundhand','Comic Sans MS',cursive!important;font-weight:700!important}
html body .mb-story-layer.mb-font-bold{font-family:'Arial Black','Helvetica Neue',Impact,system-ui,sans-serif!important;font-weight:900!important;letter-spacing:-.01em!important}
/* Editor a pantalla completa: el lienzo ocupa la pantalla y las herramientas flotan encima. */
html body .mb-story-composer[open]{background:#0d0b09;color:#fff;color-scheme:dark;width:min(100vw,600px)}
html body .mb-story-composer>form{position:relative;display:block}
html body .mb-story-composer .mb-story-editor-space{position:absolute;inset:0;background:#000;display:flex;align-items:center;justify-content:center}
html body .mb-story-composer .mb-story-editor-stage{background:#151515}
html body .mb-story-composer>form>header{position:absolute;z-index:6;inset:0 0 auto;display:flex;align-items:center;gap:8px;padding:calc(6px + env(safe-area-inset-top,0px)) 10px 18px;background:linear-gradient(#000a,transparent);min-height:0}
html body .mb-story-composer>form>header h2{flex:1;font:600 15px system-ui!important;color:#fff;margin:0;text-align:center}
html body .mb-story-composer>form>header button{min-width:44px;min-height:44px;border:0;background:#0006;color:#fff;border-radius:22px;font:600 13px system-ui;padding:0 12px;cursor:pointer}
html body .mb-story-composer>form>header [data-compose-close]{font-size:26px;padding:0}
html body .mb-story-composer .mb-story-photo-tool{position:absolute;z-index:6;top:calc(60px + env(safe-area-inset-top,0px));left:10px;right:10px;justify-content:flex-start;padding:0;gap:8px;flex-wrap:wrap}
html body .mb-story-composer .mb-story-photo-tool :is(label,button){margin:0;border:1px solid #ffffff44;border-radius:20px;padding:9px 13px;background:#0007;color:#fff;font:600 13px system-ui!important;cursor:pointer;min-height:38px;box-sizing:border-box;display:inline-flex;align-items:center}
.mb-story-photo-tool input[name=camera]{position:absolute;width:1px;height:1px;padding:0;opacity:0;overflow:hidden}
.mb-story-backgrounds{position:absolute;z-index:6;top:calc(108px + env(safe-area-inset-top,0px));left:10px;display:flex;gap:10px}
html body .mb-story-composer .mb-story-bg-choice{width:30px;height:30px;min-height:0;border-radius:50%;border:2px solid #fff;padding:0;cursor:pointer}.mb-story-bg-choice[aria-pressed=true]{outline:3px solid #fff;outline-offset:2px}
.mb-story-draft{position:absolute;z-index:7;top:calc(150px + env(safe-area-inset-top,0px));left:10px;right:10px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;border-radius:14px;background:#1d1814f2;font:13px system-ui}
.mb-story-draft span{flex:1}html body .mb-story-composer .mb-story-draft button{border:1px solid #ffffff44;border-radius:18px;background:transparent;color:#fff;padding:7px 12px;font:600 13px system-ui;cursor:pointer}
.mb-story-thumbs{position:absolute;z-index:6;left:10px;right:10px;bottom:calc(138px + env(safe-area-inset-bottom,0px));display:flex;gap:6px;align-items:center;overflow-x:auto}
html body .mb-story-composer .mb-story-thumb{flex:none;width:40px;height:70px;padding:0;border:2px solid #ffffff55;border-radius:8px;overflow:hidden;background:#000;cursor:pointer}.mb-story-thumb[aria-pressed=true]{border-color:#fff!important}.mb-story-thumb img{width:100%;height:100%;object-fit:cover;display:block}
html body .mb-story-composer .mb-story-thumb-remove{flex:none;border:1px solid #ffffff44;border-radius:16px;background:#0007;color:#fff;padding:6px 10px;font:600 12px system-ui;cursor:pointer}
html body .mb-story-composer .mb-story-editor-controls{position:absolute;z-index:6;left:0;right:0;bottom:calc(62px + env(safe-area-inset-bottom,0px));max-height:52dvh;padding:0 10px;overflow:auto;display:flex;flex-direction:column-reverse;gap:6px;background:transparent}
html body .mb-story-composer .mb-layer-tools{justify-content:flex-start;gap:6px;flex-wrap:wrap}
html body .mb-story-composer .mb-layer-tools button,html body .mb-story-composer [data-finish-layer]{background:#0008;color:#fff;border-color:#ffffff44}
html body .mb-story-composer .mb-layer-tools button:disabled{opacity:.35}
html body .mb-story-composer :is(.mb-sticker-picker,.mb-layer-settings){background:#1d1814f0;border-radius:16px;padding:10px;max-height:40dvh;overflow:auto}
html body .mb-story-composer .mb-sticker-choice{background:#2c241e}
.mb-sticker-tabs{grid-column:1/-1;display:flex;align-items:center;gap:6px;overflow-x:auto;min-height:40px;padding-bottom:4px;scrollbar-width:none}.mb-sticker-choice[hidden]{display:none}
html body .mb-story-composer .mb-sticker-tabs button{flex:none;border:1px solid #ffffff33;border-radius:16px;background:#2c241e;color:#f1e7dc;padding:6px 12px;font:600 13px/1.2 system-ui;height:auto;min-height:32px;white-space:nowrap;cursor:pointer}
html body .mb-story-composer .mb-sticker-tabs button[aria-selected=true]{background:#fff;color:#1d1814}
html body .mb-story-composer .mb-layer-settings label{color:#f1e7dc}
html body .mb-story-composer .mb-layer-settings textarea{background:#2c241e;color:#fff;border-color:#ffffff33;font-size:18px}
html body .mb-story-composer .mb-layer-options select{background:#2c241e;color:#fff;border-color:#ffffff33}
.mb-layer-colors{flex-wrap:wrap;gap:10px}
.mb-layer-fonts{display:flex;gap:6px;flex-wrap:wrap;padding:8px 0 0}
html body .mb-story-composer .mb-layer-fonts button{border:1px solid #ffffff44;border-radius:16px;background:transparent;color:#fff;padding:6px 11px;font-size:14px;cursor:pointer;min-height:34px}
.mb-layer-fonts button[aria-pressed=true]{background:#fff!important;color:#1d1814!important}
.mb-layer-fonts .mb-font-serif{font-family:Georgia,serif;font-weight:700}.mb-layer-fonts .mb-font-hand{font-family:'Bradley Hand','Segoe Print','Comic Sans MS',cursive;font-weight:700}.mb-layer-fonts .mb-font-bold{font-family:'Arial Black',Impact,system-ui;font-weight:900}
html body .mb-story-composer .mb-layer-hint,html body .mb-story-composer .mb-layer-help{color:#ffffffaa}
@media(max-height:760px){html body .mb-story-composer .mb-layer-help{display:none}}
html body .mb-story-composer>form>footer{position:absolute;z-index:7;left:0;right:0;bottom:0;padding:6px 10px max(10px,env(safe-area-inset-bottom,0px));background:linear-gradient(transparent,#000c)}
html body .mb-story-composer>form>footer p{color:#fff;margin:0 2px 6px;font:12px/1.4 system-ui}
html body .mb-story-composer>form>footer button[type=submit]{border-radius:24px}
.mb-story-obrador{position:absolute;z-index:8;left:0;right:0;bottom:0;max-height:62dvh;overflow:auto;padding:14px 14px max(16px,env(safe-area-inset-bottom,0px));border-radius:20px 20px 0 0;background:#1d1814;box-shadow:0 -10px 30px #0008}
html body .mb-story-composer .mb-story-obrador header{position:static;display:flex;align-items:center;padding:0;background:none}
.mb-story-obrador header strong{flex:1;font:600 17px system-ui}
html body .mb-story-composer .mb-story-obrador header button{border:0;background:transparent;color:#fff;font-size:26px;min-width:44px;min-height:44px}
.mb-story-obrador p{font:13px/1.4 system-ui;color:#e9dccf}
.mb-story-obrador-list{display:flex;flex-direction:column;gap:8px}
html body .mb-story-composer .mb-story-obrador-item{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;border:1px solid #ffffff22;border-radius:12px;background:#2c241e;color:#fff;padding:11px 12px;cursor:pointer}
.mb-story-obrador-item strong{font:600 14px system-ui}.mb-story-obrador-item span{font:13px system-ui;color:#e9dccf}
