#channel-reel {
  --reel-ink: #17392d;
  --reel-surface: #eff4e9;
  --reel-reply: #d9ebc0;
  --reel-accent: #315344;
  --reel-ticket: #ecf4d7;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  padding: clamp(.8rem, 2vw, 1.4rem);
  border-radius: 1.55rem;
  border: 1px solid #fff9;
  background: #f5f5e9;
  color: var(--reel-ink);
  box-shadow: 0 1.4rem 3.4rem -1.9rem #071b12bf;
  scroll-margin-block-start: 5rem;
}
#channel-reel[data-channel="instagram"] {
  --reel-surface: #f5eef3;
  --reel-reply: #f1ddee;
  --reel-accent: #713e60;
  --reel-ticket: #f3e4ed;
}
#channel-reel[data-channel="messenger"] {
  --reel-surface: #edf2f6;
  --reel-reply: #d9e7fa;
  --reel-accent: #35557b;
  --reel-ticket: #e2ebf7;
}
.reel-heading, .reel-tabs, .reel-toggle, .reel-tabs button, .reel-contact, .reel-result {
  display: flex;
  align-items: center;
}
.reel-heading { justify-content: space-between; gap: .4rem; padding-inline: .12rem; }
.reel-replay { display: none; }
.reel-caption { font-size: clamp(.9rem, 1.6vw, 1.08rem); font-weight: 750; letter-spacing: -.027em; }
.reel-toggle, .reel-tabs button { font-family: inherit; font-weight: 650; cursor: pointer; }
.reel-toggle { background: transparent; border: 0; border-radius: .45rem; color: #365144; font-size: .77rem; padding: .35rem; min-height: 40px; gap: .48rem; }
.reel-toggle i { width: .65rem; height: .72rem; border-inline: .19rem solid currentColor; }
.reel-toggle[data-playing="false"] i { width: 0; border: .35rem solid transparent; border-left: .54rem solid currentColor; border-right: 0; }
.reel-tabs { margin-block: .15rem .8rem; gap: .22rem; padding: .25rem; border: 1px solid #cad0bf; border-radius: .85rem; background: #e6eadc; }
.reel-tabs button { flex: 1 1 0; min-width: 0; justify-content: center; gap: .43rem; position: relative; min-height: 40px; padding: .35rem .14rem; border: 1px solid transparent; border-radius: .61rem; color: #4a594e; background: transparent; font-size: clamp(.7rem, 1.1vw, .86rem); line-height: 1.25; }
.reel-tabs button[aria-pressed="true"] { background: #fffef6; border-color: #c5cdbb; color: var(--reel-accent); box-shadow: 0 2px 4px #15382b12; }
.reel-tabs button:hover, .reel-toggle:hover { color: #192f22; background-color: #fafff0; }
#channel-reel button:focus-visible { outline: 3px solid #6b551a; outline-offset: 2px; z-index: 1; }
.reel-tabs i { position: relative; width: .88rem; height: .86rem; flex-shrink: 0; border: 1.5px solid currentColor; border-radius: 54% 54% 52% 18%; }
.reel-tabs [data-choice="whatsapp"] i::after { content: ''; position: absolute; width: 46%; height: 42%; left: 23%; top: 17%; border: solid currentColor; border-width: 0 0 2px 2px; border-radius: 0 0 0 70%; transform: rotate(-12deg); }
.reel-tabs [data-choice="instagram"] i { border-radius: 30%; }
.reel-tabs [data-choice="instagram"] i::before { content: ''; position: absolute; inset: 17%; border: 1.5px solid currentColor; border-radius: 50%; }
.reel-tabs [data-choice="instagram"] i::after { content: ''; position: absolute; width: 2px; height: 2px; top: 7%; right: 7%; background: currentColor; border-radius: 50%; }
.reel-tabs [data-choice="messenger"] i::before { content: ''; position: absolute; inset: 18% 4%; background: currentColor; clip-path: polygon(0 78%, 39% 14%, 58% 43%, 100% 5%, 59% 86%, 40% 56%); }
.reel-scene { overflow: hidden; border: 1px solid #c2cdbd; border-radius: 1rem; background: var(--reel-surface); }
.reel-thread { background: radial-gradient(ellipse at 0% 100%, #ffffff75, transparent 75%), var(--reel-surface); }
.reel-contact { gap: .7rem; border-bottom: 1px solid #243d2b1a; padding: .74rem clamp(.75rem, 2vw, 1.2rem); background: #fffffaab; }
.reel-avatar { display: grid; place-items: center; width: 2.45rem; height: 2.45rem; border-radius: 50%; background: var(--reel-accent); color: #fffdf1; font: italic 600 1rem/1 Georgia, serif; letter-spacing: -.085em; flex-shrink: 0; }
.reel-contact strong, .reel-contact small, .reel-ticket-copy > * { display: block; }
.reel-contact strong { color: #213c30; font-size: .95rem; line-height: 1.28; letter-spacing: -.015em; }
.reel-contact small { color: #5a665b; font-size: .72rem; margin-top: .13rem; }
.reel-messages { list-style: none; margin: 0; padding: .9rem clamp(.65rem, 2vw, 1.2rem); display: flex; flex-direction: column; justify-content: flex-start; gap: .57rem; min-height: 12.7rem; }
.reel-messages li { position: relative; display: flex; margin: 0; padding: 0; align-items: center; max-width: 86%; }
.reel-inquiry { align-self: flex-start; }
.reel-reply { align-self: flex-end; justify-content: flex-end; }
.reel-messages li > span { display: block; visibility: hidden; color: #20382b; background: #fffef9; border: 1px solid #253a281a; border-radius: .78rem .78rem .78rem .15rem; padding: .57rem .76rem; line-height: 1.43; font-size: clamp(.8rem, 1.26vw, .94rem); box-shadow: 0 2px 3px #15291809; }
.reel-messages .reel-reply > span { background: var(--reel-reply); border-radius: .78rem .78rem .15rem .78rem; }
.reel-messages .is-shown > span { visibility: visible; animation: reel-bubble-in .34s ease-out backwards; }
.reel-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.reel-typing { position: absolute; right: 0; top: 0; display: none; align-items: center; gap: .22rem; padding: .62rem .68rem; border-radius: .72rem .72rem .13rem .72rem; background: var(--reel-reply); }
.reel-typing b { width: .27rem; height: .27rem; border-radius: 50%; background: var(--reel-accent); animation: reel-typing 1.2s ease-in-out infinite; }
.reel-typing b:nth-child(2) { animation-delay: .15s; }
.reel-typing b:nth-child(3) { animation-delay: .3s; }
.is-typing .reel-typing { display: flex; }
#channel-reel[data-ticking="false"] .reel-typing b { animation-play-state: paused; }
.reel-result { position: relative; gap: .72rem; min-height: 5.7rem; padding: .64rem clamp(.7rem, 2vw, 1.2rem); border-top: 1px dashed #b2bdab; background: #f5f5eb; }
.reel-result.is-ready { background: var(--reel-ticket); }
.reel-ticket-icon { position: relative; display: grid; place-items: center; width: 2.45rem; height: 2.65rem; flex: none; color: #5a6b5a; }
.reel-ticket-icon i { height: 1.85rem; width: 1.45rem; position: relative; border: 1.5px solid currentColor; border-radius: .15rem; background: #fffdf0; transform: rotate(-6deg); }
.reel-ticket-icon i::before { content: ''; position: absolute; top: .4rem; left: .22rem; width: .78rem; height: .1rem; background: currentColor; box-shadow: 0 .33rem currentColor; }
.reel-ticket-icon i::after { content: ''; position: absolute; top: 1.1rem; left: .22rem; width: .48rem; height: .1rem; background: currentColor; }
.reel-result.is-ready .reel-ticket-icon::after { content: '✓'; position: absolute; right: 0; bottom: 0; width: 1rem; height: 1rem; display: grid; place-items: center; border-radius: 50%; background: var(--reel-accent); color: white; font: 700 .68rem/1 system-ui, sans-serif; animation: reel-bubble-in .28s ease-out backwards; }
.reel-ticket-copy small { color: #536452; font-size: .68rem; font-weight: 660; letter-spacing: .035em; }
.reel-ticket-copy strong { margin: .08rem 0; color: #223d2e; font-size: clamp(.95rem, 1.6vw, 1.1rem); line-height: 1.22; letter-spacing: -.022em; }
.reel-ticket-copy > span { color: #445546; font-size: .78rem; line-height: 1.36; }
@keyframes reel-bubble-in { from { transform: translateY(.35rem); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes reel-typing { 0%, 55%, 100% { opacity: .5; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
@media (max-width: 620px) {
  #channel-reel { padding: .5rem; border-radius: 1.15rem; }
  .reel-heading { padding-inline: .38rem; }
  .reel-caption { margin-right: auto; }
  .reel-replay { display: inline-flex; align-items: center; gap: .25rem; min-height: 44px; padding: .25rem; border: 0; border-radius: .45rem; background: transparent; color: #365144; font-size: .77rem; font-weight: 650; }
  .reel-replay span { font-size: 1.1rem; }
  .reel-toggle, .reel-tabs button { min-height: 44px; }
  .reel-tabs { margin: 0 0 .38rem; padding: .12rem; gap: .12rem; }
  .reel-tabs button { gap: .28rem; font-size: .76rem; }
  .reel-contact { padding: .42rem .68rem; gap: .48rem; }
  .reel-avatar { width: 1.9rem; height: 1.9rem; }
  .reel-contact small { margin: 0; }
  .reel-messages { min-height: 12rem; gap: .38rem; padding: .55rem .6rem; }
  .reel-messages li { max-width: 92%; }
  .reel-messages li > span { font-size: .875rem; line-height: 1.35; padding: .4rem .62rem; }
  .reel-result { min-height: 4.25rem; padding: .48rem .66rem; gap: .5rem; }
  .reel-ticket-icon { width: 1.85rem; height: 2rem; }
}
@media (max-width:350px) and (max-height:610px) {
  .reel-messages { padding-inline: .45rem; }
  .reel-messages li { max-width: 98%; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-replay { display: none; }
  #channel-reel *, #channel-reel *::before, #channel-reel *::after { animation: none !important; transition: none !important; }
}
