/* Yeetlist emulator: a web recreation of the iMessage extension (HomeView, EditorView, BubbleRenderer). */
.yl { --a: #4F46E5; --a15: rgba(79,70,229,.15); --green: #34C759; --red: #FF3B30; --gray: #8E8E93; --open: #C7C7CC; --orange: #FF9500;
  --bg: #fff; --label: #000; --sec: rgba(60,60,67,.6); --ter: rgba(60,60,67,.3); --sep: rgba(60,60,67,.22); --track: rgba(120,120,128,.2);
  --bar: #F6F6F7; --blue: #0A7CFF; --them: #E9E9EB; --nav: rgba(247,247,248,.88); --sheet: #fff; --menu: rgba(250,250,250,.94);
  position: absolute; inset: 0; overflow: hidden; background: var(--bg); color: var(--label);
  font: 16px/21px -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif; letter-spacing: -.012em; user-select: none; -webkit-user-select: none; }
@media (prefers-color-scheme: dark) {
  .yl { --a: #7B73FF; --a15: rgba(123,115,255,.2); --green: #30D158; --red: #FF453A; --gray: #98989D; --open: #48484A;
    --bg: #000; --label: #fff; --sec: rgba(235,235,245,.6); --ter: rgba(235,235,245,.3); --sep: rgba(84,84,88,.6); --track: rgba(120,120,128,.36);
    --bar: #161618; --them: #262628; --nav: rgba(22,22,24,.88); --sheet: #1C1C1E; --menu: rgba(44,44,46,.96); }
}
.yl * { box-sizing: border-box; }
:where(.yl button) { border: 0; background: none; padding: 0; cursor: pointer; color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
.yl button:focus-visible, .yl input:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; border-radius: 8px; }
.yl svg { display: block; flex: none; }
.yl [hidden] { display: none !important; }
.yl.no-anim, .yl.no-anim * { transition: none !important; animation: none !important; }

/* chat */
.yl-chat { position: absolute; inset: 0; display: flex; flex-direction: column; transition: transform .45s cubic-bezier(.2,.8,.2,1), border-radius .45s, filter .45s; transform-origin: 50% 0; }
.yl.sheet-up .yl-chat { transform: translateY(14px) scale(.93); border-radius: 18px; filter: brightness(.82); overflow: hidden; }
.yl-nav { flex: none; padding: 44px 12px 8px; background: var(--nav); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; box-shadow: 0 .5px 0 var(--sep); z-index: 2; }
.yl-who { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; }
.yl-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(#A9AEBB, #868A96); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 17px; }
.yl-tx { flex: 1; overflow: hidden auto; padding: 8px 14px 10px; display: flex; flex-direction: column; scrollbar-width: none; }
.yl-tx::-webkit-scrollbar { display: none; }
.yl-tx > :first-child { margin-top: auto; }
.yl-stamp { text-align: center; font-size: 11px; color: var(--gray); margin: 6px 0 8px; }
.yl-row { display: flex; margin-top: 3px; transition: opacity .35s, transform .45s cubic-bezier(.32,1.28,.5,1), max-height .4s, margin .4s; max-height: 600px; }
.yl-row.me { justify-content: flex-end; }
.yl-row.gap { margin-top: 10px; }
.yl-row.enter { opacity: 0; transform: translateY(16px) scale(.94); }
.yl-row.me.enter { transform-origin: 100% 100%; } .yl-row.them.enter { transform-origin: 0 100%; }
.yl-row.gone { opacity: 0; max-height: 0 !important; margin: 0; transform: scale(.9); }
.yl-b { max-width: 76%; padding: 7px 12px; border-radius: 18px; font-size: 15.5px; line-height: 20px; }
.me .yl-b { background: var(--blue); color: #fff; } .them .yl-b { background: var(--them); }
.yl-typing { display: flex; gap: 4px; padding: 11px 13px; } .yl-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gray); animation: yldot 1.1s infinite; }
.yl-typing i:nth-child(2) { animation-delay: .15s; } .yl-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes yldot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.yl-meta { font-size: 10.5px; color: var(--gray); text-align: right; margin: 2px 4px 0; }
.yl-meta.l { text-align: left; }

/* list bubble (BubbleRenderer card + caption) */
.yl-lb { width: 222px; border-radius: 18px; overflow: hidden; background: var(--them); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08); text-align: left; transition: transform .2s; display: block; }
.yl-lb:active { transform: scale(.97); }
.yl-card { background: #fff; color: #000; padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.yl-ch { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.yl-ct { height: 5px; border-radius: 3px; background: #E5E5EA; position: relative; overflow: hidden; }
.yl-ct > i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: #4F46E5; transition: width .5s cubic-bezier(.2,.8,.2,1), background .3s; }
.yl-ct > i.done { background: #34C759; }
.yl-cr { display: flex; flex-direction: column; gap: 6px; }
.yl-cr div { display: flex; align-items: center; gap: 7px; font-size: 13px; line-height: 17px; white-space: nowrap; overflow: hidden; }
.yl-cr div span { overflow: hidden; text-overflow: ellipsis; }
.yl-cr .s span { text-decoration: line-through; color: rgba(60,60,67,.6); }
.yl-bmore { font-size: 11.5px; color: rgba(60,60,67,.6); padding-left: 22px; font-weight: 500; }
.yl-bempty { font-size: 13px; color: rgba(60,60,67,.6); }
/* The card image is baked in light appearance for everyone (BubbleRenderer); Messages draws the
   caption strip in the reader's appearance. In dark mode that is a white card over a dark caption. */
@media (prefers-color-scheme: dark) {
  .yl-lb { box-shadow: 0 0 0 .5px rgba(255,255,255,.16); }
  .yl-card { box-shadow: inset 0 -.5px 0 rgba(0,0,0,.18); }
}
.yl-cap { display: block; padding: 7px 12px 8px; }
.yl-cap b { display: block; font-size: 13.5px; line-height: 18px; }
.yl-cap span { font-size: 11.5px; color: var(--sec); }

/* input bar */
.yl-in { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 30px; background: var(--bg); }
.yl-plus { width: 32px; height: 32px; border-radius: 50%; background: rgba(118,118,128,.14); display: grid; place-items: center; transition: transform .3s; }
.yl.tray-up:not(.tray-by-min) .yl-plus { transform: rotate(45deg); }
.yl-field { flex: 1; min-height: 34px; border-radius: 17px; border: 1px solid var(--sep); display: flex; align-items: center; padding: 0 14px; color: var(--ter); font-size: 15.5px; }
.yl-field.staged { padding: 5px 4px 4px 6px; align-items: flex-end; border-radius: 18px; }
.yl-field.staged .yl-ph { display: none; }
.yl-field { position: relative; }
.yl-stg { position: relative; display: inline-block; }
.yl .yl-unstage { position: absolute; right: -7px; top: -7px; width: 22px; height: 22px; display: grid; place-items: center; z-index: 1; }
.yl-stg .yl-cap b { color: var(--label); } .yl-stg .yl-cap span { color: var(--sec); }
.yl .yl-arrow.pulse { animation: ylpulse 1.1s cubic-bezier(.3,.7,.3,1) .45s 1; border-radius: 50%; }
@keyframes ylpulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--blue) 60%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } } /* a ring only: the arrow itself doesn't move */
.yl-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.yl-stg .yl-lb { zoom: .5; pointer-events: none; }
.yl .yl-arrow { margin-left: auto; width: 28px; height: 28px; }

