/* ch-close (builder E): scenes 30 to 37. Every selector starts with ue- or sits under .ue. */

/* ---------- shared: labels over 3D, scrims ---------- */
.ue .ue-lab { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; line-height: 1.25; color: #fff; transition: opacity .45s; }
.ue .ue-lab.is-gone { opacity: 0; }
.scene:not(.is-active) .ue-lab { opacity: 0; transition: none; }
.ue .ue-lab--pill { padding: 5px 10px; border-radius: 6px; background: rgb(8 8 10 / .72); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); text-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ue .ue-lab--lilac { color: #E6DCFA; box-shadow: inset 0 0 0 1px rgb(205 189 235 / .5); }
.ue .ue-lab--gold { padding: 5px 10px; border-radius: 6px; background: rgb(18 12 4 / .76); color: #FFD08A; box-shadow: inset 0 0 0 1px rgb(255 181 74 / .6), 0 0 24px rgb(255 170 60 / .25); text-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ue .ue-lab--aqua { color: #BDF3EC; box-shadow: inset 0 0 0 1px rgb(156 231 221 / .5); }
.ue-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgb(5 6 8 / .84) 0, rgb(5 6 8 / .5) 24%, transparent 44%), linear-gradient(90deg, rgb(5 6 8 / .55) 0, transparent 40%); }
.ue-instant, .ue-instant * { transition: none !important; animation: none !important; }
.scene:not(.is-active) .ue * { transition: none !important; }
.ue .ue-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 959px), (max-height: 599px) {
  .ue .ue-lab { font-size: 14px; }
  .ue.ug-full .ug--full .ug-side { max-width: min(25em, 54%); }
}
@media (max-width: 759px) and (orientation: portrait) {
  .ue .ue-lab { font-size: 14px; }
  .ue.ug-full .ug--full .ug-side { max-width: 100%; }
  .ue-scrim { background: linear-gradient(180deg, rgb(5 6 8 / .86) 0, rgb(5 6 8 / .55) 36%, transparent 54%); }
}

/* ---------- 31 l9-proof: Ads Manager, then the Ad Library wall ---------- */
.ue-l9p__wrap { position: relative; height: 100%; min-height: 0; }
.ue-l9p__am { position: absolute; inset: 0; transition: opacity .5s, transform .7s cubic-bezier(.2,.8,.2,1); }
.ue-l9p__wrap.is-lib .ue-l9p__am { opacity: 0; transform: translateY(-14px) scale(.985); pointer-events: none; }
.ue .ue-spend { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 100%; height: 30px; }
.ue .ue-spend__bar { position: absolute; left: 0; top: 3px; bottom: 3px; width: calc(max(var(--v, 0), .014) * 100%); border-radius: 3px;
  background: radial-gradient(circle, rgb(8 102 255 / .62) 1.7px, transparent 2.1px) 0 0 / 5px 5px, rgb(8 102 255 / .06); }
