/* Measurements from IMG_6937: 592 x 1280; all coordinates belong to the Pro surface. */
@property --pro-menu-opacity { syntax:'<number>'; inherits:false; initial-value:1; }
:root {
  /* Настройки Pro: время в ms или s; 0ms отключает анимацию. */
  --formula-pro-nav-height:55px; /* Высота меню в просмотре, без safe-area. */
  --formula-pro-nav-duration:200ms; /* Превращение округлого меню в полосу и обратно. */
  --formula-pro-nav-easing-power:50; /* 1 — линейно; больше — мягче завершение. */
  --formula-pro-nav-icon-size:24px; /* Боковые иконки меню. */
  --formula-pro-nav-center-icon-size:18px; /* Иконка «Создать / Повторить». */
  --formula-pro-nav-center-width:112px; /* Ширина центральной кнопки. */
  --formula-pro-nav-padding:5px 14px; /* Общий padding меню: сверху/снизу и по бокам. */
  --formula-pro-drawer-open-duration:200ms; /* Комментарии, описание и повтор. */
  --formula-pro-drawer-close-duration:200ms; /* Закрытие панели. */
  --formula-pro-drawer-easing-power:3;
  --formula-pro-drawer-drag-min-duration:140ms;
  --formula-pro-drawer-drag-max-duration:320ms;
  --formula-pro-seek-preview-width:90px;
  --formula-pro-seek-preview-bottom:52px;
  --formula-pro-playback-show-duration:250ms; /* Появление play/pause. */
  --formula-pro-playback-hide-duration:100ms; /* Исчезновение play/pause. */
  --formula-pro-playback-show-easing:cubic-bezier(.34,1.56,.64,1);
  --formula-pro-playback-hide-easing:cubic-bezier(.25,.46,.45,.94);
  --formula-pro-loader-delay:500ms; /* Показывать индикатор только при долгой загрузке. */
}
html:has(.formula-media-pro-viewer.formula-media-reels-sheet):not(:has([data-home-discovery])) { scrollbar-gutter:auto!important; }
main.formula-pro-background-paused *,main.formula-pro-background-paused ::before,main.formula-pro-background-paused ::after { animation-play-state:paused!important; }
.formula-media-pro-viewer .formula-media-reel:not(.is-active) .formula-media-loader__spinner { animation-play-state:paused; }
.formula-media-pro-viewer .formula-media-reel__media .formula-media-loader > .formula-media-loader__spinner { opacity:0; visibility:hidden; animation:none; transition:none; }
.formula-media-pro-viewer .formula-media-reel.is-active .formula-media-reel__media > .formula-media-loader.is-loading > .formula-media-loader__spinner,
.formula-media-pro-viewer .formula-media-reel.is-active .formula-media-reel__album-slide[aria-hidden=false] > .formula-media-loader.is-loading > .formula-media-loader__spinner { animation:formula-media-spin 1s linear var(--formula-pro-loader-delay) infinite,formula-pro-loader-reveal 0s linear var(--formula-pro-loader-delay) forwards; }
.formula-media-pro-viewer .formula-media-reel__media .formula-media-loader.is-loaded > .formula-media-loader__image { transition:none; }
@keyframes formula-pro-loader-reveal { from,to { opacity:1; visibility:visible; } }
.formula-media-pro-viewer.formula-media-reels-sheet { background:#000; }
.formula-media-pro-viewer.formula-media-reels-sheet .sheet { background:#000; }
.formula-media-pro-viewer.formula-media-reels-sheet[data-mode] .sheet { transform:none!important; opacity:1!important; }
.formula-media-pro-viewer .formula-pro-reels {
  --pro-nav-safe-bottom:env(safe-area-inset-bottom,0px);
  --pro-unit:1px; --pro-footer-height:calc(var(--formula-pro-nav-height) + var(--pro-nav-safe-bottom)); --pro-chrome-opacity:1;
  --pro-media-width:100%; --pro-media-height:calc(100% - var(--pro-footer-height)); --pro-media-top:0px; --pro-media-radius:0px;
  position:relative; 
  /* width:min(100%,calc(100dvh * .4625));  */
    width: 100%; 
  
  height:100%; margin:0 auto; overflow:hidden; background:#000; color:#fff; font-family:Arial,Helvetica,sans-serif; color-scheme:dark; isolation:isolate;
}
.formula-media-pro-viewer .formula-pro-reels [hidden] { display:none!important; }
.formula-media-pro-viewer .formula-pro-reels button { -webkit-tap-highlight-color:transparent; }
.formula-media-pro-viewer .formula-pro-reels button:focus-visible,.formula-media-pro-viewer .formula-pro-reels a:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.formula-media-pro-viewer .formula-pro-reels svg { display:block; width:100%; height:100%; }
.formula-media-pro-viewer .formula-pro-reels__chrome { position:absolute; inset:0; z-index:5; pointer-events:none; transition:none!important; }
.formula-media-pro-viewer .formula-pro-reels__chrome :is(button,a,[role=slider]) { pointer-events:auto; }
.formula-media-pro-viewer .formula-media-reels__viewport { position:absolute; inset:0 0 var(--pro-footer-height); width:100%; height:auto; }
.formula-media-pro-viewer .formula-media-reel { background:#000; }
.formula-media-pro-viewer .formula-media-reel__media {
  inset:auto; left:50%; top:var(--pro-media-top); width:var(--pro-media-width); height:var(--pro-media-height); transform:translateX(-50%); border-radius:var(--pro-media-radius); background:#000; overflow:hidden; transition:none!important; contain:layout paint;
}
.formula-media-pro-viewer .formula-media-reel__media .formula-media-loader { background:#000; border-radius:inherit; }
.formula-media-pro-viewer .formula-media-reel__media .formula-media-loader__image { object-fit:cover; }
.formula-media-pro-viewer .formula-media-reel__shade { --formula-reel-top-shade:#0003; opacity:var(--pro-chrome-opacity); }
.formula-media-pro-viewer .formula-media-reel__caption {
  left:calc(16 * var(--pro-unit)); right:calc(72 * var(--pro-unit)); bottom:calc(18 * var(--pro-unit)); width:auto; max-height:none; gap:calc(10 * var(--pro-unit)); overflow:visible; opacity:var(--pro-chrome-opacity); text-shadow:0 1px 5px #0005;
}
.formula-media-pro-viewer .formula-pro-reels__creator { --creator-gap:calc(9 * var(--pro-unit)); --creator-avatar-size:calc(34 * var(--pro-unit)); --creator-initials-size:calc(11 * var(--pro-unit)); }
.formula-media-pro-viewer .formula-pro-reels__name { max-width:calc(50% + var(--creator-avatar-size) + var(--creator-gap)); font-size:calc(12 * var(--pro-unit)); }
.formula-media-pro-viewer .formula-pro-reels__follow { flex-shrink:0; height:calc(20 * var(--pro-unit)); min-height:0; padding:0 calc(7 * var(--pro-unit)); border:1px solid #ffffff6b; border-radius:calc(5 * var(--pro-unit)); background:none; color:#fff; font-size:calc(10 * var(--pro-unit)); font-weight:500; line-height:1; cursor:pointer; }
.formula-media-pro-viewer .formula-pro-reels__description { display:block; width:100%; padding:0; border:0; background:none; color:#fff; font:inherit; font-size:calc(12 * var(--pro-unit)); font-weight:400; line-height:1.4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-align:left; text-shadow:inherit; pointer-events:auto; }
.formula-media-pro-viewer .formula-pro-reels__actions { position:absolute; z-index:5; right:calc(1 * var(--pro-unit)); bottom:calc(17 * var(--pro-unit)); display:grid; grid-template-columns:minmax(0,1fr); justify-items:center; width:calc(46 * var(--pro-unit)); opacity:var(--pro-chrome-opacity); text-shadow:0 1px 4px #0004; }
.formula-media-pro-viewer .formula-pro-reels__actions > button { display:flex; flex-direction:column; align-items:center; flex-shrink:0; width:calc(46 * var(--pro-unit)); height:auto; padding:0; border:0; border-radius:0; background:none; color:#fff; cursor:pointer; }
.formula-media-pro-viewer .formula-pro-reels__actions > button > svg,.formula-media-pro-viewer .formula-pro-reels__actions .formula-media-heart { flex:0 0 24px; width:24px; height:24px; }
.formula-media-pro-viewer .is-personal-history .formula-media-reel__media .formula-media-loader__image { object-fit:contain; }
.formula-media-pro-viewer .is-personal-history .formula-pro-reels__actions { gap:12px; }
.formula-media-pro-viewer .is-personal-history .formula-pro-reels__actions > :is(button,a) { display:grid; place-items:center; width:44px; height:40px; min-height:0; padding:0; border:0; background:none; color:inherit; }
.formula-media-pro-viewer .is-personal-history .formula-pro-reels__actions > .is-active { color:#ff3040; }
.formula-media-pro-viewer .is-personal-history .formula-pro-reels__actions > .formula-pro-generation__sound { height:44px; border-radius:50%; }
.formula-media-pro-viewer .formula-pro-generation__sound > svg { width:26px; height:26px; padding:6px; border-radius:50%; background:#25262bd9; }
.formula-media-pro-viewer .formula-pro-generation__sound:focus-visible { box-shadow:0 0 0 2px currentColor; }
.formula-media-pro-viewer .formula-media-reel:not(.is-active) .formula-pro-generation__sound { visibility:hidden; }
.formula-media-pro-viewer .is-discovery-example [data-pro-repeat-button] { visibility:hidden; }
.formula-media-pro-viewer .formula-pro-reels__actions > .formula-pro-example__download { display:grid; place-items:center; width:44px; height:44px; color:inherit; }
.formula-pro-example__download svg { width:24px; height:24px; }
.formula-media-pro-viewer .is-personal-history .formula-pro-generation__download > svg { width:24px; height:24px; }
.formula-media-pro-viewer .is-personal-history .formula-media-reel__references { left:calc(16 * var(--pro-unit)); right:auto; bottom:calc(105 * var(--pro-unit)); display:flex; align-items:center; }
.formula-media-pro-viewer .is-personal-history .formula-media-reel__references:empty { display:none; }
.formula-media-pro-viewer .is-personal-history[data-paused=false]:not(.has-drawer) .formula-media-reel__sound { display:grid; }
.formula-media-pro-viewer .formula-pro-generation__description { justify-self:start; min-width:0; max-width:100%; padding:0; border:0; background:none; font:inherit; text-align:left; text-shadow:inherit; cursor:pointer; }
.formula-media-pro-viewer .is-personal-history .formula-pro-generation { padding-top:12px; }
.formula-media-pro-viewer .formula-pro-generation .formula-media-repeat-form__description { white-space:pre-wrap; overflow-wrap:anywhere; user-select:text; -webkit-user-select:text; }
.formula-media-pro-viewer .formula-pro-reels__actions .is-liked { color:#ff3040; }
.formula-media-pro-viewer .formula-pro-reels__metric { margin-top:calc(8 * var(--pro-unit)); color:#fff; font-size:calc(10 * var(--pro-unit)); line-height:1.2; font-weight:500; }
.formula-media-pro-viewer .formula-pro-reels__actions > .formula-pro-reels__audio { --pro-audio-size:calc(29 * var(--pro-unit)); --pro-audio-radius:calc(6 * var(--pro-unit)); }
.formula-media-pro-viewer .formula-pro-reels__actions > .formula-pro-reels__audio > :is(img,svg) {
  box-sizing:border-box; flex:0 0 var(--pro-audio-size); width:var(--pro-audio-size); height:var(--pro-audio-size);
   border-radius:var(--pro-audio-radius);   object-fit:cover;
}
@media (width < 1024px) {
  @supports (height:round(up, 1.5px, 1px)) {
    /* Match the integer reel height while keeping the bottom edge flush with the menu. */
    .formula-media-pro-viewer .formula-media-reels__viewport { top:auto; height:round(up, calc(100% - var(--pro-footer-height)), 1px); }
  }
  .formula-media-pro-viewer .formula-pro-reels:not(.is-personal-history) .formula-pro-reels__actions > button { padding-block:8px; }
  .formula-media-pro-viewer .formula-pro-reels__metric:empty { display:none; }
}
.formula-media-pro-viewer .formula-media-reel__play { display:none; }
.formula-media-pro-viewer .formula-media-reel__pause-overlay { top:calc(var(--pro-media-top) + var(--pro-media-height) / 2); left:50%; width:calc(56 * var(--pro-unit)); height:calc(56 * var(--pro-unit)); padding:calc(17 * var(--pro-unit));     background: #3434348f;backdrop-filter: blur(5px);border-radius:50%; }
.formula-media-pro-viewer .formula-media-reel__pause-overlay svg { fill:currentColor; }
/* Instagram Reels playback feedback, inspected 2026-11-17. The existing
   overlay stays painted through the exit even after the player sets hidden. */
.formula-media-pro-viewer .formula-pro-reels .formula-media-reel__pause-overlay[data-pro-playback] { display:block!important; opacity:0; transform:translate(-50%,-50%) scale(0); transition:none!important; }
.formula-media-pro-viewer .formula-pro-reels .formula-media-reel__pause-overlay[data-pro-playback=paused] { opacity:1; transform:translate(-50%,-50%) scale(1); animation:formula-pro-playback-show var(--formula-pro-playback-show-duration) var(--formula-pro-playback-show-easing) both; }
.formula-media-pro-viewer .formula-pro-reels .formula-media-reel__pause-overlay[data-pro-playback=playing] { animation:formula-pro-playback-hide var(--formula-pro-playback-hide-duration) var(--formula-pro-playback-hide-easing) both; }
@keyframes formula-pro-playback-show {
  0% { opacity:var(--pro-playback-from-opacity,0); transform:translate(-50%,-50%) scale(var(--pro-playback-from-scale,0)); }
  50% { opacity:1; transform:translate(-50%,-50%) scale(1.08); }
  75% { opacity:1; transform:translate(-50%,-50%) scale(.98); }
  100% { opacity:1; transform:translate(-50%,-50%) scale(1); }
}
@keyframes formula-pro-playback-hide {
  0%,40% { opacity:var(--pro-playback-from-opacity,1); transform:translate(-50%,-50%) scale(var(--pro-playback-from-scale,1)); }
  20% { opacity:var(--pro-playback-from-opacity,1); transform:translate(-50%,-50%) scale(var(--pro-playback-bump-scale,1.05)); }
  100% { opacity:0; transform:translate(-50%,-50%) scale(0); }
}
@media(prefers-reduced-motion:reduce) { .formula-media-pro-viewer .formula-pro-reels .formula-media-reel__pause-overlay[data-pro-playback] { animation:none; } }
.formula-media-pro-viewer .formula-media-reel__sound { top:calc(var(--pro-media-top) + var(--pro-media-height) - 38px); left:calc(50% + var(--pro-media-width) / 2 - 38px); right:auto; width:26px; height:26px; padding:6px; transform:none; border:0; background:#25262bd9; transition:none!important; }
.formula-media-pro-viewer .formula-pro-reels[data-paused=false]:not(.has-drawer) .formula-media-reel__sound { display:none; }
.formula-media-pro-viewer .formula-pro-reels.has-drawer .formula-media-reel__sound { display:grid; }
.formula-media-pro-viewer .formula-media-reels__controls { right:calc(-60 * var(--pro-unit)); }
.formula-media-pro-viewer .formula-media-reels__notice { top:max(100px,calc(94 * var(--pro-unit))); font-size:12px; }
.formula-media-pro-viewer .formula-media-reel__progress { left:0; bottom:0; width:100%; height:calc(12 * var(--pro-unit)); opacity:var(--pro-chrome-opacity); z-index:6; }
.formula-media-pro-viewer .formula-media-reel__progress::before { height:2px; background:#ffffff50; bottom:0; }
.formula-media-pro-viewer .formula-media-reel__progress > span:first-child { height:2px; align-self:flex-end; background:#ffffffb3; }
.formula-media-pro-viewer .formula-media-reel.is-seeking .formula-media-reel__progress { height:32px; }
.formula-media-pro-viewer .formula-pro-scrub-knob { display:none; position:absolute; z-index:11; left:clamp(3.5px,var(--pro-progress,0%),calc(100% - 3.5px)); bottom:calc(var(--pro-footer-height) - 2px); width:7px; height:7px; transform:translateX(-50%); border-radius:50%; background:#fff; pointer-events:none; }
.formula-media-pro-viewer .formula-pro-reels.is-seeking .formula-pro-scrub-knob { display:block; }
.formula-media-pro-viewer .formula-pro-seek { position:absolute; z-index:10; bottom:var(--formula-pro-seek-preview-bottom); width:var(--formula-pro-seek-preview-width); display:grid; justify-items:center; gap:12px; transform:translateX(-50%); pointer-events:none; }
.formula-media-pro-viewer .formula-pro-seek__frame { position:relative; width:100%; overflow:hidden; border:1px solid #ffffff40; border-radius:13px; background:#16171a; box-shadow:0 3px 12px #0003; }
.formula-media-pro-viewer .formula-pro-seek__video { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; opacity:0; }
.formula-media-pro-viewer .formula-pro-seek[data-ready=true] .formula-pro-seek__video { opacity:1; }
.formula-media-pro-viewer .formula-pro-seek__time { display:block; width:max-content; color:#fff; font-size:14px; font-weight:500; line-height:1.25; font-variant-numeric:tabular-nums; white-space:nowrap; text-shadow:0 1px 4px #0008; }
.formula-media-pro-viewer .formula-pro-seek__error { position:absolute; inset:0; display:grid; place-items:center; padding:8px; color:#c8c9cc; font-size:10px; line-height:1.3; text-align:center; }
.formula-media-pro-viewer .formula-pro-reels.is-seeking :is(.formula-pro-reels__top,.formula-pro-reels__actions,.formula-media-reel__caption,.formula-media-reel__shade,.formula-media-reel__references,.formula-media-reel__pause-overlay,.formula-media-reel__sound,.formula-media-reel__play,.formula-media-reel__album-counter,.formula-media-reel__album-prev,.formula-media-reel__album-next,.formula-media-reels__controls,.formula-media-reels__notice,.formula-pro-reels__heart,.formula-pro-reels__toast) { opacity:0!important; visibility:hidden; pointer-events:none; transition:none!important; }
.formula-media-pro-viewer:has(.formula-pro-reels.is-seeking) .sheet__close-icon { opacity:0; visibility:hidden; pointer-events:none; transition:none!important; }
.formula-media-pro-viewer .formula-media-reel__album-counter { top:calc(80 * var(--pro-unit)); font-size:12px; opacity:var(--pro-chrome-opacity); }
.formula-media-pro-viewer .formula-media-reel__album-prev,.formula-media-pro-viewer .formula-media-reel__album-next { opacity:var(--pro-chrome-opacity); background:#14141430; }
.formula-media-pro-viewer .formula-media-reel__album-prev { left:6px; }
.formula-media-pro-viewer .formula-media-reel__album-next { right:6px; }
.formula-media-pro-viewer .formula-media-reel__references { right:calc(52 * var(--pro-unit)); bottom:calc(105 * var(--pro-unit)); opacity:var(--pro-chrome-opacity); }
.formula-media-pro-viewer .formula-media-reel__references a { width:44px; height:44px; }
.formula-media-pro-viewer .formula-pro-reels__top { position:absolute; z-index:8; top:calc(49 * var(--pro-unit)); left:0; right:0; display:flex; align-items:center; justify-content:center; height:calc(40 * var(--pro-unit)); padding:0 calc(12 * var(--pro-unit)); opacity:var(--pro-chrome-opacity); text-shadow:0 1px 4px #0004; pointer-events:none; }
.formula-media-pro-viewer .formula-pro-reels.has-stepped .formula-pro-reels__top { display:none; }
.formula-media-pro-viewer .formula-pro-reels__tabs { display:flex; align-items:center; gap:calc(14 * var(--pro-unit)); font-size:calc(20 * var(--pro-unit)); font-weight:650; }
.formula-media-pro-viewer .formula-pro-reels__tabs button { min-height:44px; padding:0 6px; border:0; background:none; color:#fffc; font:inherit; text-shadow:0 1px 6px #000; cursor:pointer; pointer-events:auto; }
.formula-media-pro-viewer .formula-pro-reels__tabs button[aria-pressed=true] { color:#fff; text-decoration:underline; text-underline-offset:.35em; }
.formula-media-reels__message { margin:0; padding:8px 14px; border-radius:16px; background:#101114ee; }
/* The permanent menu moves into this dialog, then returns to its shell marker. */
.formula-cabinet-navigation[data-pro-reels-nav] { display:block; position:fixed; inset:0; height:auto; z-index:var(--pro-menu-z,8); pointer-events:none; opacity:var(--pro-menu-opacity,1)!important; }
.formula-pro-reels > .formula-cabinet-navigation[data-pro-reels-nav] { position:absolute; }
.formula-cabinet-navigation[data-pro-reels-nav] .formula-liquid-nav {
  --formula-liquid-nav-item-height:100%;
  --formula-liquid-nav-icon-size:var(--formula-pro-nav-center-icon-size); --formula-liquid-nav-compact-icon-size:var(--formula-pro-nav-icon-size);
  --formula-liquid-nav-anchor-width:var(--formula-pro-nav-center-width);
  --formula-liquid-nav-font-size:12px; --formula-liquid-nav-item-padding:10px; --formula-liquid-nav-content-gap:5px; --formula-liquid-nav-gap:3px;
  position:absolute; left:0; top:auto; right:auto; bottom:var(--pro-nav-safe-bottom); transform:none;
  width:100%!important; min-width:0; max-width:none; height:var(--formula-pro-nav-height);
  padding:var(--formula-pro-nav-padding); border-radius:var(--pro-menu-radius); background:rgb(12 13 15 / var(--pro-menu-fill));
  box-shadow:none; pointer-events:auto; transition:none!important;
}
/* JS owns only the moving frames; settled sizes read the public CSS variables directly. */
.formula-cabinet-navigation[data-pro-reels-nav][data-pro-nav-morphing] .formula-liquid-nav {
  --formula-liquid-nav-item-height:calc(var(--pro-menu-height) - var(--pro-menu-padding-top) - var(--pro-menu-padding-bottom));
  --formula-liquid-nav-icon-size:var(--pro-menu-center-icon-size); --formula-liquid-nav-compact-icon-size:var(--pro-menu-icon-size);
  --formula-liquid-nav-anchor-width:var(--pro-menu-center-width);
  left:var(--pro-menu-left); top:var(--pro-menu-top); bottom:auto;
  width:var(--pro-menu-width)!important; height:var(--pro-menu-height);
  padding:var(--pro-menu-padding-top) var(--pro-menu-padding-right) var(--pro-menu-padding-bottom) var(--pro-menu-padding-left);
}
.formula-cabinet-navigation[data-pro-reels-nav] :is(.formula-liquid-nav__items,.formula-liquid-nav__side) { height:100%; min-height:0; }
.formula-cabinet-navigation[data-pro-reels-nav] .formula-liquid-nav::after { border-radius:inherit; }
.formula-cabinet-navigation[data-pro-reels-nav] .formula-liquid-nav__link { height:var(--formula-liquid-nav-item-height); transition:none!important; }
.formula-cabinet-navigation[data-pro-reels-nav] .formula-liquid-nav__side .formula-liquid-nav__label { display:none; }
.formula-cabinet-navigation[data-pro-reels-nav] .formula-liquid-nav__content { padding-inline:10px; }
.formula-cabinet-navigation[data-pro-reels-nav] .formula-liquid-nav .formula-liquid-nav__icon { width:var(--formula-liquid-nav-icon-size); height:var(--formula-liquid-nav-icon-size); transition:none; }
.formula-cabinet-navigation[data-pro-reels-nav] .formula-liquid-nav::before { box-shadow:none; }
.formula-cabinet-navigation[data-pro-reels-nav] [data-pro-repeat-button] { display:grid; place-items:center; width:var(--formula-liquid-nav-anchor-width)!important; }
.formula-cabinet-navigation[data-pro-reels-nav] [data-pro-repeat-button] .cult-button-label { display:grid; place-items:center; }
.formula-cabinet-navigation[data-pro-reels-nav] .formula-pro-nav-create,.formula-cabinet-navigation[data-pro-reels-nav] .formula-pro-nav-repeat { grid-area:1 / 1; transition:none; }
.formula-cabinet-navigation[data-pro-reels-nav] .formula-pro-nav-create { opacity:calc(1 - var(--pro-menu-repeat)); transform:translateY(calc(-4px * var(--pro-menu-repeat))); }
.formula-cabinet-navigation[data-pro-reels-nav] .formula-pro-nav-repeat { opacity:var(--pro-menu-repeat); transform:translateY(calc(4px * (1 - var(--pro-menu-repeat)))); }
.formula-cabinet-navigation[data-pro-reels-nav] .formula-pro-nav-repeat .formula-liquid-nav__label { max-width:none; opacity:1; filter:none; clip-path:none; transform:none; }
.formula-media-pro-viewer.formula-media-reels-sheet .sheet__close-icon { right:calc((100% - min(100%,100dvh * .4625)) / 2 + 8px); top:max(10px,env(safe-area-inset-top)); width:28px; height:28px; padding:5px; background:#0003; border:0; backdrop-filter:none; }
.formula-media-pro-viewer .formula-pro-reels__heart { position:absolute; z-index:6; left:50%; top:45%; width:110px; height:110px; transform:translate(-50%,-50%); opacity:0; color:#fff; pointer-events:none; filter:drop-shadow(0 3px 10px #0005); }
.formula-media-pro-viewer .formula-pro-reels__heart .formula-media-heart,.formula-media-pro-viewer .formula-pro-reels__heart svg { width:100%; height:100%; }
.formula-media-pro-viewer .formula-pro-reels__toast { position:absolute; z-index:40; bottom:calc(var(--pro-footer-height) + 20px); left:50%; transform:translateX(-50%); max-width:90%; width:max-content; margin:0; padding:10px 16px; border-radius:20px; background:#202125ed; font-size:13px; text-align:center; }
.formula-media-pro-viewer .formula-pro-reels__menu { position:absolute; z-index:12; right:50px; bottom:50px; display:grid; min-width:150px; padding:6px; border:1px solid #ffffff18; border-radius:14px; background:#25262af5; box-shadow:0 10px 40px #0007; }
.formula-media-pro-viewer .formula-pro-reels__menu :is(a,button) { min-height:40px; padding:10px 14px; border:0; background:none; color:#fff; font-size:13px; text-align:left; text-decoration:none; }
.formula-media-pro-viewer .formula-pro-reels__menu button:disabled { opacity:.4; }
/* The sheet and the media use one rAF progress, including an interrupted drag. */
.formula-media-pro-viewer .formula-pro-drawer { position:absolute; z-index:25; inset:0; }
.formula-media-pro-viewer .formula-pro-drawer__backdrop { position:absolute; inset:0; width:100%; height:100%; border:0; background:none; }
.formula-media-pro-viewer .formula-pro-drawer__sheet { position:absolute; left:0; right:0; bottom:0; height:var(--pro-drawer-height,60%); display:flex; flex-direction:column; border-radius:calc(28 * var(--pro-unit)) calc(28 * var(--pro-unit)) 0 0; overflow:hidden; background:#191a1e; color:#f6f6f7; transform:translate3d(0,100%,0); will-change:transform; box-shadow:none; outline:none; touch-action:pan-x pinch-zoom; transition:none!important; }
.formula-media-pro-viewer .formula-pro-drawer__handle { display:grid; place-items:center; flex:0 0 calc(30 * var(--pro-unit)); width:100%; height:calc(30 * var(--pro-unit)); padding:0; border:0; background:none; touch-action:none; cursor:grab; }
.formula-media-pro-viewer .formula-pro-drawer__handle span { width:calc(33 * var(--pro-unit)); height:2px; border-radius:3px; background:#a0a1a4; }
.formula-media-pro-viewer .formula-pro-drawer__sheet.is-dragging .formula-pro-drawer__handle { cursor:grabbing; }
.formula-media-pro-viewer :is(.formula-pro-drawer__sheet.is-dragging,.is-drag-scrolling) { cursor:grabbing; user-select:none; -webkit-user-select:none; }
.formula-media-pro-viewer .formula-pro-drawer__body { flex:1 1 0; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:none; touch-action:pan-x pinch-zoom; -webkit-user-select:text; user-select:text; }
.formula-media-pro-viewer .formula-pro-drawer__body::-webkit-scrollbar { display:none; }
.formula-media-pro-viewer .formula-pro-drawer__footer { flex:0 0 auto; background:#191a1e; }
.formula-media-pro-viewer .formula-pro-drawer__footer:empty { display:none; }
.formula-media-pro-viewer .formula-pro-comments__header { padding:calc(5 * var(--pro-unit)) calc(16 * var(--pro-unit)) calc(20 * var(--pro-unit)); border-bottom:1px solid #ffffff08; }
.formula-media-pro-viewer .formula-pro-comments__description { margin:calc(16 * var(--pro-unit)) 0 0; color:#f1f1f3; font-size:calc(12 * var(--pro-unit)); line-height:1.35; overflow-wrap:anywhere; }
.formula-media-pro-viewer .formula-pro-comments__date { display:block; margin-top:calc(16 * var(--pro-unit)); color:#8f9298; font-size:calc(11 * var(--pro-unit)); }
.formula-media-pro-viewer .formula-pro-comments__translate { display:block; width:fit-content; margin-top:calc(16 * var(--pro-unit)); color:#a1a4aa; font-size:calc(12 * var(--pro-unit)); font-weight:600; text-decoration:none; }
.formula-media-pro-viewer .formula-pro-comments__empty { padding:34px 24px; margin:0; text-align:center; color:#91949b; font-size:13px; line-height:1.5; }
.formula-media-pro-viewer .formula-pro-comments__entry { position:relative; display:flex; align-items:center; gap:calc(10 * var(--pro-unit)); margin:0; padding:calc(10 * var(--pro-unit)) calc(16 * var(--pro-unit)) max(calc(28 * var(--pro-unit)),env(safe-area-inset-bottom)); border-top:1px solid #ffffff0c; }
.formula-media-pro-viewer .formula-pro-comments__avatar,.formula-media-pro-viewer .formula-pro-comment__avatar { display:grid; place-items:center; flex:0 0 calc(36 * var(--pro-unit)); width:calc(36 * var(--pro-unit)); height:calc(36 * var(--pro-unit)); border-radius:50%; background:#30363d; color:#ddd; font-size:11px; }
.formula-media-pro-viewer :is(.formula-pro-comments__avatar,.formula-pro-comment__avatar) img { width:100%; height:100%; border-radius:50%; object-fit:cover; }
.formula-media-pro-viewer .formula-pro-comments__capsule { display:flex; align-items:center; flex:1; min-width:0; min-height:calc(42 * var(--pro-unit)); padding:0 calc(10 * var(--pro-unit)); border:1px solid #ffffff13; border-radius:24px; }
.formula-media-pro-viewer .formula-pro-comments__capsule textarea { flex:1; min-width:0; width:100%; height:calc(38 * var(--pro-unit)); max-height:90px; padding:calc(11 * var(--pro-unit)) 0; resize:none; border:0; background:none; color:#eee; font:inherit; font-size:calc(12 * var(--pro-unit)); line-height:1.3; outline:none; touch-action:auto; }
.formula-media-pro-viewer .formula-pro-comments__capsule textarea::placeholder { color:#92939a; }
/* Keep the iOS focus font at 16px while matching the reference's visible size. */
.formula-media-pro-viewer .formula-pro-comments__input { position:relative; flex:1; min-width:0; height:calc(38 * var(--pro-unit)); overflow:hidden; }
.formula-media-pro-viewer .formula-pro-comments__input textarea { position:absolute; top:0; left:0; width:calc(100% / var(--pro-input-scale,.75)); height:calc(38 * var(--pro-unit) / var(--pro-input-scale,.75)); max-height:none; padding:12px 0; font-size:16px!important; transform:scale(var(--pro-input-scale,.75)); transform-origin:top left; overflow:hidden; }
.formula-media-pro-viewer .formula-pro-comments__capsule button { flex:0 0 calc(32 * var(--pro-unit)); width:calc(32 * var(--pro-unit)); height:calc(34 * var(--pro-unit)); padding:calc(5 * var(--pro-unit)); border:0; border-radius:0; background:none; color:#eee; }
.formula-media-pro-viewer .formula-pro-comments__capsule .formula-pro-comments__send { color:#4a9dfd; }
.formula-media-pro-viewer .formula-pro-comments__emojis { position:absolute; bottom:100%; right:16px; display:flex; flex-wrap:wrap; gap:4px; max-width:calc(100% - 32px); padding:8px; border-radius:15px; background:#2c2d33; }
.formula-media-pro-viewer .formula-pro-comments__emojis button { width:34px; height:34px; border:0; background:none; font-size:22px; }
.formula-media-pro-viewer .formula-pro-comments__attachment { position:absolute; bottom:100%; right:16px; width:50px; height:50px; padding:0; border:1px solid #fff; border-radius:8px; background:#333; }
.formula-media-pro-viewer .formula-pro-comments__attachment img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.formula-media-pro-viewer .formula-pro-comments__attachment span { position:absolute; top:-7px; right:-7px; display:grid; place-items:center; width:18px; height:18px; background:#000; color:#fff; border-radius:50%; }
.formula-media-pro-viewer .formula-pro-comment { display:flex; align-items:start; gap:calc(9 * var(--pro-unit)); padding:calc(12 * var(--pro-unit)) calc(14 * var(--pro-unit)); }
.formula-media-pro-viewer .formula-pro-comment__avatar { flex-basis:calc(28 * var(--pro-unit)); width:calc(28 * var(--pro-unit)); height:calc(28 * var(--pro-unit)); font-size:10px; }
.formula-media-pro-viewer .formula-pro-comment__text { flex:1; min-width:0; }
.formula-media-pro-viewer .formula-pro-comment__name { font-size:calc(11 * var(--pro-unit)); font-weight:600; }
.formula-media-pro-viewer .formula-pro-comment__name span { color:#92959b; font-weight:400; }
.formula-media-pro-viewer .formula-pro-comment__text p { margin:4px 0; font-size:calc(13 * var(--pro-unit)); line-height:1.35; overflow-wrap:anywhere; }
.formula-media-pro-viewer .formula-pro-comment__reply { padding:0; border:0; background:none; color:#989ba3; font-size:calc(11 * var(--pro-unit)); }
.formula-media-pro-viewer .formula-pro-comment__like { width:28px; height:28px; margin-top:12px; padding:5px; border:0; background:none; color:#9b9da4; }
.formula-media-pro-viewer .formula-pro-comment__like .formula-media-heart,.formula-media-pro-viewer .formula-pro-comment__like svg { width:18px; height:18px; }
.formula-media-pro-viewer .formula-pro-comment__like[aria-pressed=true] { color:#ff3040; }
.formula-media-pro-viewer .formula-pro-comment__image { display:block; max-width:180px; max-height:160px; margin:8px 0; border-radius:10px; }
.formula-media-pro-viewer .formula-pro-repeat { position:static; inset:auto; display:block; width:auto; height:auto; padding:0 calc(18 * var(--pro-unit)) calc(22 * var(--pro-unit)); border:0; background:none; overflow:visible; touch-action:pan-x pinch-zoom; }
.formula-media-pro-viewer .formula-pro-repeat .formula-media-repeat-panel__toggle { display:none; }
.formula-media-pro-viewer .formula-pro-repeat .formula-media-repeat-panel__body { height:auto; padding:0; overflow:visible; }
.formula-media-pro-viewer .formula-pro-repeat .formula-media-repeat-form { min-height:0; padding:0; background:none; border:0; border-radius:0; gap:14px; }
.formula-media-pro-viewer .formula-pro-repeat .formula-media-repeat-form__title { font-size:20px; }
.formula-media-pro-viewer .formula-pro-repeat .formula-media-repeat-form__description { font-size:12px; }
.formula-media-pro-viewer .formula-pro-repeat .formula-media-repeat-form__fields { margin:0; padding-top:8px; }
.formula-media-pro-viewer .formula-pro-repeat .formula-media-repeat-form__footer { position:static; padding:12px 0 0; background:none; }
.formula-media-pro-viewer .formula-pro-drawer__footer > .formula-media-repeat-form__footer { position:static; display:flex; flex-direction:column; gap:8px; margin:0; padding:12px calc(18 * var(--pro-unit)) max(12px,env(safe-area-inset-bottom,0px)); border-top:1px solid #ffffff0c; background:#191a1e; }
.formula-media-pro-viewer .formula-pro-drawer__footer .formula-media-repeat-form__submit { width:100%; margin:0; }
@media (width < 1024px) {
  /* Keep one-finger gestures in the drawer while preserving pinch zoom. */
  .formula-media-pro-viewer :is(.formula-pro-drawer__sheet,.formula-pro-drawer__body,.formula-pro-repeat) { touch-action:none; touch-action:pinch-zoom; }
}
@media(prefers-reduced-motion:reduce) {
  .formula-media-pro-viewer .formula-pro-drawer__sheet { will-change:auto; }
}