/* compact tray (keyboard height): app strip, then Yeetlist home */
.yl-tray { position: absolute; left: 0; right: 0; bottom: 0; height: 47%; z-index: 5; background: var(--bg); box-shadow: 0 -.5px 0 var(--sep); transform: translateY(100%); transition: transform .42s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.yl.tray-up .yl-tray { transform: none; }
.yl.tray-up .yl-in { position: relative; padding-bottom: 6px; }
.yl.tray-up .yl-chat { bottom: 47%; }
.yl-chat { transition: transform .45s cubic-bezier(.2,.8,.2,1), border-radius .45s, filter .45s, bottom .42s cubic-bezier(.2,.8,.2,1); }
.yl-strip { display: flex; gap: 14px; padding: 16px 18px; align-items: flex-start; }
.yl-strip .yl-app { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: var(--sec); width: 58px; }
.yl-strip .yl-app i, .yl-strip .yl-app img { width: 50px; height: 50px; border-radius: 13px; display: block; }
.yl-strip .yl-app i { background: rgba(118,118,128,.16); }
.yl-home { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .35s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.yl.home-on .yl-home { opacity: 1; transform: none; pointer-events: auto; }
.yl-hh { display: flex; align-items: center; gap: 8px; padding: 10px 14px; }
.yl-hh b { font-size: 18px; letter-spacing: -.015em; }
.yl-sp { flex: 1; }
.yl-hh .yl-info { width: 28px; height: 28px; margin-left: -2px; }
.yl-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 24px; text-align: center; }
.yl-empty p { margin: 0; font-size: 14px; line-height: 19px; color: var(--sec); }
.yl-empty .yl-cap2 { height: 38px; padding: 0 18px; font-size: 15px; }
.yl-empty small { font-size: 12px; line-height: 16px; color: var(--ter); }
.yl-cap2 { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--a); color: #fff; transition: transform .15s; }
.yl-cap2:active { transform: scale(.95); }
.yl-sec { font-size: 15px; font-weight: 600; padding: 8px 16px 4px; }
.yl-lib { flex: 1; overflow: hidden auto; scrollbar-width: none; }
.yl-lr { position: relative; overflow: hidden; transition: max-height .35s, opacity .3s; max-height: 70px; }
.yl-lr.gone { max-height: 0; opacity: 0; }
.yl-lr-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 9px 16px; background: var(--bg); transition: transform .35s cubic-bezier(.2,.8,.2,1); width: 100%; text-align: left; }
.yl-lr.swiped .yl-lr-in { transform: translateX(-88px); }
.yl-lr-del { visibility: hidden; transition: visibility 0s .3s; position: absolute; right: 0; top: 0; bottom: 0; width: 88px; background: var(--red); color: #fff; font-size: 13px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.yl-lr-t { flex: 1; min-width: 0; }
.yl-lr-t b { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yl-lr-t span { font-size: 11.5px; color: var(--sec); }
.yl-pill { font-size: 10.5px; font-weight: 600; color: var(--orange); background: rgba(255,149,0,.15); padding: 2px 7px; border-radius: 999px; }

/* expanded editor sheet */
.yl-sheet { position: absolute; left: 0; right: 0; bottom: 0; top: 52px; z-index: 10; background: var(--sheet); border-radius: 14px 14px 0 0; display: flex; flex-direction: column; transform: translateY(105%); transition: transform .5s cubic-bezier(.2,.85,.2,1); box-shadow: 0 -8px 30px rgba(0,0,0,.12); }
.yl.sheet-up .yl-sheet { transform: none; }
.yl-grab { width: 36px; height: 5px; border-radius: 3px; background: var(--ter); margin: 6px auto 0; flex: none; }
.yl-top { flex: none; height: 42px; overflow: auto hidden; scrollbar-width: none; }
.yl-top::-webkit-scrollbar { display: none; }
.yl-tr { display: flex; gap: 8px; padding: 4px 12px; width: max-content; }
.yl-tr.in { animation: yltr .45s cubic-bezier(.32,1.28,.5,1); }
@keyframes yltr { from { opacity: 0; filter: blur(4px); transform: scale(.94); } }
.yl .yl-tp, .yl .yl-lp { position: relative; overflow: hidden; height: 34px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; flex: none;
  background: rgba(118,118,128,.12); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35), 0 1px 4px rgba(0,0,0,.06); }
.yl .yl-tp { color: var(--a); font-weight: 600; background: color-mix(in srgb, var(--a) 22%, transparent); }
.yl .yl-lp { color: var(--sec); }
.yl .yl-lp > i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: color-mix(in srgb, var(--a) 22%, transparent); }
.yl .yl-lp.full > i { background: color-mix(in srgb, var(--green) 35%, transparent); }
.yl .yl-lp > span, .yl .yl-lp > svg { position: relative; }
.yl .yl-lp.on { color: var(--label); font-weight: 600; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--a) 80%, transparent); }
.yl .yl-nl { color: var(--a); font-weight: 600; }
.yl-eh { display: flex; align-items: center; gap: 4px; padding: 4px 10px 0 10px; }
.yl .yl-min { width: 32px; height: 32px; background: rgba(118,118,128,.16); margin-left: 4px; }
.yl .yl-dx { width: 32px; height: 32px; background: var(--red); color: #fff; margin-left: 4px; }
.yl-ib { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; flex: none; transition: opacity .25s, transform .25s; }
.yl-ib[hidden] { display: none; }
.yl-et { flex: 1; min-width: 0; border: 0; background: none; padding: 0; color: var(--label); font: inherit; font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 27px; text-overflow: ellipsis; }
.yl .yl-et:focus-visible { outline: none; }
.yl-et::placeholder { color: var(--ter); }
.yl-ea { display: flex; align-items: center; gap: 14px; padding: 6px 16px 9px; font-size: 14.5px; font-weight: 600; }
.yl-ea button { color: var(--a); display: inline-flex; align-items: center; gap: 4px; }
.yl-ea .yl-dl { color: var(--red); }
.yl-ea button:disabled { opacity: .35; cursor: default; }
.yl-es { padding: 2px 16px 8px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--sec); }
.yl-pb { height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; position: relative; }
.yl-pb i { position: absolute; inset: 0 auto 0 0; background: var(--a); border-radius: 2px; transition: width .5s cubic-bezier(.2,.8,.2,1), background .3s; }
.yl-pb i.done { background: var(--green); }
.yl-banner { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(52,199,89,.12); font-size: 13.5px; color: var(--sec); max-height: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; transition: max-height .4s, padding .4s; }
.yl-banner.on { max-height: 80px; padding-top: 10px; padding-bottom: 10px; }
.yl-banner b { display: block; color: var(--label); font-size: 15px; }
.yl-list { flex: 1; overflow: hidden auto; scrollbar-width: none; }
.yl-list::-webkit-scrollbar { display: none; }
.yl-it { position: relative; overflow: hidden; transition: opacity .3s, transform .25s cubic-bezier(.2,.8,.2,1); }
.yl-ic { position: relative; z-index: 1; display: flex; align-items: center; gap: 4px; min-height: 42px; padding: 2px 14px 2px 6px; background: var(--sheet); transition: transform .3s cubic-bezier(.2,.8,.2,1), background .2s; touch-action: pan-y; }
.yl-it + .yl-it::before { content: ""; position: absolute; z-index: 2; top: 0; left: 46px; right: 0; border-top: .5px solid var(--sep); }
/* action layers stay hidden until a swipe starts (no coloured hairlines at row edges) */
.yl-sw { position: absolute; top: 0; bottom: 0; display: flex; visibility: hidden; transition: visibility 0s .3s; }
.yl-it.swiping .yl-sw, .yl-it.sw-l .yl-sw.l, .yl-it.sw-r .yl-sw.r { visibility: visible; transition-delay: 0s; }
.yl-sw.l { left: 0; } .yl-sw.r { right: 0; }
.yl .yl-sw button { width: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff; font-size: 11px; font-weight: 600; line-height: 13px; text-align: center; }
.yl .yl-sw button.d { width: 84px; }
.yl .yl-sw .g { background: var(--green); } .yl .yl-sw .r { background: var(--red); } .yl .yl-sw .gr { background: var(--gray); }
.yl-it.sw-l .yl-ic { transform: translateX(204px); } .yl-it.sw-r .yl-ic { transform: translateX(-84px); }
.yl.sw-left .yl-it.sw-l .yl-ic { transform: translateX(84px); } .yl.sw-left .yl-it.sw-r .yl-ic { transform: translateX(-204px); }
.yl-it.swiping .yl-ic { transition: none; }
.yl .yl-sel { width: 0; height: 38px; overflow: hidden; opacity: 0; display: grid; place-items: center; transition: width .3s, opacity .25s; flex: none; }
.yl.editing .yl-sel { width: 32px; opacity: 1; }
.yl .yl-grip { display: none; padding: 8px 2px 8px 10px; touch-action: none; cursor: grab; border-radius: 8px; }
.yl.editing .yl-grip { display: block; order: 6; }
.yl.editing .yl-st { opacity: .4; pointer-events: none; }
.yl.editing .yl-ic { cursor: pointer; }
.yl-it.drag { z-index: 5; transition: none; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.yl-it.enter { opacity: 0; transform: translateX(-12px); }
.yl-it.hold .yl-ic { background: color-mix(in srgb, var(--sheet) 88%, #767680); }
.yl-st { width: 38px; height: 38px; display: grid; place-items: center; touch-action: manipulation; }
.yl-st svg { transition: transform .3s cubic-bezier(.32,1.6,.5,1); }
.yl-st.pop svg { animation: ylpop .38s cubic-bezier(.32,1.6,.5,1); }
@keyframes ylpop { 0% { transform: scale(.5); } 100% { transform: scale(1); } }
.yl-txt { flex: 0 1 auto; min-width: 3em; margin-right: auto; padding: 8px 0; font-size: 16px; line-height: 21px; transition: color .3s; position: relative; outline: none; user-select: text; -webkit-user-select: text; cursor: text; overflow-wrap: anywhere; }
.yl.editing .yl-txt { user-select: none; -webkit-user-select: none; cursor: inherit; }
.yl-txt:empty::before { content: attr(data-ph); color: var(--ter); }
.yl-txt::after { content: ""; position: absolute; left: 0; top: 50%; height: 1.2px; background: currentColor; width: 0; transition: width .3s cubic-bezier(.2,.8,.2,1); }
.yl-it.s .yl-txt { color: var(--sec); }
.yl-it.s .yl-txt::after { width: var(--tw, 100%); }
.yl-add { display: flex; align-items: center; gap: 4px; min-height: 42px; padding: 2px 14px 2px 6px; position: relative; }
.yl .yl-ab { width: 38px; height: 38px; display: grid; place-items: center; flex: none; }
.yl.editing .yl-add { display: none; }
.yl-add::before { content: ""; position: absolute; top: 0; left: 46px; right: 0; border-top: .5px solid var(--sep); }
.yl-add input { flex: 1; border: 0; background: none; font: inherit; font-size: 16px; color: var(--label); padding: 8px 0; min-width: 0; }
.yl-add input::placeholder { color: var(--ter); }
.yl-add input:focus-visible { outline: none; }
.yl-foot { padding: 10px 14px 30px; background: var(--bar); flex: none; display: flex; gap: 10px; align-items: center; }
.yl-foot .yl-paste { height: 46px; padding: 0 16px; font-size: 16px; gap: 6px; }
.yl-pair { flex: 1; min-width: 0; display: flex; gap: 12px; }
.yl .yl-sr { flex: 1; height: 46px; border-radius: 12px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.yl .yl-send.red { background: var(--red); }
.yl .yl-kbd { width: 46px; height: 46px; border-radius: 50%; background: rgba(118,118,128,.16); display: grid; place-items: center; flex: none; }
.yl .yl-edone { height: 46px; padding: 0 16px; border-radius: 999px; background: var(--gray); color: #fff; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; flex: none; }
.yl:not(.kb) .yl-kbd { display: none; }
.yl.editing .yl-kbd { display: none; }
/* minimized (compact) presentation: the list sits where the keyboard would */
.yl.sheet-min .yl-sheet { top: 53%; border-radius: 0; box-shadow: 0 -.5px 0 var(--sep); }
.yl.sheet-min .yl-chat { transform: none; filter: none; border-radius: 0; }
.yl.sheet-min .yl-grab { display: none; }
.yl.sheet-min .yl-pair { flex-direction: column-reverse; gap: 8px; }
.yl.sheet-min .yl-foot { padding-bottom: 22px; }
.yl.sheet-min .yl-send, .yl.sheet-min .yl-sr { height: 40px; }
.yl-send.off { opacity: .4; }
.yl-send { flex: 1; min-width: 0; width: 100%; height: 46px; border-radius: 12px; background: var(--a); color: #fff !important; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 16px; font-weight: 600; transition: transform .15s, background .3s; }
.yl-send:active { transform: scale(.98); }

/* menus */
.yl-menu { position: absolute; z-index: 40; min-width: 190px; border-radius: 13px; background: var(--menu); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 10px 40px rgba(0,0,0,.22), 0 0 0 .5px rgba(0,0,0,.08); overflow: hidden;
  transform: scale(.6); opacity: 0; transform-origin: var(--mo, 0 0); transition: transform .28s cubic-bezier(.32,1.28,.5,1), opacity .18s; pointer-events: none; }
.yl-menu.on { transform: none; opacity: 1; pointer-events: auto; }
.yl-menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 15px; text-align: left; }
.yl-menu button + button { box-shadow: 0 -.5px 0 var(--sep); }
.yl-menu button:hover, .yl-menu button:focus-visible, .yl-menu button.hl { background: rgba(118,118,128,.16); outline: none; }
.yl-menu .red { color: var(--red); }
.yl-menu button:disabled { opacity: .35; cursor: default; background: none; }
.yl-msep { display: block; height: 7px; background: rgba(118,118,128,.14); }
.yl-scrim { position: absolute; inset: 0; z-index: 35; display: none; }
.yl.menu-on .yl-scrim { display: block; }

/* toast */
.yl-toast { position: absolute; z-index: 50; left: 16px; right: 16px; bottom: 96px; display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 14px; background: var(--menu); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: var(--label); font-size: 14px; line-height: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15); transform: translateY(24px); opacity: 0; transition: transform .35s cubic-bezier(.32,1.28,.5,1), opacity .25s; pointer-events: none; }
.yl-toast span { flex: 1; }
.yl .yl-toast button { color: var(--a); font-weight: 600; }
.yl-toast.on { transform: none; opacity: 1; pointer-events: auto; }
/* alert (RootView: re-add a removed list) */
.yl-alert { position: absolute; inset: 0; z-index: 60; background: rgba(0,0,0,.28); display: grid; place-items: center; }
.yl-ab2 { width: 254px; border-radius: 14px; background: var(--menu); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); text-align: center; overflow: hidden; }
.yl-ab2 b { display: block; padding: 18px 16px 3px; font-size: 16px; line-height: 21px; }
.yl-ab2 p { margin: 0; padding: 0 16px 16px; font-size: 13px; line-height: 17px; }
.yl-ab2 div { display: flex; box-shadow: 0 -.5px 0 var(--sep); }
.yl .yl-ab2 button { flex: 1; height: 44px; color: var(--a); font-size: 16px; }
.yl .yl-ab2 .yl-no { font-weight: 600; }
.yl .yl-ab2 .yl-yes { box-shadow: -.5px 0 0 var(--sep); }

/* companion app: Settings (SettingsView, grouped Form) */
.yl-set { position: absolute; inset: 0; z-index: 35; background: #F2F2F7; opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .3s, transform .4s cubic-bezier(.2,.8,.2,1); }
@media (prefers-color-scheme: dark) { .yl-set { background: #000; } }
.yl.set-on .yl-set { opacity: 1; transform: none; pointer-events: auto; }
.ys-scroll { position: absolute; inset: 0; overflow: hidden auto; padding: 50px 16px 40px; scrollbar-width: none; }
.ys-scroll::-webkit-scrollbar { display: none; }
.ys-title { font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -.02em; margin: 6px 4px 14px; }
.ys-g { background: var(--sheet); border-radius: 12px; overflow: hidden; }
.ys-h { font-size: 12.5px; text-transform: uppercase; letter-spacing: .02em; color: var(--sec); margin: 22px 16px 6px; }
.ys-f { font-size: 12.5px; line-height: 16px; color: var(--sec); margin: 6px 16px 0; }
.ys-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; font-size: 15px; line-height: 20px; min-height: 44px; }
.ys-row + .ys-row { box-shadow: 0 -.5px 0 var(--sep); }
.ys-link { color: var(--a); }
.ys-dis { color: var(--sec); }
.ys-nav span { flex: 1; display: flex; flex-direction: column; }
.ys-nav b { font-weight: 400; } .ys-nav small { font-size: 12px; color: var(--sec); }
.ys-cards { display: flex; gap: 10px; padding: 10px 12px; }
.ys-cols { display: flex; gap: 10px; padding: 10px 12px; }
.ys-cols > div { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ys-colh { font-size: 12.5px; font-weight: 600; color: var(--sec); text-align: center; }
.yl .ys-card { flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 7px; border-radius: 14px; box-shadow: inset 0 0 0 .5px var(--sep); transition: box-shadow .2s; }
.yl .ys-card.on { box-shadow: inset 0 0 0 2px var(--a); }
.ys-pv { display: block; height: 52px; border-radius: 9px; background: rgba(118,118,128,.12); overflow: hidden; position: relative; }
.ys-cols .ys-pv { height: 40px; }
.ys-ct { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
/* previews (simplified SettingsPreviews.swift) */
.pv-swipe { position: absolute; inset: 0 8px; display: flex; align-items: center; justify-content: space-between; }
.pv-acts, .pv-del { display: flex; gap: 2px; width: 38%; } .pv-del { justify-content: center; }
.pv-swipe.l { flex-direction: row-reverse; }
.pv-acts i, .pv-del i { flex: 1; height: 26px; border-radius: 4px; background: var(--green); max-width: 28px; }
.pv-acts i.r, .pv-del i.r { background: var(--red); } .pv-acts i.y { background: var(--gray); }
.pv-row { position: absolute; left: 0; right: 0; height: 26px; border-radius: 6px; background: var(--sheet); display: flex; align-items: center; gap: 6px; padding: 0 9px; animation: pvslide 2.2s ease-in-out infinite alternate; }
.pv-row b { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--gray); } .pv-row u { flex: 1; height: 5px; border-radius: 3px; background: var(--track); }
@keyframes pvslide { 0%, 15% { transform: translateX(38%); } 85%, 100% { transform: translateX(-38%); } }
.pv-fwd { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pv-chat { width: 18px; height: 14px; border-radius: 7px; background: var(--gray); opacity: .7; }
.pv-cards { display: flex; flex-direction: column; gap: 3px; }
.pv-card { display: flex; flex-direction: column; gap: 2px; padding: 3px 4px; border-radius: 4px; background: var(--sheet); }
.pv-card i { width: 22px; height: 3px; border-radius: 2px; background: var(--track); }
.pv-card i:first-child { background: var(--green); }
.pv-look { position: absolute; inset: 6px 8px; display: flex; flex-direction: column; gap: 4px; }
.pv-look u { height: 3px; border-radius: 2px; background: var(--track); width: 80%; }
.pv-look span { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 3px; }
.pv-look span i { flex: 1; height: 10px; border-radius: 5px; background: var(--a); } .pv-look span i.g { background: var(--green); }
.pv-look.tinted span i { opacity: .55; } .pv-look.clear span i { background: transparent; box-shadow: inset 0 0 0 1.2px var(--a); } .pv-look.clear span i.g { box-shadow: inset 0 0 0 1.2px var(--green); }
.pv-side { position: absolute; inset: 7px 10px; display: flex; flex-direction: column; gap: 5px; }
.pv-side > span { display: flex; align-items: center; gap: 4px; opacity: .4; }
.pv-side u { flex: 1; height: 4px; border-radius: 2px; background: var(--track); }
.pv-side .r i { width: 7px; height: 7px; border-radius: 50%; background: var(--gray); }
.pv-side .t .m { width: 16px; height: 7px; border-radius: 4px; background: var(--green); }
.pv-side .b i { flex: 1; height: 8px; border-radius: 4px; background: var(--a); } .pv-side .b .x { flex: .6; background: var(--green); }
.pv-side.right .t, .pv-side.right .b { flex-direction: row-reverse; }
.pv-side.status.right .r { flex-direction: row-reverse; }
.pv-side.completion .t, .pv-side.arrow .t, .pv-side.status .r, .pv-side.sendRemove .b, .pv-side.paste .b { opacity: 1; }
.pv-side.status .r i { background: var(--green); }
.pv-side.arrow .t .m { width: 8px; background: var(--a); border-radius: 2px; }
.pv-side.paste .b .x { background: var(--a); } .pv-side.paste .b .s { opacity: .5; }
.yl-set::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 46px; background: color-mix(in srgb, #F2F2F7 86%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 .5px 0 var(--sep); }
@media (prefers-color-scheme: dark) { .yl-set::before { background: color-mix(in srgb, #000 82%, transparent); } }

.yl-rows:empty + .yl-add::before { display: none; }


/* Settings applied to the Messages app (SettingsView sides, ButtonLook) */
.yl-eh > .yl-back { order: 2; } .yl-eh > .yl-et { order: 4; } .yl-eh > .yl-undo { order: 5; } .yl-eh > .yl-more { order: 6; } .yl-eh > .yl-dx { order: 7; } .yl-eh > .yl-min { order: 8; }
.yl.cb-left .yl-eh > .yl-dx { order: 3; margin: 0 4px 0 0; }
.yl.ar-left .yl-eh > .yl-min { order: 1; margin: 0 4px 0 0; }
.yl-ic > .yl-sel { order: 1; } .yl-ic > .yl-st { order: 2; } .yl-ic > .yl-txt { order: 3; }
.yl.st-right .yl-ic > .yl-st { order: 5; } .yl.st-right .yl-ic { padding: 2px 6px 2px 16px; } .yl.st-right .yl-it + .yl-it::before, .yl.st-right .yl-add::before { left: 16px; }
.yl.pa-right .yl-foot > .yl-paste { order: 9; }
.yl.sr-left:not(.sheet-min) .yl-pair { flex-direction: row-reverse; }
/* Clear: hairline in the colour, label in the colour. Tinted: faint fill, heavier hairline. Solid: opaque fill (default full size). */
.yl.lk-clear .yl-send, .yl.lk-tinted .yl-send { --c: var(--a); }
.yl.lk-clear .yl-send.red, .yl.lk-tinted .yl-send.red, .yl.lk-clear .yl-dx, .yl.lk-tinted .yl-dx { --c: var(--red); }
.yl.lk-clear .yl-sr, .yl.lk-tinted .yl-sr { --c: var(--green); }
.yl.lk-clear .yl-foot .yl-paste, .yl.lk-tinted .yl-foot .yl-paste { --c: var(--a); }
.yl.lk-clear :is(.yl-send, .yl-sr, .yl-foot .yl-paste, .yl-dx) { background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 80%, transparent); }
.yl.lk-tinted :is(.yl-send, .yl-sr, .yl-foot .yl-paste, .yl-dx) { background: color-mix(in srgb, var(--c) 25%, transparent); color: var(--c) !important; box-shadow: inset 0 0 0 1.25px color-mix(in srgb, var(--c) 95%, transparent); }
.yl-lr.swiped .yl-lr-del { visibility: visible; transition-delay: 0s; } /* no red hairline at rest */
