/* ch-levers-7-8 (builder D): scenes 23 to 29. Every selector starts with ud- or sits under .ud / .ud-r2. */

/* ---------- shared: labels over 3D, scrims, tags, instant jumps ---------- */
.ud .ud-lab { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; line-height: 1.2; color: #fff; transition: opacity .45s; }
.ud .ud-lab.is-gone { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.scene:not(.is-active) .ud-lab { opacity: 0; transition: none; }
.ud .ud-lab--orange { color: #FFB07A; }
.ud .ud-lab--aqua { color: #B9F2EA; }
.ud .ud-lab--lilac { color: #E0D5F5; }
.ud .ud-lab--blue { color: #BDE9F8; }
.ud .ud-lab--dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; flex: none; }
.ud .ud-lab--pill { padding: 5px 10px; border-radius: 6px; background: rgb(8 8 10 / .7); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); text-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ud .ud-lab--chip { padding: 5px 10px; border-radius: 6px; background: rgb(14 10 8 / .74); color: #FFC49A; box-shadow: inset 0 0 0 1px rgb(255 127 50 / .45); text-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ud .ud-lab--big { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.ud .ud-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ud-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgb(5 5 6 / .84) 0, rgb(5 5 6 / .5) 22%, transparent 42%), linear-gradient(90deg, rgb(5 5 6 / .55) 0, transparent 38%); }
.ud-instant, .ud-instant * { transition: none !important; animation: none !important; }
.scene:not(.is-active) .ud * { transition: none !important; }
.ud-gb { display: block; height: 8px; border-radius: 4px; background: rgb(255 255 255 / .16); flex: none; }
.ud-i { display: inline-grid; place-items: center; flex: none; }
.ud-i--flip { transform: scaleX(-1); }
@media (max-width: 959px), (max-height: 599px) { .ud .ud-lab { font-size: 14px; } .ud .ud-lab--big { font-size: 16px; } }
@media (max-width: 759px) and (orientation: portrait) {
  .ud .ud-lab { font-size: 14px; }
  .ud-scrim { background: linear-gradient(180deg, rgb(5 5 6 / .86) 0, rgb(5 5 6 / .55) 34%, transparent 52%); }
}

/* ---------- 25 l7-how: the dark video editor ---------- */
.ud-ed__wrap { position: relative; height: 100%; display: flex; min-height: 0; }
.ud-ed { --ed-bg: #17181B; --ed-panel: #1D1E22; --ed-line: #2C2D33; --ed-mut: #8B8D96;
  container-type: size; position: relative; flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: var(--ed-bg); color: #F4F4F5;
  box-shadow: inset 0 0 0 1px var(--ed-line), 0 40px 80px -40px rgb(0 0 0 / .8), 0 0 0 1px rgb(255 255 255 / .02); }
.ud-ed__flex { flex: 1 1 auto; }
.ud-ed__top { flex: none; display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: var(--ed-panel); box-shadow: inset 0 -1px 0 var(--ed-line); color: var(--ed-mut); }
.ud-ed__top .ud-gb { width: 46px !important; }
.ud-ed__top .ud-gb--mid { width: 110px !important; background: rgb(255 255 255 / .22); }
.ud-ed__logo { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, #fff, #9ea3ad); }
.ud-ed__export { display: grid; place-items: center; width: 48px; height: 26px; border-radius: 6px; background: #FF7F32; color: #1b0d04; }
.ud-ed__stage { position: relative; flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 22fr) minmax(0, 56fr) minmax(0, 22fr); }
.ud-ed__media { display: flex; flex-direction: column; gap: 10px; padding: 10px; box-shadow: inset -1px 0 0 var(--ed-line); min-height: 0; overflow: hidden; }
.ud-ed__mtabs { display: flex; gap: 12px; color: var(--ed-mut); }
.ud-ed__mtabs .is-cur { color: #fff; }
.ud-ed__mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-content: start; min-height: 0; overflow: hidden; }
.ud-ed__mth { position: relative; border-radius: 4px; overflow: hidden; opacity: .62; }
.ud-ed__mth.is-used { opacity: 1; box-shadow: 0 0 0 1.5px rgb(255 255 255 / .55); }
.ud-ed__mth .uk-thumb { display: block; width: 100%; }
.ud-ed__mon { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #0D0D0F; }
.ud-ed__screen { flex: 1 1 auto; min-height: 0; display: grid; place-items: center; padding: 10px 0 4px; }
.ud-ed__frame { position: relative; height: 100%; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 20px 40px -20px rgb(0 0 0 / .9); background: #2a2420; }
.ud-ed__face { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ud-ed__face canvas { width: 100%; height: 100%; display: block; }
.ud-ed__cap { position: absolute; left: 12%; right: 12%; bottom: 20%; display: grid; gap: 4px; justify-items: center; padding: 5px 6px; border-radius: 5px; background: #fff; box-shadow: 0 4px 10px rgb(0 0 0 / .35); }
.ud-ed__cap .ud-gb { height: 5px; background: #111; }
.ud-ed__trans { flex: none; display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px; color: #D4D4D8; }
.ud-ed__trans .ud-gb { width: 40px !important; height: 6px; }
.ud-ed__play { display: grid; color: #fff; }
.ud-ed__insp { display: flex; flex-direction: column; gap: 14px; padding: 12px; box-shadow: inset 1px 0 0 var(--ed-line); min-height: 0; overflow: hidden; }
.ud-ed__itabs { display: flex; gap: 8px; }
.ud-ed__itabs .ud-gb { height: 7px; } .ud-ed__itabs .is-cur { background: rgb(255 255 255 / .55); }
.ud-ed__irow { display: grid; gap: 8px; }
.ud-ed__irow .ud-gb { height: 6px; }
.ud-ed__slider { position: relative; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .12); }
.ud-ed__slider i { position: absolute; left: 0; top: 0; bottom: 0; width: 46%; border-radius: 2px; background: rgb(255 255 255 / .5); }
.ud-ed__slider i::after { content: ""; position: absolute; right: -5px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
/* export sheet (beat 2) and check panel (beat 3) */
.ud-ed__sheet { position: absolute; z-index: 3; left: 22%; right: 0; bottom: 0; max-height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 14px; border-radius: 14px 14px 0 0; background: #232428; box-shadow: 0 -18px 40px -12px rgb(0 0 0 / .7), inset 0 0 0 1px #34353c; transform: translateY(104%); opacity: 0; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.ud-ed.is-b2 .ud-ed__sheet { transform: none; opacity: 1; }
.ud-ed__shead { flex: none; display: flex; align-items: center; gap: 10px; color: var(--ed-mut); }
.ud-ed__shead .ud-gb { width: 90px !important; height: 8px; background: rgb(255 255 255 / .3); }
.ud-ed__x { display: grid; transform: rotate(45deg); }
.ud-ed__shapes { display: flex; align-items: flex-end; justify-content: center; gap: 26px; min-height: 0; }
.ud-ed__shape { display: grid; justify-items: center; gap: 8px; }
.ud-ed__shape b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; }
.ud-ed__sbox { position: relative; display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 2px #FF7F32, 0 0 22px -4px rgb(255 127 50 / .7); }
.ud-ed__shape--t .ud-ed__sbox { height: clamp(70px, 26cqh, 150px); aspect-ratio: 9 / 16; }
.ud-ed__shape--s .ud-ed__sbox { height: clamp(48px, 18cqh, 104px); aspect-ratio: 4 / 5; box-shadow: 0 0 0 2px #9CE7DD, 0 0 22px -4px rgb(156 231 221 / .6); }
.ud-ed__sbox .uk-thumb { display: block; width: 100%; height: 100%; }
.ud-ed__sbox .uk-thumb canvas { width: 100%; height: 100%; display: block; }
.ud-ed__checks { display: none; gap: 8px; }
.ud-ed.is-b3 .ud-ed__shapes { display: none; }
.ud-ed.is-b3 .ud-ed__checks { display: grid; }
.ud-ed__chk { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 9px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px #34353c; font-size: 16px; font-weight: 500; }
.ud-ed__tick { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #55565e; color: transparent; transition: background-color .35s, color .35s, box-shadow .35s; }
.ud-ed__chk.is-on .ud-ed__tick { background: #9CE7DD; color: #0e3a34; box-shadow: 0 0 14px rgb(156 231 221 / .55); }
/* timeline */
.ud-ed__tl { flex: none; height: 47%; display: flex; flex-direction: column; background: var(--ed-panel); box-shadow: inset 0 1px 0 var(--ed-line); }
.ud-ed__tools { flex: none; display: flex; align-items: center; gap: 14px; height: 32px; padding: 0 12px; color: var(--ed-mut); box-shadow: inset 0 -1px 0 var(--ed-line); }
.ud-ed__zoom { position: relative; width: 70px; height: 3px; border-radius: 2px; background: rgb(255 255 255 / .16); }
.ud-ed__zoom i { position: absolute; left: 40%; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #d4d4d8; }
.ud-ed__tracks { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr); }
.ud-ed__heads, .ud-ed__lanes { display: grid; grid-template-rows: 24px minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); row-gap: 5px; padding: 4px 0 8px; min-height: 0; }
.ud-ed__heads { box-shadow: inset -1px 0 0 var(--ed-line); }
.ud-ed__th { display: grid; place-items: center; color: var(--ed-mut); }
.ud-ed__tt { width: 14px; height: 12px; border-top: 2.5px solid var(--ed-mut); position: relative; }
.ud-ed__tt::after { content: ""; position: absolute; left: 5.5px; top: 0; width: 2.5px; height: 10px; background: var(--ed-mut); }
.ud-ed__lanes { position: relative; margin: 0 14px 0 8px; }
.ud-ed__ruler { position: relative; }
.ud-ed__ruler i { position: absolute; bottom: 4px; width: 1px; height: 5px; background: rgb(255 255 255 / .22); }
.ud-ed__ruler i.is-major { height: 10px; background: rgb(255 255 255 / .4); }
.ud-ed__lane { position: relative; min-height: 0; }
.ud-ed__lane--v { display: grid; grid-template-columns: minmax(52px, 10fr) minmax(0, 30fr) minmax(108px, 34fr) minmax(0, 26fr); column-gap: 2px; }
.ud-ed__lane--alt { display: grid; grid-template-columns: minmax(52px, 10fr) minmax(0, 90fr); }
.ud-ed__clip { position: relative; min-width: 0; height: 100%; border-radius: 6px; overflow: hidden; display: flex; align-items: flex-start; padding: 4px 8px;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .45s; }
.ud-ed__clip::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgb(255 255 255 / .16) 1.1px, transparent 1.5px) 0 0 / 5px 5px; pointer-events: none; }
.ud-ed__cl { position: relative; z-index: 2; background: inherit; margin: 0 -4px; padding: 0 4px; border-radius: 3px; font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.ud-ed__clip--hook { background: #FF7F32; color: #1b0d04; box-shadow: 0 0 18px -2px rgb(255 127 50 / .6); }
.ud-ed__clip--hook::before { background-image: radial-gradient(circle, rgb(0 0 0 / .16) 1.1px, transparent 1.5px); }
.ud-ed__clip--body { background: #3B4352; }
.ud-ed__clip--demo { background: #9CE7DD; color: #0e3a34; }
.ud-ed__clip--demo::before { background-image: radial-gradient(circle, rgb(0 0 0 / .13) 1.1px, transparent 1.5px); }
.ud-ed__clip--tail { background: #2B2E35; }
.ud-ed__clip--cap { width: 100%; gap: 10px; align-items: center; background: rgb(205 189 235 / .16); box-shadow: inset 0 0 0 1px rgb(205 189 235 / .3); color: #E6DDF7; padding: 0 8px; }
.ud-ed__clip--cap::before { display: none; }
.ud-ed__words { flex: 1; min-width: 0; display: flex; gap: 3px; height: 9px; }
.ud-ed__words i { flex: 1 1 0; border-radius: 2px; background: rgb(205 189 235 / .55); }
.ud-ed__clip--aud { width: 100%; padding: 0; background: rgb(141 216 243 / .08); box-shadow: inset 0 0 0 1px rgb(141 216 243 / .2); }
.ud-ed__clip--aud::before { display: none; }
.ud-ed__wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.ud-ed__clip--alt { grid-column: 1; grid-row: 1; height: 46%; padding: 0; background: #FF7F32; opacity: 0; transform: translateY(60%); }
.ud-ed__clip--alt1 { align-self: end; }
.ud-ed__clip--alt2 { align-self: start; }
.ud-ed.is-b2 .ud-ed__clip--alt { opacity: .78; transform: none; }
.ud-ed.is-b2 .ud-ed__clip--alt2 { opacity: .55; transition-delay: .15s; }
/* the halfway marker and the playhead */
.ud-ed__half { position: absolute; z-index: 1; left: 50%; top: 2px; bottom: 6px; width: 0; border-left: 2px dashed rgb(255 255 255 / .62); pointer-events: none; }
.ud-ed__hl { position: absolute; left: 6px; top: 0; height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 5px; background: #2E2F35; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 1px #45464e; }
.ud-ed__phead { position: absolute; z-index: 1; left: 6%; top: 0; bottom: 4px; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px rgb(255 255 255 / .6); pointer-events: none; animation: ud-play 9s linear infinite; }
.ud-ed__phead i { position: absolute; left: -5px; top: 0; width: 12px; height: 12px; border-radius: 2px 2px 6px 6px; background: #fff; }
@keyframes ud-play { from { left: 0%; } to { left: 100%; } }
/* the Halfway flag belongs to beat 1; the dashed line stays */
.ud-ed__hl { transition: opacity .4s; }
.ud-ed.is-b2 .ud-ed__hl { opacity: 0; }
/* beat 1: the clips fall into the tracks */
.ud-ed:not(.is-b1) .ud-ed__lane--v .ud-ed__clip, .ud-ed:not(.is-b1) .ud-ed__lane--c .ud-ed__clip, .ud-ed:not(.is-b1) .ud-ed__lane--a .ud-ed__clip { opacity: 0; transform: translateY(-36px); }
.ud-ed:not(.is-b1) .ud-ed__half { opacity: 0; }
.ud-ed__half { transition: opacity .5s .9s; }
.ud-ed__lane--v .ud-ed__clip:nth-child(2) { transition-delay: .12s; } .ud-ed__lane--v .ud-ed__clip:nth-child(3) { transition-delay: .24s; } .ud-ed__lane--v .ud-ed__clip:nth-child(4) { transition-delay: .34s; }
.ud-ed__lane--c .ud-ed__clip { transition-delay: .46s; } .ud-ed__lane--a .ud-ed__clip { transition-delay: .56s; }
/* sizes: the editor is a container; small windows drop the side panels, then the top bar and tool row */
@container (max-width: 720px) { .ud-ed__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 30fr) minmax(0, 1fr); } .ud-ed__media, .ud-ed__insp { visibility: hidden; } .ud-ed__sheet { left: 0; } }
@container (max-height: 470px) { .ud-ed__top { display: none; } .ud-ed__tl { height: 56%; } .ud-ed__tools { height: 26px; } .ud-ed__shapes { gap: 18px; } .ud-ed__sheet { gap: 6px; padding: 8px 12px 10px; } .ud-ed__chk { padding: 5px 10px; font-size: 15px; } .ud-ed__checks { gap: 5px; } }
@container (max-height: 330px) { .ud-ed__tools { display: none; } .ud-ed__tl { height: 64%; } .ud-ed__trans { display: none; } .ud-ed__heads, .ud-ed__lanes { row-gap: 3px; padding: 2px 0 4px; grid-template-rows: 22px minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); } .ud-ed__clip { padding: 2px 6px; } .ud-ed__cl { font-size: 14px; } .ud-ed__shead { display: none; } .ud-ed__chk { padding: 3px 8px; gap: 8px; font-size: 14px; } .ud-ed__tick { width: 20px; height: 20px; } .ud-ed__shape b { font-size: 14px; } .ud-ed__shape { gap: 4px; } .ud-ed__shape--t .ud-ed__sbox { height: 21cqh; } .ud-ed__shape--s .ud-ed__sbox { height: 15cqh; } .ud-ed__screen { padding: 6px 0; } }
@container (max-height: 330px) { .ud-ed.is-b3 .ud-ed__sheet { bottom: -26px; max-height: none; } }
@container (max-width: 430px) { .ud-ed__tracks { grid-template-columns: 28px minmax(0, 1fr); } .ud-ed__lanes { margin: 0 8px 0 6px; } .ud-ed__cl { font-size: 14px; } .ud-ed__clip { padding: 3px 6px; } .ud-ed__lane--v { grid-template-columns: minmax(46px, 10fr) minmax(0, 30fr) minmax(100px, 34fr) minmax(0, 26fr); } .ud-ed__lane--alt { grid-template-columns: minmax(46px, 10fr) minmax(0, 90fr); } }
@media (max-width: 959px), (max-height: 599px) { .ud-ed__chk { font-size: 15px; } }
@media (min-width: 960px) and (min-height: 600px) { .ud-ed-scene .ug--split { grid-template-columns: minmax(0, .32fr) minmax(0, .68fr); } }

/* ---------- 27 l8-proof: 250 messages, 6 creators (positions come from layoutBoard() as custom properties) ---------- */
.ud-mg__board { position: relative; height: 100%; min-height: 0; }
.ud-mg__glab, .ud-mg__klab { font-size: clamp(16px, 1.5vw, 22px); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; color: var(--s-fg); }
.ud-mg__glab { position: absolute; left: 0; top: 0; }
.ud-mg__grid { position: absolute; left: 0; top: var(--lh, 36px); width: var(--gw, 60%); display: grid; grid-template-columns: repeat(var(--cols, 25), var(--cw, 16px)); gap: 4px; transform-origin: 0 0; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.ud-mg__b { position: relative; display: block; aspect-ratio: 1.2; border-radius: 34%; background: radial-gradient(circle, #A9A49C 1.05px, transparent 1.45px) 0 0 / 3.6px 3.6px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08);
  opacity: 0; transform: scale(.4); transition: opacity .35s var(--d), transform .45s cubic-bezier(.2,.8,.2,1) var(--d), background-color .5s; }
.ud-mg__b::after { content: ""; position: absolute; left: 16%; bottom: -14%; width: 26%; height: 30%; background: inherit; clip-path: polygon(0 0, 100% 0, 0 100%); }
.ud-mg__b.is-pale { background-color: #F6DCCB; background-image: radial-gradient(circle, #D9A587 1.05px, transparent 1.45px); }
.ud-mg__b.is-keep { background-color: #FFE3D0; background-image: radial-gradient(circle, #FF7F32 1.2px, transparent 1.6px); box-shadow: inset 0 0 0 1.5px #FF7F32; }
.ud-mg__board.is-on .ud-mg__b { opacity: 1; transform: none; }
.ud-mg__keep { position: absolute; left: var(--k1x, 70%); top: var(--k1y, 36px); width: var(--kw, 200px); display: grid; gap: 14px; align-content: start; transition: left .9s cubic-bezier(.2,.8,.2,1), top .9s cubic-bezier(.2,.8,.2,1); }
.ud-mg__kset { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; width: min(100%, 190px); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.ud-mg__k { position: relative; display: block; aspect-ratio: 1.2; border-radius: 34%; background: #FFF1E7 radial-gradient(circle, #FF7F32 1.9px, transparent 2.4px) 0 0 / 6px 6px; box-shadow: 0 0 0 2px #FF7F32, 0 10px 24px -8px rgb(255 127 50 / .65);
  opacity: 0; transform: translate(var(--fx, 0), var(--fy, 0)) scale(var(--fs, .2)); transition: transform .9s cubic-bezier(.2,.8,.2,1) calc(.9s + var(--j) * 90ms), opacity .3s calc(.9s + var(--j) * 90ms); }
.ud-mg__k::after { content: ""; position: absolute; left: 16%; bottom: -14%; width: 26%; height: 30%; background: inherit; clip-path: polygon(0 0, 100% 0, 0 100%); box-shadow: none; }
.ud-mg__board.is-on .ud-mg__k { opacity: 1; transform: none; }
.ud-mg__klab { display: block; max-width: 10em; color: #B2531A; opacity: 0; transition: opacity .5s 1.5s; }
.ud-mg__board.is-on .ud-mg__klab { opacity: 1; }
.ud-mg__board.is-narrow .ud-mg__keep { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; }
.ud-mg__board.is-narrow .ud-mg__kset { grid-template-columns: repeat(6, 26px); gap: 8px; width: auto; }
.ud-mg__board.is-narrow .ud-mg__klab { max-width: none; }
/* beat 2: the grid shrinks to the top left; the job card drops in under it */
.ud-mg__board.is-b2 .ud-mg__grid { transform: scale(var(--s2, .5)); }
.ud-mg__board.is-b2 .ud-mg__keep { left: var(--k2x); top: var(--k2y); }
.ud-mg__board.is-b2:not(.is-narrow) .ud-mg__kset { width: min(100%, 132px); gap: 9px 10px; }
.ud-mg__job { position: absolute; left: var(--jl, 0); right: 0; top: var(--jt, 50%); display: grid; gap: 14px; padding: 16px 18px 18px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #E4E2DD, 0 14px 34px -18px rgb(17 17 17 / .3);
  opacity: 0; visibility: hidden; transform: translateY(-30px); transition: opacity .5s .3s, transform .8s cubic-bezier(.2,.8,.2,1) .3s, top .9s cubic-bezier(.2,.8,.2,1), visibility 0s 1s; }
.ud-mg__board.is-b2 .ud-mg__job { opacity: 1; visibility: inherit; transform: none; transition: opacity .5s .3s, transform .8s cubic-bezier(.2,.8,.2,1) .3s, top .9s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.ud-mg__jhead { display: flex; align-items: center; gap: 10px; }
.ud-mg__jhead b { font-size: 17px; font-weight: 600; }
.ud-mg__jic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #F1EFEA; color: #444; }
.ud .ud-gb--light { background: #E7E4DE; margin-left: auto; width: 90px !important; }
.ud-mg__avs { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; justify-items: center; }
.ud-mg__av { display: block; max-width: 100%; transition: opacity .6s calc(1.1s + var(--j) * 60ms), transform 1s cubic-bezier(.4,0,.6,1) calc(1.1s + var(--j) * 60ms), filter .6s calc(1.1s + var(--j) * 60ms); }
.ud-mg__av .uk-av { max-width: 100%; height: auto !important; aspect-ratio: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #DDD; }
.ud-mg__board.is-b2 .ud-mg__av:not(.is-stay) { opacity: .22; filter: grayscale(1); transform: translate(2px, 12px) scale(.86); }
.ud-mg__av.is-stay .uk-av { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #FF7F32, 0 6px 16px -4px rgb(255 127 50 / .6); }
.ud-mg__week { display: flex; flex-direction: column; gap: 8px; }
.ud-mg__br { display: block; height: 10px; border: 2px solid #C9C4BB; border-top: 0; border-radius: 0 0 6px 6px; }
.ud-mg__week b { font-size: 16px; font-weight: 600; color: #8A3F27; }
@media (max-width: 959px), (max-height: 599px) {
  .ud-mg__glab, .ud-mg__klab { font-size: 15px; } .ud-mg__jhead b, .ud-mg__week b { font-size: 15px; }
  .ud-mg__job { padding: 10px 12px 12px; gap: 8px; } .ud-mg__jic { display: none; } .ud-mg__week { gap: 4px; } .ud-mg__avs { gap: 4px; }
}

/* ---------- 28 l8-how: one Instagram phone, three screens ---------- */
.ud-ig__host { position: relative; height: 100%; min-height: 0; }
.ud-ig__host > .ud-ig__ph { position: absolute; inset: 0; opacity: 0; transform: translateX(10%); transition: opacity .5s, transform .7s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.ud-ig__host > .ud-ig__ph.is-past { transform: translateX(-10%); }
.ud-ig__host > .ud-ig__ph.is-cur { opacity: 1; transform: none; }
.ud-ig .uk-dm__row.ud-pending { opacity: 0; }
.ud-ig .uk-dm__handle { white-space: nowrap; overflow-wrap: normal; }
.ud-ig .uk-pf__handle { white-space: nowrap; }
.ud-ig .uk-dm__bar { gap: 8px; }
/* ---------- ryze-2: the Claude window ---------- */
@media not ((max-width: 759px) and (orientation: portrait)) { .scene .ud-r2-x, .ud-r2 .ug--split { grid-template-columns: minmax(0, .33fr) minmax(0, .67fr); } }
.ud-r2 .ug-side { align-self: start; gap: 18px; }
.ud-r2__mark { justify-self: start; }
.ud-r2__link { justify-self: start; font-size: 16px; font-weight: 500; color: #C2410C; text-decoration: underline; text-underline-offset: 3px; }
.ud-r2__beam { position: absolute; z-index: 1; height: 2px; margin-top: -1px; pointer-events: none; border-radius: 2px;
  background: linear-gradient(90deg, rgb(255 127 50 / .9), rgb(255 160 100 / .5) 60%, rgb(255 127 50 / .15));
  box-shadow: 0 0 12px 2px rgb(255 127 50 / .35); transition: opacity .4s; }
.ud-cl__wrap { position: relative; z-index: 2; height: 100%; display: flex; }
.ud-cl { --cl-bg: #FAF9F5; --cl-fg: #1F1E1D; --cl-mut: #73726C; --cl-line: #E5E2D8; --cl-bar: #E7E4DA; --cl-acc: #C96442;
  position: relative; flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; background: var(--cl-bg); color: var(--cl-fg); border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgb(31 30 29 / .06), 0 34px 70px -36px rgb(31 30 29 / .4), inset 0 0 0 1px var(--cl-line); font-family: var(--font-sans); }
.ud-cl__bar { flex: none; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: #F0EEE6; box-shadow: inset 0 -1px 0 var(--cl-line); }
.ud-cl__dots { display: flex; gap: 7px; } .ud-cl__dots i { width: 11px; height: 11px; border-radius: 50%; background: #DAD6CB; }
.ud-cl__barT { width: 110px; height: 8px; border-radius: 4px; background: #E0DCD1; margin: 0 auto; }
.ud-cl__ex-tag { flex: none; }
.ud-cl__main { flex: 1; min-height: 0; display: flex; }
.ud-cl__rail { flex: none; width: 52px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px 0; box-shadow: inset -1px 0 0 var(--cl-line); color: var(--cl-mut); }
.ud-cl__ri { display: grid; } .ud-cl__ri--new { width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--cl-acc); color: #fff; }
.ud-cl__av { margin-top: auto; width: 28px; height: 28px; border-radius: 50%; background: #CDBDEB; }
.ud-cl__views { position: relative; flex: 1; min-width: 0; overflow: hidden; container-type: size; }
.ud-cl__view { position: absolute; inset: 0; display: flex; transition: transform .7s cubic-bezier(.2,.75,.2,1), opacity .5s, visibility 0s; }
.ud-cl__view.is-off { visibility: hidden; opacity: 0; transition: transform .7s cubic-bezier(.2,.75,.2,1), opacity .5s, visibility 0s .7s; }
.ud-cl__view--set.is-off { transform: translateX(-30%); }
.ud-cl__view--chat.is-off { transform: translateX(30%); }
.ud-cl__bars { display: grid; gap: 8px; flex: 1; min-width: 0; }
.ud-cl__bars i { display: block; height: 8px; border-radius: 4px; background: var(--cl-bar); }
/* settings */
.ud-cl__nav { flex: none; width: 34%; max-width: 230px; display: flex; flex-direction: column; gap: 4px; padding: 20px 12px; box-shadow: inset -1px 0 0 var(--cl-line); }
.ud-cl__nav-h { font-size: 20px; font-weight: 600; letter-spacing: -.01em; padding: 0 8px 12px; }
.ud-cl__nav-i { display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 15px; font-weight: 500; transition: background .4s; }
.ud-cl__nav-i > span { display: grid; color: var(--cl-mut); }
.ud-cl__nb { display: block; height: 8px; border-radius: 4px; background: var(--cl-bar); }
.ud-cl__nav-i--on { background: #ECE9DF; }
.ud-cl__panel { position: relative; flex: 1; min-width: 0; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.ud-cl__crumb { display: none; align-items: center; gap: 6px; font-size: 15px; color: var(--cl-mut); } .ud-cl__crumb b { color: var(--cl-fg); font-weight: 600; } .ud-cl__crumb span { display: inline-grid; }
.ud-cl__list { display: grid; gap: 10px; transition: opacity .4s; }
.ud-cl__lhead { display: flex; align-items: center; gap: 12px; padding-bottom: 6px; }
.ud-cl__bars--h i { height: 12px; background: #DCD8CD; }
.ud-cl__addbtn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px #D6D2C6; font-size: 15px; font-weight: 500; background: #fff; }
.ud-cl__addbtn span { display: grid; }
.ud-cl__row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--cl-line); }
.ud-cl__rowic { flex: none; width: 30px; height: 30px; border-radius: 8px; background: #EFECE3; }
.ud-cl__tog { flex: none; width: 34px; height: 20px; border-radius: 10px; background: #E2DED3; }
.ud-cl__panel.is-dlg .ud-cl__list { display: none; }
.ud-cl__dlg { display: none; gap: 14px; padding: 22px; border-radius: 14px; background: #fff; box-shadow: 0 18px 50px -20px rgb(31 30 29 / .35), inset 0 0 0 1px var(--cl-line); }
.ud-cl__panel.is-dlg .ud-cl__dlg { display: grid; animation: ud-pop .5s cubic-bezier(.2,.75,.2,1) both; }
@keyframes ud-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.ud-cl__dlg-t { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.ud-cl__field { display: grid; gap: 7px; }
.ud-cl__bars--lab { flex: none; } .ud-cl__bars--lab i { height: 7px; background: #DEDACF; }
.ud-cl__input { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px #D6D2C6; background: #FDFCFA; font-size: 15px; }
.ud-cl__val { white-space: nowrap; overflow: hidden; }
.ud-cl__val--url { font-variant-numeric: tabular-nums; }
.ud-cl__dlg-f { display: flex; align-items: center; gap: 10px; padding-top: 4px; }
.ud-cl__time { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font-size: 14px; font-weight: 500; color: var(--cl-mut); }
.ud-cl__time span { display: grid; }
.ud-cl__btn-grey { width: 72px; height: 34px; border-radius: 8px; box-shadow: inset 0 0 0 1px #D6D2C6; }
.ud-cl__btn-ok { display: grid; place-items: center; width: 72px; height: 34px; border-radius: 8px; background: var(--cl-fg); color: #fff; }
/* chat */
.ud-cl__view--chat { flex-direction: column; }
.ud-cl__thread { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; padding: 22px clamp(16px, 4cqw, 40px) 8px; overflow: hidden; }
.ud-cl__ex { display: grid; gap: 16px; }
.ud-cl__ex.is-gone { display: none; }
.ud-cl__you { justify-self: end; max-width: 84%; padding: 11px 15px; border-radius: 14px; background: #EFECE3; font-size: 16px; line-height: 1.45; }
.ud-cl__bot { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.ud-cl__spark { display: grid; padding-top: 2px; }
.ud-cl__body { display: grid; gap: 12px; min-width: 0; }
.ud-cl__tool { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; background: #F1EFE7; box-shadow: inset 0 0 0 1px var(--cl-line); max-width: 300px; }
.ud-cl__ga { display: block; }
.ud-cl__tool .ud-cl__bars { flex: 1; }
.ud-cl__tok { display: grid; color: #3B8E6A; }
.ud-cl__table { display: grid; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--cl-line); }
.ud-cl__tr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 10px 14px; font-size: 15px; font-variant-numeric: tabular-nums; }
.ud-cl__tr + .ud-cl__tr { box-shadow: inset 0 1px 0 var(--cl-line); }
.ud-cl__td--name { font-weight: 600; overflow-wrap: anywhere; }
.ud-cl__card { display: grid; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--cl-line); }
.ud-cl__card-h { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.ud-cl__card-h b { font-weight: 600; }
.ud-cl__appr { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #F1EFE7; box-shadow: inset 0 0 0 1px var(--cl-line); }
.ud-cl__bars--ap { flex: 1; }
.ud-cl__edit, .ud-cl__approve { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.ud-cl__edit { background: #fff; box-shadow: inset 0 0 0 1px #D6D2C6; }
.ud-cl__approve { background: var(--cl-fg); color: #fff; }
.ud-cl__comp { flex: none; margin: 6px clamp(14px, 4cqw, 40px) 16px; display: grid; gap: 8px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px -4px rgb(31 30 29 / .15), inset 0 0 0 1px #DDD9CE; }
.ud-cl__field2 { min-height: 22px; font-size: 16px; line-height: 1.4; }
.ud-cl__typed.ug-typing::after { background: var(--cl-acc); }
.ud-cl__ctools { display: flex; align-items: center; gap: 8px; color: var(--cl-mut); }
.ud-cl__cb { display: grid; }
.ud-cl__send { margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--cl-acc); color: #fff; }
/* reveal steps inside the chat */
.ud-cl__you, .ud-cl__bot, .ud-cl__tool, .ud-cl__table, .ud-cl__tr, .ud-cl__card, .ud-cl__appr { transition: opacity .45s, transform .5s cubic-bezier(.2,.75,.2,1); }
.ud-cl__you:not(.is-on), .ud-cl__bot:not(.is-on), .ud-cl__tool:not(.is-on), .ud-cl__table:not(.is-on), .ud-cl__tr:not(.is-on), .ud-cl__card:not(.is-on), .ud-cl__appr:not(.is-on) { opacity: 0; transform: translateY(8px); visibility: hidden; }
.ud-cl__you:not(.is-on) { display: none; }
/* narrow or short windows: drop the nav column, the rail and optional rows, never cut a line */
@container (max-width: 520px) { .ud-cl__nav { display: none; } .ud-cl__crumb { display: flex; } .ud-cl__lhead .ud-cl__bars { display: none; } .ud-cl__btn-grey { display: none; } }
@container (max-height: 380px) { .ud-cl__bars--ans, .ud-cl__card .ud-cl__bars { display: none; } .ud-cl__thread { padding-top: 12px; } .ud-cl__ex { gap: 10px; } .ud-cl__dlg { gap: 9px; padding: 14px 16px; } .ud-cl__panel { padding: 12px 14px; gap: 8px; } .ud-cl__comp { margin-bottom: 10px; padding: 8px 12px; gap: 4px; } .ud-cl__comp:not(.is-typing) { display: none; } .ud-cl__nav-h { padding-bottom: 4px; } .ud-cl__nav { padding: 12px 10px; } }
@container (max-height: 300px) { .ud-cl__tool { display: none; } .ud-cl__ctools { display: none; } .ud-cl__dlg-t { font-size: 16px; } .ud-cl__input { min-height: 32px; } .ud-cl__bars--lab { display: none; } .ud-cl__dlg { gap: 7px; padding: 10px 12px; } .ud-cl__nav-i { height: 30px; } .ud-cl__card { padding: 10px 12px; } .ud-cl__appr { padding: 6px 8px; } }
@media (max-width: 959px), (max-height: 599px) {
  .ud-r2 .ug-side { gap: 10px; }
  .ud-r2__link { font-size: 15px; }
  .ud-cl__bar { height: 32px; } .ud-cl__rail { display: none; }
  .ud-cl__you, .ud-cl__field2, .ud-cl__card-h { font-size: 14px; } .ud-cl__tr, .ud-cl__nav-i, .ud-cl__input, .ud-cl__addbtn, .ud-cl__crumb, .ud-cl__edit, .ud-cl__approve { font-size: 14px; }
  .ud-cl__tr { padding: 7px 10px; } .ud-cl__edit, .ud-cl__approve { height: 30px; padding: 0 12px; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .ud-r2 .ug-side { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; align-items: center; max-width: none; }
  .ud-r2__mark { --rz-size: 46px !important; grid-row: 1 / span 2; }
  .ud-r2 .ud-r2__copy { grid-column: 2; } .ud-r2__link { grid-column: 2; }
  .ud-cl__dots { display: none; } .ud-cl__barT { margin: 0; }
  .ud-cl__thread { padding: 10px 12px 4px; } .ud-cl__comp { margin: 4px 10px 8px; }
}
@media (min-width: 960px) and (min-height: 600px) {
  .ud-cl__you, .ud-cl__field2 { font-size: 18px; }
  .ud-cl__tr { font-size: 17px; padding: 12px 16px; }
  .ud-cl__card-h { font-size: 18px; }
  .ud-cl__edit, .ud-cl__approve { font-size: 16px; height: 38px; padding: 0 18px; }
  .ud-cl__nav-i, .ud-cl__addbtn { font-size: 16px; }
  .ud-cl__nav-h { font-size: 22px; }
  .ud-cl__dlg-t { font-size: 22px; }
  .ud-cl__input { font-size: 17px; min-height: 46px; }
  .ud-cl__time { font-size: 15px; }
  .ud-cl__tool { height: 40px; }
}
@container (max-height: 240px) {
  .ud-cl__panel { padding: 8px 12px; gap: 6px; }
  .ud-cl__crumb { font-size: 14px; }
  .ud-cl__dlg { gap: 6px; padding: 8px 12px; border-radius: 10px; }
  .ud-cl__input { min-height: 30px; }
  .ud-cl__dlg-f { padding-top: 0; } .ud-cl__btn-ok { height: 30px; }
  .ud-cl__thread { padding: 8px 14px 6px; } .ud-cl__ex { gap: 8px; } .ud-cl__body { gap: 8px; }
  .ud-cl__you { max-width: 96%; padding: 8px 12px; }
  .ud-cl__card { padding: 8px 12px; } .ud-cl__card-h { gap: 8px; }
  .ud-cl__appr { padding: 5px 8px; } .ud-cl__edit, .ud-cl__approve { height: 28px; }
  .ud-cl__tr { padding: 6px 10px; }
}
/* the mark's glow halo reaches 46% past its box: keep that ring clear of text */
.ud-r2__mark { margin: calc(var(--rz-size) * .48) 0; }
/* compact: the mark takes its own column between the text and the window (100 px, or 76 px in the shortest frames) */
.ud-r2__col { flex: none; display: none; align-items: center; justify-content: center; }
.ud-r2--cmp .ud-r2__col { display: flex; padding: 0 22px 0 10px; }
.ud-r2--cmp .ud-r2__mark { --rz-size: 100px !important; margin: 0; }
.ud-r2--cmp .ud-r2__mark .rz-mark__halo { inset: -22%; } .ud-r2--cmp .ud-r2__mark .rz-mark__dots { inset: -15%; }
.ud-r2--cmp .ud-cl__wrap { align-items: stretch; }
@media (max-height: 400px) { .ud-r2--cmp .ud-r2__mark { --rz-size: 76px !important; } .ud-r2--cmp .ud-r2__col { padding: 0 18px 0 6px; } }
@media (max-width: 959px), (max-height: 599px) {
  .ud-r2.ud-r2--cmp .ug--split { grid-template-columns: minmax(0, .28fr) minmax(0, .72fr); column-gap: 18px; }
  .ud-r2 .ug-side { gap: 10px; }
  .ud-r2__link { white-space: nowrap; font-size: 15px; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .ud-r2 .ug-side { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 26px; row-gap: 6px; align-items: center; max-width: none; }
  .ud-r2__mark { --rz-size: 46px !important; grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .ud-r2 .ud-r2__copy { grid-column: 2; grid-row: 1; } .ud-r2__link { grid-column: 2; grid-row: 2; }
}
.ud-cl__ph { display: block; width: 46%; height: 8px; margin: 7px 0; border-radius: 4px; background: #ECE9E0; }
/* the shortest frames (640 x 360): no title bar, a 64 px mark, tight chat rows */
.ud-r2--tiny .ud-cl__bar { display: none; }
.ud-r2--tiny .ud-r2__mark { --rz-size: 64px !important; }
.ud-r2--tiny .ud-r2__col { padding: 0 16px 0 2px; }
.ud-r2--tiny .ug-side .ud-cl__ex-tag { justify-self: start; }
@container (max-height: 190px) {
  .ud-cl__thread { padding: 5px 10px 4px; } .ud-cl__ex { gap: 4px; } .ud-cl__body { gap: 4px; }
  .ud-cl__bot { grid-template-columns: minmax(0, 1fr); } .ud-cl__spark { display: none; }
  .ud-cl__you { max-width: 100%; padding: 5px 10px; line-height: 1.3; }
  .ud-cl__card { padding: 4px 10px; } .ud-cl__card-h { gap: 8px; }
  .ud-cl__appr { padding: 2px 6px; } .ud-cl__edit, .ud-cl__approve { height: 26px; }
  .ud-cl__tr { padding: 4px 8px; line-height: 1.25; }
  .ud-cl__panel { padding: 5px 10px; gap: 5px; }
  .ud-cl__dlg { gap: 5px; padding: 7px 10px; } .ud-cl__input { min-height: 26px; } .ud-cl__btn-ok { height: 24px; } .ud-cl__dlg-t { font-size: 15px; }
}
.ud-cl__card-h { align-items: flex-start; }
.ud-cl__card-h p { margin: 0; font-weight: 600; line-height: 1.38; }
.ud-cl__card-h .ud-cl__meta { margin-top: 1px; }
.ud-cl__td--name { white-space: nowrap; }
/* narrow windows: each row puts its name on one line and its two numbers under it */
@container (max-width: 380px) {
  .ud-cl__tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 0; column-gap: 12px; }
  .ud-cl__td--name { grid-column: 1 / -1; }
}
/* phones: the glowing mark (72 px) sits above the window */
.ud-r2--ph .ud-cl__wrap { flex-direction: column; }
.ud-r2--ph .ud-r2__col { display: flex; padding: 6px 0 12px; }
.ud-r2--ph .ud-r2__mark { --rz-size: 72px !important; margin: 0; }
.ud-r2--ph .ud-r2__mark .rz-mark__halo { inset: -22%; } .ud-r2--ph .ud-r2__mark .rz-mark__dots { inset: -15%; }
.ud-r2--ph .ud-cl { flex: 1; min-height: 0; }
@media (max-width: 759px) and (orientation: portrait) {
  .ud-r2.ud-r2--ph .ug-side { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 14px; row-gap: 4px; align-items: center; }
  .ud-r2.ud-r2--ph .ud-r2__copy { grid-column: 1 / -1; grid-row: 1; }
  .ud-r2.ud-r2--ph .ud-r2__link { grid-column: 1; grid-row: 2; }
  .ud-r2.ud-r2--ph .ug-side .ud-cl__ex-tag { grid-column: 2; grid-row: 2; }
  .ud-r2--ph .ud-cl__comp, .ud-r2--ph .ud-cl__card .ud-cl__bars, .ud-r2--ph .ud-cl__bars--ans { display: none; }

}
/* round 5: on desktop the Ryze mock scenes put their text directly under the title and the glowing logo below it */
@media (min-width: 960px) and (min-height: 600px) {
  .ud-r2:not(.ud-r2--cmp):not(.ud-r2--ph):not(.ud-r2--tiny) .ug-side > .ud-r2__copy { order: 1; }
  .ud-r2:not(.ud-r2--cmp):not(.ud-r2--ph):not(.ud-r2--tiny) .ug-side > .ud-r2__link { order: 2; }
  .ud-r2:not(.ud-r2--cmp):not(.ud-r2--ph):not(.ud-r2--tiny) .ug-side > .ud-r2__mark { order: 3; }
}

/* ---------- ryze-2 additions: the setup flow, the creator ranking and the paused ad ---------- */
.ud-cl__crumb { display: flex; }
.ud-cl__nav-h { display: block; width: 52%; height: 12px; margin: 4px 8px 14px; border-radius: 6px; background: #DCD8CD; }
.ud-cl__panel.is-dlg .ud-cl__dlg { display: grid; }
.ud-cl__go { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px #D6D2C6; color: var(--cl-fg); font-size: 15px; font-weight: 600; transition: background-color .45s, color .45s, box-shadow .45s; }
.ud-cl__gok { display: none; }
.ud-cl__panel.is-add .ud-cl__go--add, .ud-cl__panel.is-conn .ud-cl__go--conn, .ud-cl__panel.is-allow .ud-cl__go--allow { background: var(--cl-fg); color: #fff; box-shadow: 0 0 0 3px rgb(255 127 50 / .35), 0 0 18px rgb(255 127 50 / .45); }
.ud-cl__panel.is-add .ud-cl__go--add .ud-cl__gok, .ud-cl__panel.is-conn .ud-cl__go--conn .ud-cl__gok, .ud-cl__panel.is-allow .ud-cl__go--allow .ud-cl__gok { display: grid; color: #FFB07A; }
.ud-cl__flow { position: relative; display: none; gap: 10px; }
.ud-cl__panel.is-add .ud-cl__flow { display: grid; }
.ud-cl__crow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--cl-line); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s cubic-bezier(.2,.75,.2,1); }
.ud-cl__panel.is-conn .ud-cl__crow { opacity: 1; transform: none; }
.ud-cl__crow .ud-cl__bars { flex: 1; }
.ud-cl__cmark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #17120F; }
.ud-cl__sheet { position: relative; justify-self: end; width: min(280px, 78%); margin-top: -2px; display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 22px 50px -18px rgb(31 30 29 / .45), inset 0 0 0 1px var(--cl-line); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .4s, transform .5s cubic-bezier(.2,.75,.2,1); }
.ud-cl__panel.is-allow .ud-cl__sheet { opacity: 1; transform: none; }
.ud-cl__shead { display: flex; align-items: center; gap: 8px; color: var(--cl-mut); }
.ud-cl__shead .rz-mark { background: #17120F; border-radius: 7px; padding: 3px; }
.ud-cl__shx { display: grid; }
.ud-cl__bars--sheet i { height: 7px; }
.ud-cl__sfoot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ud-cl__sfoot .ud-cl__btn-grey { width: 60px; height: 30px; }
.ud-cl__panel .ud-cl__dlg-f .ud-cl__go { margin-left: 0; }
.ud-cl__meta { display: inline-grid; place-items: center; color: #0866FF; }
/* the ranking table: creator, spend, cost per customer */
.ud-cl__tr { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; transition: background-color .5s, opacity .45s, transform .5s cubic-bezier(.2,.75,.2,1); }
.ud-cl__tr--h { padding-top: 10px; padding-bottom: 8px; } .ud-cl__tr--h .ud-cl__bars i { height: 7px; background: #D8D4C8; } .ud-cl__tr--h .ud-cl__bars + .ud-cl__bars { justify-items: end; }
.ud-cl__td--name { display: flex; align-items: center; gap: 8px; }
.ud-cl__td--num { text-align: right; }
.ud-cl__td--cpc { font-weight: 600; }
.ud-cl__tr--best { background: #E4F7F3; } .ud-cl__tr--best .ud-cl__td--cpc { color: #1C6A60; }
.ud-cl__tr--worst { background: #FBEDE9; } .ud-cl__tr--worst .ud-cl__td--cpc { color: #8E3F2E; }
/* the paused ad card */
.ud-cl__ad { grid-template-columns: auto minmax(0, 1fr); align-items: stretch; gap: 14px; }
.ud-cl__adth { position: relative; display: block; width: clamp(34px, min(13cqw, 15cqh), 92px); aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--cl-line); }
.ud-cl__adth .uk-thumb { display: block; width: 100%; height: 100%; } .ud-cl__adth .uk-thumb canvas { width: 100%; height: 100%; display: block; }
.ud-cl__adplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(0 0 0 / .45); color: #fff; }
.ud-cl__adinfo { display: grid; gap: 10px; align-content: center; min-width: 0; }
.ud-cl__adhead { display: flex; align-items: center; gap: 8px; } .ud-cl__adhead .ud-cl__bars { flex: 1; } .ud-cl__adname i { height: 10px; background: #DCD8CD; }
.ud-cl__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ud-cl__pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: #F3F1EA; box-shadow: inset 0 0 0 1px #E2DCCB; font-size: 15px; font-weight: 600; white-space: nowrap; }
.ud-cl__pill--paused { color: #6B5F3F; } .ud-cl__pill--paused::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #C9A227; }
@media (max-width: 959px), (max-height: 599px) { .ud-cl__go, .ud-cl__pill { font-size: 14px; } .ud-cl__go { height: 30px; padding: 0 10px; } .ud-cl__pill { height: 26px; } }
@media (min-width: 960px) and (min-height: 600px) { .ud-cl__go { font-size: 16px; height: 38px; } .ud-cl__pill { font-size: 16px; } }
@container (max-height: 380px) { .ud-cl__adbars { display: none; } .ud-cl__crow { padding: 6px 10px; } .ud-cl__sheet { gap: 6px; padding: 8px 10px; } .ud-cl__tr--h { display: none; } }
@container (max-height: 300px) { .ud-cl__bars--sheet { display: none; } .ud-cl__adhead { display: none; } }

/* ---------- 26 l8-why: the night sea ---------- */
.ud-sea__two { display: grid; gap: 10px; }
/* compact frames: a narrower text column leaves the 3D room beside it */
@media (max-width: 959px), (max-height: 599px) {
  .ud-cd .ug-side, .ud-pp .ug-side, .ud-sea .ug-side { max-width: min(20em, 100%); }
  .ud-cd .ug-t, .ud-pp .ug-t, .ud-sea .ug-t { max-width: min(100%, 17em); }
}
@media (max-width: 759px) and (orientation: portrait) {
  .ud-cd .ug-side, .ud-pp .ug-side, .ud-sea .ug-side, .ud-cd .ug-t, .ud-pp .ug-t, .ud-sea .ug-t { max-width: 100%; }
}

/* l8-how in short or narrow landscape frames: the phone shows its top part, larger, fading out at the bottom of the frame */
@media (max-width: 959px) and (orientation: landscape), (max-height: 599px) and (orientation: landscape) {
  .ud-ig__host { overflow: hidden; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
  .ud-ig__host > .ud-ig__ph { bottom: auto; height: 205%; }
  .ud-ig .uk-phone-fit { place-items: start center; }
  .ud-ig .uk-dm__hero { display: none; }
  .ud-ig .uk-dm__thread { justify-content: flex-start; }
  .ud-ig .uk-dm__bar .uk-i:nth-last-child(-n+2), .ud-ig .uk-pf__bar > .uk-i:last-child { display: none; }
}
@media (max-height: 599px) and (orientation: landscape), (max-width: 959px) and (orientation: landscape) { .ud-ig .uk-pf__bio, .ud-ig .uk-pf__find { display: none; } }
@media (max-height: 400px) and (orientation: landscape) { .ud-ig .uk-pf__head { display: none; } .ud-ig__host > .ud-ig__ph { height: 190%; } }
/* short landscape frames: the phone takes the right column from the top, beside the title */
@media (max-width: 959px) and (orientation: landscape), (max-height: 599px) and (orientation: landscape) {
  .ud-ig .ug--split { grid-template-columns: minmax(0, .56fr) minmax(0, .44fr); grid-template-rows: auto minmax(0, 1fr); }
  .ud-ig .ug--split .ug-t { grid-column: 1; }
  .ud-ig .ug--split .ug-vis { grid-column: 2; grid-row: 1 / -1; }
  .ud-ig__host > .ud-ig__ph { height: 165%; }
}
@media (max-height: 400px) and (orientation: landscape) { .ud-ig__host > .ud-ig__ph { height: 165%; } }

/* short windows: the setup path as one row (Add, then Connect, then Allow), the clock chip beside the breadcrumb */
.ud-cl__panel.is-short .ud-cl__crumb { gap: 6px; }
.ud-cl__panel.is-short .ud-cl__crumb .ud-cl__time { margin-left: auto; margin-right: 0; }
.ud-cl__panel.is-short .ud-cl__dlg-f { display: none; }
.ud-cl__panel.is-short.is-dlg .ud-cl__flow { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.ud-cl__panel.is-short .ud-cl__crow, .ud-cl__panel.is-short .ud-cl__sheet { display: flex; align-items: center; gap: 8px; width: auto; margin: 0; padding: 0; background: none; box-shadow: none; justify-self: auto; }
.ud-cl__panel.is-short .ud-cl__crow > .ud-cl__bars, .ud-cl__panel.is-short .ud-cl__sheet > .ud-cl__bars, .ud-cl__panel.is-short .ud-cl__shead, .ud-cl__panel.is-short .ud-cl__sfoot .ud-cl__btn-grey { display: none; }
.ud-cl__panel.is-short .ud-cl__sfoot { display: contents; }
.ud-cl__panel.is-short .ud-cl__crow::before, .ud-cl__panel.is-short .ud-cl__sheet::before { content: ""; flex: none; width: 7px; height: 7px; margin: 0 2px 0 0; border-top: 2px solid #A9A497; border-right: 2px solid #A9A497; transform: rotate(45deg); }
.ud-cl__panel.is-short .ud-cl__cmark { width: 26px; height: 26px; border-radius: 7px; }
.ud-cl__panel.is-short .ud-cl__cmark .rz-mark { --rz-size: 16px !important; }
.ud-cl__panel.is-short .ud-cl__go { height: 30px; padding: 0 10px; font-size: 14px; }
.ud-cl__panel.is-short .ud-cl__crumb .ud-cl__time { display: inline-flex; white-space: nowrap; }
.ud-cl__panel.is-short .ud-cl__crumb .ud-cl__time span { display: grid; }
.ud-cl__panel.is-short .ud-cl__cmark { display: none; }
.ud-cl__panel.is-short .ud-cl__bars--lab { display: none; }
.ud-cl__panel.is-short .ud-cl__dlg { gap: 7px; padding: 10px 12px; }
.ud-cl__panel.is-short .ud-cl__input { min-height: 30px; }
.ud-cl__panel.is-short .ud-cl__dlg-t { font-size: 16px; }
@container (max-height: 240px) { .ud-cl__panel.is-short .ud-cl__go { height: 26px; } .ud-cl__panel.is-short .ud-cl__input { min-height: 26px; } .ud-cl__panel.is-short .ud-cl__dlg { gap: 5px; padding: 7px 10px; } .ud-cl__panel.is-short .ud-cl__dlg-t { font-size: 15px; } }
.ud-r2--ph .ud-r2__mark { --rz-size: 54px !important; }
.ud-mg__board.is-b2.is-side .ud-mg__kset { grid-template-columns: repeat(6, 18px); gap: 6px; width: auto; }
.ud-mg__board.is-b2.is-side .ud-mg__keep { gap: 8px; }
@container (max-height: 330px) { .ud-ed.is-b3 .ud-ed__sheet { bottom: -40px; } .ud-ed__checks { gap: 3px; } .ud-ed__tick { width: 18px; height: 18px; } }
/* phones: the same cropped, larger phone as in short frames */
@media (max-width: 759px) and (orientation: portrait) {
  .ud-ig__host { overflow: hidden; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
  .ud-ig__host > .ud-ig__ph { bottom: auto; height: 172%; }
  .ud-ig .uk-phone-fit { place-items: start center; }
  .ud-ig .uk-dm__hero, .ud-ig .uk-pf__bio, .ud-ig .uk-pf__find { display: none; }
  .ud-ig .uk-dm__thread { justify-content: flex-start; }
  .ud-ig .uk-dm__bar .uk-i:nth-last-child(-n+2), .ud-ig .uk-pf__bar > .uk-i:last-child { display: none; }
}
/* ryze-2 on phones and narrow windows: one column chat, the ranking keeps one line per creator */
.ud-r2--ph .ud-cl__bot { grid-template-columns: minmax(0, 1fr); } .ud-r2--ph .ud-cl__spark, .ud-r2--ph .ud-cl__tool { display: none; }
.ud-r2--ph .ud-cl__thread { padding: 8px 10px 6px; } .ud-r2--ph .ud-cl__ex { gap: 6px; } .ud-r2--ph .ud-cl__body { gap: 6px; }
.ud-r2--ph .ud-cl__you { max-width: 100%; padding: 6px 10px; line-height: 1.32; }
.ud-r2--ph .ud-cl__tr--h, .ud-r2--ph .ud-cl__bars--ans, .ud-r2--ph .ud-cl__comp { display: none; }
@container (max-width: 380px) {
  .ud-cl__tr { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .7fr); column-gap: 8px; padding: 6px 10px; }
  .ud-cl__td--name { grid-column: auto; }
  .ud-cl__td--name .uk-av { display: none; }
}
@container (max-height: 330px) {
  .ud-ed.is-b3 .ud-ed__tl { height: 58%; }
  .ud-ed.is-b3 .ud-ed__heads, .ud-ed.is-b3 .ud-ed__lanes { grid-template-rows: 0 minmax(0, .6fr) minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, .8fr); }
  .ud-ed.is-b3 .ud-ed__sheet { bottom: -6px; }
  .ud-ed.is-b3 .ud-ed__ruler, .ud-ed.is-b3 .ud-ed__half .ud-ed__hl { visibility: hidden; }
  .ud-ed__chk { padding: 2px 8px; min-height: 0; line-height: 1.25; }
}
/* short landscape frames: the editor takes the right column from the top, beside the title */
@media (max-width: 959px) and (orientation: landscape), (max-height: 599px) and (orientation: landscape) {
  .ud-ed-scene .ug--split { grid-template-columns: minmax(0, .42fr) minmax(0, .58fr); grid-template-rows: auto minmax(0, 1fr); }
  .ud-ed-scene .ug--split .ug-t { grid-column: 1; }
  .ud-ed-scene .ug--split .ug-vis { grid-column: 2; grid-row: 1 / -1; }
}
@media (max-height: 400px) and (orientation: landscape) { .ud-ig .uk-dm__bar .uk-av { display: none; } .ud-ig .ug--split { grid-template-columns: minmax(0, .53fr) minmax(0, .47fr); } }
@media (max-width: 759px) and (orientation: portrait) { .ud-cd .ud-lab { white-space: normal; max-width: 8.6em; line-height: 1.2; } }
/* narrow phone screens at any frame size: drop the call icons, then the avatar, so the handle never clips */
@container (max-width: 250px) { .ud-ig .uk-dm__bar .uk-i:nth-last-child(-n+2), .ud-ig .uk-pf__bar > .uk-i:last-child { display: none; } }
@container (max-width: 190px) { .ud-ig .uk-dm__bar .uk-av { display: none; } }
/* ryze-2: shorter chat windows give the paused-ad card less height so the approval bar stays in view */
@container (max-height: 460px) { .ud-cl__adbars { display: none; } .ud-cl__adth { width: clamp(34px, min(11cqw, 11cqh), 70px); } }
@container (min-height: 300px) and (max-height: 460px) { .ud-cl__ex { gap: 12px; } .ud-cl__body { gap: 10px; } }
@media (max-width: 759px) and (orientation: portrait) { .ud-ig .uk-pf__head { display: none; } }

/* ---------- audit fixes (28 Nov) ---------- */
/* l7-proof: opaque chips over 3D; on compact and phone the salary sits in the text column */
.ud-pp .ud-lab--pill { background: #0b0c10; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16), 0 6px 18px rgb(0 0 0 / .5); }
.ud-pp__pay { display: none; margin: 6px 0 0; font-size: 17px; font-weight: 600; color: #FFC49A; }
@media (max-width: 959px), (max-height: 599px) { .ud-pp__pay { display: block; font-size: 15px; } }
/* l8-proof: the creators label never wider than its column */
.ud-mg__klab { max-width: min(10em, 100%); }
.ud-mg__keep { max-width: calc(100% - var(--k1x, 0px)); }
.ud-mg__kset { max-width: 100%; }
/* l8-how: real follower handles on the lit rows */
.ud-ig .uk-pf__row.is-lit .uk-pf__names b { color: #0C1014; white-space: nowrap; }
/* ryze-2: the glowing mark on a dark badge (light slide); --bz is the mark size, the badge is 1.5 times it */
.ud-r2__badge { --bz: 78px; position: relative; display: inline-grid; place-items: center; width: calc(var(--bz) * 1.5); height: calc(var(--bz) * 1.5); border-radius: 30%;
  background: radial-gradient(circle at 50% 42%, #2b1c12 0, #141110 62%, #0d0c0b 100%); box-shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 0 36px 4px rgb(255 127 50 / .38), 0 18px 34px -14px rgb(0 0 0 / .55); }
.ud-r2__badge > .rz-mark { --rz-size: var(--bz) !important; }
.ud-r2__badge.ud-r2__mark { margin: 6px 0; }
.ud-r2__badge .rz-mark__halo { inset: -16% !important; } .ud-r2__badge .rz-mark__dots { inset: -8% !important; }
.ud-r2--cmp .ud-r2__badge { --bz: 52px; margin: 0; }
@media (max-height: 400px) { .ud-r2--cmp .ud-r2__badge { --bz: 40px; } }
.ud-r2--tiny:not(.ud-r2--ph) .ud-r2__badge { --bz: 38px; }
.ud-r2--ph .ud-r2__badge { --bz: 36px; margin: 0; }
@media (max-width: 759px) and (orientation: portrait) { .ud-r2__badge.ud-r2__mark { --bz: 30px; } }
@media (max-width: 959px) and (orientation: landscape), (max-height: 599px) and (orientation: landscape) { .ud-ig .uk-pf__head { display: none; } }
@container (max-width: 250px) { .ud-ig .uk-pf__btn { display: none; } }
/* shorter desktop frames (the lesson-page player): the same cropped, larger phone */
@media (min-width: 960px) and (min-height: 600px) and (max-height: 760px) {
  .ud-ig__host { overflow: hidden; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
  .ud-ig__host > .ud-ig__ph { bottom: auto; height: 150%; }
  .ud-ig .uk-phone-fit { place-items: start center; }
  .ud-ig .uk-dm__hero, .ud-ig .uk-pf__bio, .ud-ig .uk-pf__find { display: none; }
  .ud-ig .uk-dm__thread { justify-content: flex-start; }
}
@container (max-width: 175px) { .ud-ig .uk-pf__row .uk-av { display: none; } }
@media (max-height: 400px) and (orientation: landscape) { .ud-ig__host > .ud-ig__ph { height: 150%; } }
@media (max-height: 400px) and (orientation: landscape) { .ud-ig__host > .ud-ig__ph.uk-phone--dm { height: 175%; } }