.ue .ue-spend .uk-am__val { position: relative; z-index: 1; padding: 1px 6px; border-radius: 4px; background: rgb(255 255 255 / .9); font-variant-numeric: tabular-nums; }
.ue-l9p .ug-stat--lilac .ug-stat__v { color: #6A50B8; }
.ue .ue-col { display: grid; gap: 14px; }
.ue .ue-nowrap { white-space: nowrap; }
.ue-lib { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; color: #1C2B33;
  box-shadow: 0 0 0 1px rgb(28 43 51 / .1), 0 22px 48px -28px rgb(17 17 17 / .35); opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .6s .15s, transform .8s .15s cubic-bezier(.2,.8,.2,1); }
.ue-l9p__wrap.is-lib .ue-lib { opacity: 1; transform: none; }
.ue-lib .uk-bar { background: #E4E6EB; }
.ue-lib__top { flex: none; display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 16px; border-bottom: 1px solid #E4E6EB; }
.ue-lib__logo { color: #0866FF; line-height: 0; }
.ue-lib__title { width: 110px !important; height: 10px; background: #C9CED4 !important; }
.ue-lib__link { width: 54px !important; }
.ue-lib__flex { flex: 1; }
.ue-lib__search { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
.ue-lib__field { flex: 1 1 200px; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 19px; background: #F0F2F5; color: #65676B; }
.ue-lib__field .uk-bar { width: 40% !important; background: #CED2D8; }
.ue-lib__chips { display: flex; gap: 8px; align-items: center; }
.ue-lib__chip { display: inline-flex; align-items: center; height: 30px; width: 74px; padding: 0 12px; border-radius: 15px; box-shadow: inset 0 0 0 1px #DADDE1; }
.ue-lib__chip .uk-bar { width: 100% !important; }
.ue-lib__ai { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 15px; background: #CDBDEB; color: #3B2C66; font-size: 14px; font-weight: 700; }
.ue-lib__grid { position: relative; flex: 1 1 auto; min-height: 0; margin: 0 16px 16px; }
.ue-lib__cv { position: absolute; left: 0; top: 0; display: block; }
@media (max-width: 959px), (max-height: 599px) {
  .ue-lib__top { height: 40px; }
  .ue-lib__search { padding: 8px 12px; }
  .ue-lib__field { height: 32px; }
  .ue-lib__chip { display: none; }
  .ue-lib__grid { margin: 0 12px 12px; }
  .ue .ue-col { gap: 8px; }
}

/* ---------- 32 l9-how: the AI video studio ---------- */
.ue-l9h__wrap { position: relative; height: 100%; min-height: 0; display: grid; }
.ue-st { position: relative; min-height: 0; height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; color: #1d1f25;
  box-shadow: 0 0 0 1px rgb(17 17 17 / .08), 0 24px 50px -30px rgb(17 17 17 / .4); container-type: size; }
.ue-st .uk-bar { background: #E6E4E0; }
.ue-st__top { flex: none; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-bottom: 1px solid #EEECE8; }
.ue-st__logo { width: 24px; height: 24px; border-radius: 7px; background: conic-gradient(from 210deg, #CDBDEB, #8DD8F3, #9CE7DD, #FF7F32, #CDBDEB); flex: none; }
.ue-st__name { width: 120px !important; height: 9px; background: #D6D3CE !important; }
.ue-st__flex { flex: 1; }
.ue-st__gen { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 8px; background: #FF7F32; color: #fff; }
.ue-st__gen .uk-bar { width: 46px !important; background: rgb(255 255 255 / .75) !important; }
.ue-st__gen > span { line-height: 0; }
.ue-st__body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(130px, .3fr) minmax(0, 1fr); }
.ue-st__script { min-height: 0; overflow: hidden; padding: 14px; background: #FAF8F5; border-right: 1px solid #EEECE8; }
.ue-st__h { display: flex; align-items: center; min-height: 24px; font-size: 14px; font-weight: 600; color: #1d1f25; white-space: nowrap; }
.ue .ue-word { display: inline-grid; align-items: center; }
.ue .ue-word > * { grid-area: 1 / 1; transition: opacity .35s; }
.ue .ue-word__t { opacity: 0; }
.ue .ue-word__b { opacity: 1; height: 8px; }
.ue .ue-word.is-on .ue-word__t { opacity: 1; }
.ue .ue-word.is-on .ue-word__b { opacity: 0; }
.ue-script { display: grid; gap: 11px; margin-top: 12px; }
.ue-script__ln { display: block; height: 8px; width: var(--w); border-radius: 4px; background: #E3E0DB; transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.ue-script__ln.is-hook { background: #FF7F32; }
.ue-st.is-b1 .ue-script__ln { transform: none; transition-delay: calc(var(--k) * 110ms); }
.ue-st__main { min-height: 0; display: flex; flex-direction: column; padding: 12px 14px 14px; gap: 10px; }
.ue-st__faces { flex: none; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ue-st__row { display: flex; gap: 8px; }
.ue-face { position: relative; display: inline-flex; border-radius: 50%; transform: scale(0); transition: transform .45s cubic-bezier(.3,1.5,.5,1); }
.ue-st.is-b1 .ue-face { transform: none; transition-delay: calc(500ms + var(--i) * 110ms); }
.ue-face.is-sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #FF7F32; }
.ue-st__tabs { flex: none; display: flex; gap: 8px; opacity: 0; transition: opacity .4s; }
.ue-st.is-b2 .ue-st__tabs { opacity: 1; }
.ue-tab { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; font-size: 14px; font-weight: 600; background: #F2F1EE; }
.ue-tab > i { display: inline-grid; place-items: center; width: 16px; height: 16px; line-height: 0; }
.ue-tab > i svg { width: 14px; height: 14px; }
.ue-tab.is-ok { background: #E3F7F3; color: #1C6A60; }
.ue-tab.is-bad { color: #6b6a66; }
.ue-tab.is-bad > i { color: #8b8a86; }
.ue-st__gwrap { position: relative; flex: 1 1 auto; min-height: 0; }
.ue-st__grid { display: grid; grid-template-columns: repeat(var(--cols, 4), var(--cw, 60px)); gap: var(--g, 10px); justify-content: center; align-content: start; }
.ue-clip { display: grid; gap: 4px; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .6s; }
.ue-clip__card { position: relative; display: block; border-radius: 6px; overflow: hidden; background: #EFEDE9; }
.ue-clip__th { display: block; width: 100%; transition: filter .5s, opacity .5s; }
.ue-clip__th canvas { display: block; width: 100%; height: 100%; }
.ue-clip__play { position: absolute; left: 50%; top: 44%; translate: -50% -50%; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgb(0 0 0 / .35); color: #fff; line-height: 0; }
.ue-clip__play svg { width: 13px; height: 13px; }
.ue-clip__dur { position: absolute; right: 5px; bottom: 5px; width: 22px; }
.ue-clip__dur .uk-bar { height: 6px; background: rgb(255 255 255 / .85) !important; }
.ue-clip__sk { position: absolute; inset: 0; background: linear-gradient(110deg, rgb(239 237 233 / .55) 30%, rgb(255 255 255 / .85) 50%, rgb(239 237 233 / .55) 70%) 0 0 / 300% 100%; transition: opacity .5s; }
/* beat 1: the clips are still rendering, faint halftone frames under a moving sheen */
.ue-st:not(.is-b2) .ue-clip__th { filter: grayscale(1) contrast(.6); opacity: .32; }
.ue-st:not(.is-b2) .ue-clip__play, .ue-st:not(.is-b2) .ue-clip__dur { opacity: 0; }
.ue-clip__play, .ue-clip__dur { transition: opacity .4s; }
.ue-st.is-b2 .ue-clip__th { transition-delay: calc(var(--i) * 105ms); }
.scene.is-active .ue-clip__sk { animation: ue-shimmer 1.6s linear infinite; }
@keyframes ue-shimmer { to { background-position: -150% 0; } }
.ue-st.is-b2 .ue-clip__sk { opacity: 0; transition-delay: calc(var(--i) * 105ms); }
.ue-clip__x { position: absolute; inset: 0; color: #6b6a66; opacity: 0; transition: opacity .4s; }
.ue-clip__x svg { width: 100%; height: 100%; display: block; }
.ue-st.is-b2 .ue-clip[data-ok="0"] .ue-clip__x { opacity: 1; transition-delay: 1.4s; }
.ue-st.is-b2 .ue-clip[data-ok="0"] .ue-clip__th { filter: grayscale(1); opacity: .35; transition-delay: 1.4s; }
.ue-clip__m { position: relative; display: block; height: 8px; border-radius: 4px; background: #EEECE8; overflow: hidden; opacity: 0; transition: opacity .3s; }
.ue-clip__fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 100%); background: radial-gradient(circle, #3FB8A8 1.3px, transparent 1.6px) 0 0 / 4px 4px, rgb(156 231 221 / .35); transform-origin: 0 50%; transform: scaleX(0); transition: transform .7s cubic-bezier(.2,.8,.2,1), background-color .4s; }
.ue-clip__line { position: absolute; left: 33.3%; top: 0; bottom: 0; width: 2px; background: #1d1f25; }
.ue-st.is-b2 .ue-clip[data-ok="1"] .ue-clip__m { opacity: 1; transition-delay: 1.5s; }
.ue-st.is-b2 .ue-clip[data-ok="1"] .ue-clip__fill { transform: none; transition-delay: 1.6s; }
.ue-st.is-b2 .ue-clip[data-low="1"] { opacity: .55; transform: translateY(8px); transition-delay: 2.3s; }
.ue-st.is-b2 .ue-clip[data-low="1"] .ue-clip__fill { background: radial-gradient(circle, #B0705C 1.3px, transparent 1.6px) 0 0 / 4px 4px, rgb(225 181 168 / .5); transition-delay: 1.6s, 2.3s; }
.ue-st.is-b2 .ue-clip[data-low="1"] .ue-clip__card { box-shadow: 0 0 0 2px #E1B5A8; transition: box-shadow .4s 2.3s; }
.ue-warn { position: absolute; right: 0; bottom: 0; width: min(64%, 300px); display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 12px; background: #F6E1D9; color: #85503F;
  box-shadow: 0 0 0 1px rgb(133 80 63 / .18), 0 22px 40px -20px rgb(133 80 63 / .55); opacity: 0; transform: translate(24px, 24px); transition: opacity .5s, transform .7s cubic-bezier(.2,.8,.2,1); }
.ue-st.is-b3 .ue-warn { opacity: 1; transform: none; }
.ue-warn__i { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: rgb(225 181 168 / .6); line-height: 0; }
.ue-warn__bars { flex: 1; display: grid; gap: 10px; padding-top: 6px; }
.ue-warn__bars .uk-bar { background: rgb(133 80 63 / .3) !important; }
.ue-st.is-narrow .ue-st__body { grid-template-columns: minmax(0, 1fr); }
.ue-st.is-narrow .ue-st__script { display: none; }
@container (max-height: 380px) {
  .ue-st__top { height: 38px; }
  .ue-st__main { padding: 8px 10px 10px; gap: 6px; }
  .ue-face .uk-av { --s: 30px !important; }
  .ue-warn { padding: 10px; gap: 10px; }
  .ue-warn__i { width: 36px; height: 36px; }
}
@container (max-width: 420px) {
  .ue-st__name, .ue-st__gen .uk-bar { display: none; }
  .ue-face .uk-av { --s: 30px !important; }
  .ue-st__row { gap: 5px; }
}

/* ---------- 34 l10-proof: 14,000 videos, then the farm that got zero signups ---------- */
.ue-sc { position: relative; height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) 0fr; row-gap: 0; transition: grid-template-rows .8s cubic-bezier(.2,.8,.2,1), row-gap .8s; }
.ue-sc.is-b2 { grid-template-rows: minmax(0, .9fr) minmax(0, 1fr); row-gap: 18px; }
.ue-sc__field { position: relative; min-height: 0; }
.ue-sc__cv { position: absolute; left: 0; top: 0; display: block; }
.ue .ue-sc__views { position: absolute; left: 8px; top: 0; font-size: clamp(28px, 3vw, 48px); line-height: 1; letter-spacing: -.03em; font-weight: 500; color: #111; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ue .ue-sc__vids { position: absolute; left: 0; top: 0; font-size: 15px; font-weight: 500; color: #555; white-space: nowrap; }
.ue-farm { position: relative; min-height: 0; overflow: hidden; display: flex; gap: clamp(14px, 3vw, 36px); align-items: center; padding: clamp(12px, 2.4vh, 24px) clamp(14px, 2.4vw, 28px); border-radius: 12px; background: #F6E1D9; color: #85503F;
  box-shadow: 0 0 0 1px rgb(133 80 63 / .16), 0 20px 40px -26px rgb(133 80 63 / .5); opacity: 0; transform: translateY(-24px); transition: opacity .5s .3s, transform .8s .3s cubic-bezier(.2,.8,.2,1); }
.ue-sc.is-b2 .ue-farm { opacity: 1; transform: none; }
.ue-farm__phones { position: relative; flex: none; height: 100%; max-height: 200px; aspect-ratio: 1.1; }
.ue-farm__ph { position: absolute; top: 0; height: 100%; aspect-ratio: 9 / 19; left: calc(var(--k) * 15%); padding: 3px; border-radius: 9px; background: #1b1c20; box-shadow: 0 6px 14px -6px rgb(0 0 0 / .5); transform: rotate(calc((var(--k) - 2) * 4deg)); transform-origin: 50% 100%; }
.ue-farm__th { display: block; width: 100%; height: 100%; border-radius: 6px; overflow: hidden; }
.ue-farm__th canvas { display: block; width: 100%; height: 100%; }
.ue-farm__data { flex: 1 1 auto; min-width: 0; display: grid; gap: clamp(10px, 2vh, 18px); }
.ue-farm__row { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 14px; align-items: center; }
.ue .ue-farm__v { font-size: clamp(18px, 1.7vw, 26px); font-weight: 500; letter-spacing: -.02em; color: #6E3B2B; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 4.6em; }
.ue-farm__track { position: relative; display: block; height: 22px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgb(133 80 63 / .25); overflow: hidden; }
.ue-farm__bar { position: absolute; inset: 3px; background: radial-gradient(circle, #B0705C 1.6px, transparent 2px) 0 0 / 5px 5px; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s .7s cubic-bezier(.2,.8,.2,1); }
.ue-sc.is-b2 .ue-farm__bar { transform: none; }
.ue-farm__flat { display: block; height: 44px; }
.ue-farm__flat svg { width: 100%; height: 100%; display: block; }
.ue-farm__line { stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1s 1.2s; }
.ue-sc.is-b2 .ue-farm__line { stroke-dashoffset: 0; }
@media (max-width: 959px), (max-height: 599px) {
  .ue .ue-sc__vids { font-size: 14px; }
  .ue .ue-sc__views { font-size: 24px; }
  .ue-sc.is-b2 { row-gap: 10px; }
  .ue .ue-farm__v { font-size: 16px; }
  .ue-farm__flat { height: 28px; }
  .ue-farm__track { height: 16px; }
}

/* ---------- 35 l10-how: the outlier search, four phones, a Spark Ad ---------- */
.ue-l10h__stage { position: relative; height: 100%; min-height: 0; }
.ue-l10h__stage > .uk-phone-fit { position: absolute; left: 0; top: 0; width: 100px; height: 200px; transition: left .8s cubic-bezier(.2,.8,.2,1), top .8s cubic-bezier(.2,.8,.2,1), width .8s cubic-bezier(.2,.8,.2,1), height .8s cubic-bezier(.2,.8,.2,1), opacity .5s; }
.ue-l10h__ph { opacity: 0; pointer-events: none; }
.ue-l10h__stage[data-beat="1"] .ue-l10h__ph, .ue-l10h__stage[data-beat="2"] .ue-l10h__ph { opacity: 1; }
.ue-l10h__stage.is-fly .ue-l10h__ph { transition-delay: calc(var(--k) * 130ms); }
.ue-l10h__stage[data-beat="2"] .ue-l10h__sr { opacity: 0; }
.ue-l10h__stage[data-beat="2"] .ue-l10h__ph:not(:nth-child(4)) { opacity: .55; }
.ue-fmt { position: absolute; left: 12%; right: 12%; top: 16%; display: grid; gap: 4px; padding: 6% 7%; border-radius: 5px; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .3); border-left: 4px solid #FF7F32; z-index: 2; }
.ue-fmt i { display: block; height: 5px; border-radius: 3px; background: #1b1b1f; }
.ue-fmt i + i { width: 62%; }
.uk-sr__item .ue-fmt { left: 10%; right: 10%; padding: 5% 6%; gap: 3px; }
.uk-sr__item .ue-fmt i { height: 4px; }
.ue-slot { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 30px; box-shadow: 0 0 0 2px #FF7F32, 0 0 40px 6px rgb(255 127 50 / .35); opacity: 0; transition: opacity .5s .6s; pointer-events: none; }
.ue-l10h__stage[data-beat="2"] .ue-slot { opacity: 1; }
.ue-l10h__stage:not([data-beat="2"]) .ue-slot { transition-delay: 0s; }
/* kit gap: a TikTok search phone gets the full-bleed status bar of the For You video; give the search its own row */
.ue .ue-l10h__sr.uk-phone--tt .uk-ph__status { position: relative; }
.ue .ue-l10h__sr .uk-sr__item.is-lit .uk-thumb { position: relative; }
.ue .ue-l10h__sr .uk-sr__item.is-lit .uk-thumb::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgb(0 0 0 / .72)); }
.ue .ue-l10h__sr .uk-sr__item.is-lit .uk-sr__views { z-index: 2; }
.ue .ue-l10h__ph .ue-fmt { right: 24%; left: 8%; }
.ue-l10h__stage { overflow: hidden; border-radius: 0 0 18px 18px; }
@container (max-width: 210px) { .ue .ue-l10h__sr .uk-sr__btn { display: none; } }

/* ---------- 36 week: the domino run ---------- */
.ue .ue-lab--day { font-size: 15px !important; display: block; max-width: 13em; white-space: normal; padding: 7px 11px; border-radius: 8px; background: rgb(8 8 12 / .74); box-shadow: inset 3px 0 0 var(--c, #fff), inset 0 0 0 1px rgb(255 255 255 / .12); text-shadow: none; line-height: 1.3;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ue .ue-lab--day b { font-weight: 600; color: var(--c, #fff); }
.ue-scrim--week { background: linear-gradient(180deg, rgb(5 6 8 / .8) 0, rgb(5 6 8 / .35) 22%, transparent 36%); }
@media (max-width: 959px), (max-height: 599px) { .ue .ue-lab--day { max-width: 21em; padding: 5px 9px; } }
@media (max-width: 759px) and (orientation: portrait) { .ue .ue-lab--day { max-width: 11.5em; } }

/* ---------- 37 close: the kaleidoscope at rest ---------- */
.ue-scrim--close { background: linear-gradient(180deg, rgb(5 5 7 / .8) 0, rgb(5 5 7 / .4) 22%, transparent 40%), linear-gradient(90deg, rgb(5 5 7 / .6) 0, transparent 38%); }
.ue-close .ug-note { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.45; color: rgb(255 255 255 / .86); max-width: 24em; }
@media (max-width: 959px), (max-height: 599px) { .ue-close .ug-note { font-size: 16px; } }
@media (max-width: 959px), (max-height: 599px) {
  .ue .ue-l10h__sr .uk-sr__tabs { display: none; }
  .ue-l9p .ug-stat__v { font-size: 30px; }
  .ue-l9p .ug-stat { gap: 2px; }
}
.ue-st__head { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.ue-st__head > .ue-st__tabs { flex-basis: 100%; }
@container (max-height: 330px) {
  .ue-st__head > .ue-st__tabs { flex-basis: auto; }
  .ue-st__top { height: 34px; }
  .ue-st__gen { height: 26px; }
  .ue-st__body { grid-template-columns: minmax(96px, .24fr) minmax(0, 1fr); }
  .ue-st__script { padding: 10px; }
  .ue-tab { height: 26px; }
}
@container (max-height: 330px) {
  .ue-st.is-b2 .ue-st__faces .ue-st__h { display: none; }
  .ue-face .uk-av { --s: 26px !important; }
  .ue-st__row { gap: 4px; }
  .ue-st__head { gap: 6px 10px; }
  .ue-tab { padding: 0 8px; gap: 4px; }
}
@media (max-width: 959px), (max-height: 599px) {
  .ue .ue-l10h__sr .uk-sr__th { aspect-ratio: 1 / 1 !important; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .ue-farm { gap: 12px; padding: 10px 12px; }
  .ue-farm__phones { height: auto; width: 32%; max-height: none; aspect-ratio: 1.05; }
  .ue-farm__ph { left: calc(var(--k) * 9%); }
  .ue-farm__row { gap: 8px; }
}
/* very short frames: the 53% figure and the note share one source line (both are via @irabukht) */
@media (max-height: 400px) {
  .ue-l9p .ug-stat .ug-src { display: none; }
  .ue-l9p .ug-stat__v { font-size: 26px; }
}
.ue-lib__stat { flex: none; display: flex; align-items: center; gap: 14px; padding: 0 16px 12px; }
.ue .ue-lib__stat b { font-size: clamp(30px, 3vw, 46px); line-height: 1; font-weight: 500; letter-spacing: -.03em; color: #6A50B8; font-variant-numeric: tabular-nums; }
.ue-lib__stat > span { display: grid; gap: 2px; font-size: 15px; line-height: 1.3; color: #1C2B33; max-width: 26em; }
.ue-lib__stat small { font-size: 14px; color: #65676B; }
@media (max-width: 959px), (max-height: 599px) {
  .ue-lib__stat { padding: 0 12px 8px; gap: 10px; }
  .ue .ue-lib__stat b { font-size: 26px; }
  .ue-lib__stat > span { font-size: 14px; }
}
@media (max-height: 420px) { .ue-lib__search, .ue-lib__top { display: none; } .ue-lib__stat { padding-top: 10px; } }
/* audit fixes: opaque label chips over 3D; the script's real line */
.ue .ue-lab--solid { background: #0c0d11; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ue .ue-lab--gold.ue-lab--solid { background: #17110a; }
.ue-script__key { position: relative; padding: 8px 10px 8px 12px; border-radius: 6px; background: #FFF1E6; box-shadow: inset 3px 0 0 #FF7F32; font-size: 14px; line-height: 1.35; font-weight: 500; color: #3a2a1f;
  opacity: 0; transform: translateY(4px); transition: opacity .5s, transform .5s; }
.ue-st.is-b1 .ue-script__key { opacity: 1; transform: none; transition-delay: calc(var(--k) * 110ms); }
.ue-script__key .ue-word { display: grid; }
.ue-script__key .ue-word__b { width: 88% !important; background: #F2CFB4 !important; }
/* narrow window: the script panel becomes a strip above the faces with only its real line */
.ue-st.is-narrow .ue-st__body { grid-template-rows: auto minmax(0, 1fr); }
.ue-st.is-narrow .ue-st__script { display: block; padding: 8px 12px 6px; border-right: 0; border-bottom: 1px solid #EEECE8; }
.ue-st.is-narrow .ue-st__script .ue-st__h { display: none; }
.ue-st.is-narrow .ue-script { margin-top: 0; }
.ue-st.is-narrow .ue-script__ln { display: none; }
.ue-st.is-narrow:not(.is-b2) .ue-script__key { padding: 6px 8px 6px 10px; }
.ue-st.is-narrow.is-b2 .ue-st__script { display: none; }
