/* ============================================================
   Showcase cards (internal/pages/showcase, web-static/js/showcase.js):
   a big glass card on the cream page, a coloured stage that plays a
   scene per feature, and the features beside it.
   The scenes are the desktop app's own surfaces (mssgs-electron, dark
   theme), ported class for class under .sc-app below the card styles.
   ============================================================ */

/* ---- The card ---- */
.sc{position:relative;display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);grid-template-rows:minmax(560px,auto);gap:12px;padding:12px;border-radius:40px;background:rgba(255,255,255,.46);border:1px solid rgba(255,255,255,.75);box-shadow:0 34px 80px -46px rgba(22,34,24,.5),0 2px 0 rgba(255,255,255,.6) inset}
.sc+.sc{margin-top:28px}
.sc--flip{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)}
.sc--flip .sc-copy{order:2}
.sc-copy{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:40px 34px 36px 38px}
.sc--flip .sc-copy{padding:40px 38px 36px 34px}
.sc-kicker{display:inline-flex;align-items:center;gap:10px;margin:0 0 16px;font-size:13.5px;font-weight:700;letter-spacing:.02em;color:var(--green-700)}
.sc-kicker-ico{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:0 0 32px;border-radius:10px;background:rgba(51,117,77,.12);color:var(--green-600);font-size:14px}
.sc-h{font-family:var(--font-display);font-size:clamp(32px,3.7vw,48px)!important;font-weight:750;line-height:1.02!important;letter-spacing:-.025em;margin:0 0 14px;color:var(--w-ink);overflow-wrap:break-word}
.sc-intro{font-size:17px;line-height:1.6;color:var(--w-mut);margin:0 0 22px}
.sc-intro a,.sc-step-text a{color:var(--green-700);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
.sc-intro b,.sc-step-text b{font-weight:650;color:var(--w-ink2)}

/* The steps: a rail per step that fills while its scene plays. */
.sc-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.sc-step{position:relative}
.sc-step-h{margin:0!important;font:inherit!important}
.sc-step-btn{position:relative;display:block;width:100%;padding:11px 8px 11px 22px;border:0;border-radius:12px;background:none;text-align:left;font:600 17.5px/1.3 var(--font-sans);letter-spacing:-.01em;color:var(--w-mut2);cursor:pointer;transition:color var(--dur-base) var(--ease-standard),background var(--dur-base) var(--ease-standard)}
.sc-step-btn:hover{color:var(--w-ink)}
.sc-step-btn:focus-visible{outline:2px solid var(--w-focus);outline-offset:2px}
.sc-step.is-on .sc-step-btn{color:var(--w-ink)}
.sc-step-bar{position:absolute;left:6px;top:12px;bottom:-2px;width:3px;border-radius:3px;background:rgba(50,55,30,.12);overflow:hidden}
.sc-step-bar span{position:absolute;inset:0;border-radius:inherit;background:var(--green-500);transform-origin:top;transform:scaleY(0)}
.sc-step.is-on .sc-step-bar span{transform:scaleY(1)}
.sc-step.is-run .sc-step-bar span{animation:sc-fill var(--sc-ms,6000ms) linear both}
.sc.is-paused .sc-step.is-run .sc-step-bar span{animation-play-state:paused}
@keyframes sc-fill{from{transform:scaleY(0)}to{transform:scaleY(1)}}
.sc-step-text{display:grid;grid-template-rows:0fr;transition:grid-template-rows .35s var(--ease-standard)}
.sc-step-text>p{overflow:hidden;margin:0;padding:0 8px 0 22px;font-size:15.5px;line-height:1.55;color:var(--w-mut)}
.sc-step.is-on .sc-step-text{grid-template-rows:1fr}
.sc-step.is-on .sc-step-text>p{padding-bottom:10px}
.sc-step.is-on .sc-step-bar{bottom:0}
/* Without the script every step reads in full. */
.sc:not(.is-ready) .sc-step-text{grid-template-rows:1fr}
.sc:not(.is-ready) .sc-step-text>p{padding-bottom:10px}
.sc:not(.is-ready) .sc-step-bar span{transform:scaleY(1)}
.sc-link{display:inline-flex;align-items:center;gap:10px;align-self:flex-start;margin:20px 0 0 22px;font-size:15px;font-weight:600;color:var(--green-700);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.sc-link i{font-size:12px;transition:transform var(--dur-base) var(--ease-standard)}
.sc-link:hover{text-decoration-thickness:2px}
.sc-link:hover i{transform:translateX(3px)}

/* ---- The stage ---- */
.sc-stage{position:relative;isolation:isolate;overflow:hidden;border-radius:30px;container-type:size;background:var(--sc-bg);box-shadow:0 1px 0 rgba(255,255,255,.25) inset}
.sc-glow{position:absolute;inset:0;z-index:-1;background:radial-gradient(60% 50% at 50% 46%,rgba(255,255,255,.22),transparent 70%);pointer-events:none}
.sc-tone-green{--sc-bg:radial-gradient(90% 70% at 12% 8%,#8fe3b4 0%,transparent 58%),radial-gradient(80% 70% at 92% 96%,#155c41 0%,transparent 62%),linear-gradient(155deg,#49b884 0%,#2a7a58 55%,#1b5a42 100%)}
.sc-tone-teal{--sc-bg:radial-gradient(90% 70% at 88% 8%,#9df0e2 0%,transparent 56%),radial-gradient(80% 70% at 6% 96%,#0d4a55 0%,transparent 62%),linear-gradient(200deg,#3fc0b0 0%,#1f8584 52%,#145560 100%)}
.sc-tone-ocean{--sc-bg:radial-gradient(90% 70% at 14% 6%,#a9d4ff 0%,transparent 56%),radial-gradient(80% 70% at 94% 96%,#1d2f6b 0%,transparent 62%),linear-gradient(160deg,#5f9ef0 0%,#3866c4 52%,#26408c 100%)}
.sc-tone-amber{--sc-bg:radial-gradient(90% 70% at 86% 6%,#ffe3a1 0%,transparent 56%),radial-gradient(80% 70% at 8% 96%,#9a4512 0%,transparent 62%),linear-gradient(205deg,#f6b54d 0%,#e08a2c 52%,#b25d1c 100%)}
.sc-tone-rose{--sc-bg:radial-gradient(90% 70% at 12% 6%,#ffc6cf 0%,transparent 56%),radial-gradient(80% 70% at 94% 96%,#7c2147 0%,transparent 62%),linear-gradient(160deg,#f58aa0 0%,#d4537a 52%,#9c2e5b 100%)}
.sc-tone-plum{--sc-bg:radial-gradient(90% 70% at 86% 6%,#dcc4ff 0%,transparent 56%),radial-gradient(80% 70% at 8% 96%,#3a1d6b 0%,transparent 62%),linear-gradient(200deg,#a77de8 0%,#7a4fc4 52%,#52308f 100%)}
.sc-tone-sky{--sc-bg:radial-gradient(90% 70% at 12% 6%,#c8f1ff 0%,transparent 56%),radial-gradient(80% 70% at 94% 96%,#1c5f8a 0%,transparent 62%),linear-gradient(160deg,#6fcdf0 0%,#3a9bd0 52%,#2672a6 100%)}
.sc-tone-lime{--sc-bg:radial-gradient(90% 70% at 86% 6%,#eaffb0 0%,transparent 56%),radial-gradient(80% 70% at 8% 96%,#2f6b1c 0%,transparent 62%),linear-gradient(200deg,#a6d65a 0%,#6aae3c 52%,#3f7f2a 100%)}
.sc-tone-night{--sc-bg:radial-gradient(70% 60% at 20% 12%,rgba(111,211,155,.38) 0%,transparent 60%),radial-gradient(70% 60% at 90% 92%,rgba(104,168,218,.3) 0%,transparent 60%),linear-gradient(160deg,#2a3037 0%,#1b1f24 100%)}

/* A scene is drawn at 600 x 520 and scaled to the stage (the ratio of two
   lengths as a number: tan(atan2())) as if the stage were 660 x 580, so
   even the widest window (540) keeps room on both sides. */
.sc-scene{position:absolute;left:50%;top:50%;width:600px;height:520px;margin:-260px 0 0 -300px;scale:.8;opacity:0;visibility:hidden;transition:opacity .45s var(--ease-standard),visibility .45s}
@supports (scale:tan(atan2(1px,2px))){
  .sc-scene{scale:min(1.15,tan(atan2(100cqw,660px)),tan(atan2(100cqh,580px)))}
}
.sc-scene.is-shown{opacity:1;visibility:visible}
.sc-s{position:relative;width:100%;height:100%}
.sc.is-paused .sc-scene *,.sc.is-paused .sc-scene *::before,.sc.is-paused .sc-scene *::after{animation-play-state:paused!important}
/* Scene animations run only while their scene plays; otherwise (and with
   reduced motion) every element shows its last frame. */
.sc-scene:not(.is-on) *,.sc-scene:not(.is-on) *::before,.sc-scene:not(.is-on) *::after,.sc.is-still .sc-scene *,.sc.is-still .sc-scene *::before,.sc.is-still .sc-scene *::after{animation:none!important}

/* ---- Responsive ---- */
@media (max-width:980px){
  .sc,.sc--flip{grid-template-columns:minmax(0,1fr);grid-template-rows:none;border-radius:32px;gap:6px}
  .sc--flip .sc-copy{order:0}
  .sc-stage{order:-1;aspect-ratio:600/500;border-radius:24px}
  .sc-copy,.sc--flip .sc-copy{padding:26px 18px 22px}
}
@media (max-width:560px){
  .sc{padding:8px;border-radius:26px}
  .sc-stage{border-radius:20px;aspect-ratio:600/560}
  /* On a phone the margins are narrower, so the app stays legible. */
  @supports (scale:tan(atan2(1px,2px))){
    .sc-scene{scale:min(1.2,tan(atan2(100cqw,590px)),tan(atan2(100cqh,540px)))}
  }
  .sc-copy,.sc--flip .sc-copy{padding:22px 10px 16px}
  .sc-step-btn{font-size:16.5px;padding-left:20px}
  .sc-step-text>p{padding-left:20px;font-size:15px}
  .sc-link{margin-left:20px}
}
@media (prefers-reduced-motion:reduce){
  .sc-scene,.sc-step-text,.sc-step-btn,.sc-link i{transition:none}
}

/* ============================================================
   Timing (internal/pages/showcase/ui.go): .sc-in appears at --d,
   .sc-pop pops in at --d, .sc-out leaves at --o. An element's own
   style is its last frame.
   ============================================================ */
.sc-scene.is-on .sc-in{animation:sc-in .5s cubic-bezier(.2,.8,.2,1) var(--d,0s) both}
.sc-scene.is-on .sc-pop{animation:sc-pop .5s cubic-bezier(.3,1.6,.5,1) var(--d,0s) both}
.sc-scene.is-on .sc-in.sc-out{animation:sc-in .5s cubic-bezier(.2,.8,.2,1) var(--d,0s) both,sc-out .35s ease-in var(--o,99s) forwards}
.sc-scene.is-on .sc-pop.sc-out{animation:sc-pop .5s cubic-bezier(.3,1.6,.5,1) var(--d,0s) both,sc-out .35s ease-in var(--o,99s) forwards}
.sc-scene.is-on .sc-out:not(.sc-in):not(.sc-pop){animation:sc-out .35s ease-in var(--o,99s) both}
.sc-in.sc-out,.sc-pop.sc-out,.sc-out:not(.sc-in):not(.sc-pop){opacity:0;visibility:hidden}
.sc-scene.is-on .sc-out{visibility:visible}
@keyframes sc-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes sc-pop{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:none}}
@keyframes sc-out{from{opacity:1;visibility:visible}to{opacity:0;visibility:hidden}}

/* A tap: a ring that pulses where a finger presses. Scenes place it. */
.sc-tap{position:absolute;z-index:9;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;background:rgba(255,255,255,.35);border:2px solid rgba(255,255,255,.9);box-shadow:0 4px 16px rgba(0,0,0,.25);opacity:0;pointer-events:none}
.sc-scene.is-on .sc-tap{animation:sc-tap .7s ease-out var(--d,0s) both}
@keyframes sc-tap{0%{opacity:0;transform:scale(1.5)}30%{opacity:1;transform:scale(.8)}60%{opacity:1;transform:scale(.9)}100%{opacity:0;transform:scale(1.2)}}

/* Typing: the text is revealed from left to right. */
.sc-scene.is-on .sc-type{animation:sc-type .9s steps(8,end) var(--d,0s) both,sc-out .2s var(--o,99s) forwards}
@keyframes sc-type{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
.sc-caret{display:inline-block;width:2px;height:1.15em;margin-left:1px;vertical-align:text-bottom;background:currentColor}
.sc-scene.is-on .sc-caret{animation:sc-blink 1s steps(1) infinite,sc-out .2s var(--o,99s) forwards}
@keyframes sc-blink{50%{opacity:0}}

/* Swap: two versions of one thing in one place, the second replacing the
   first (a card updated in place). */
.sc-swap,.sc-agent{display:grid}
.sc-swap>*,.sc-agent>*{grid-area:1/1}

/* ============================================================
   Bot scenes: the client classes the developer docs ported
   (dev-docs.css), the same rules, for the /command picker and the
   agent task card; the bot cards are action-message.css.
   ============================================================ */
/* chat-input/trigger-picker.css */
.trigger-picker{position:absolute;bottom:100%;left:0;right:0;border-radius:12px;margin-bottom:4px;min-width:240px;z-index:5;overflow:hidden;background:rgba(40,40,48,.55);backdrop-filter:blur(40px) saturate(1.8);-webkit-backdrop-filter:blur(40px) saturate(1.8);border:1px solid rgba(255,255,255,.12);box-shadow:0 8px 32px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.08)}
.trigger-picker-header{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid #3f4147;color:#b5bac1;font-size:14px}
.trigger-picker-header-icon{color:#508ec9;font-weight:700;font-size:16px;font-family:'Consolas','Monaco','Courier New',monospace}
.trigger-picker-header-text{font-weight:500}
.trigger-picker-list{max-height:180px;overflow-y:auto;padding:8px}
.trigger-picker-item{padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:4px}
.trigger-picker-item.selected{background-color:#404249}
.trigger-match{color:#508ec9;font-weight:500;font-family:'Consolas','Monaco','Courier New',monospace;font-size:14px}
.trigger-name{color:#949ba4;font-size:13px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}

/* chat-view/agent-task-card.css (head, status, project, body) */
.agent-task-card{position:relative;display:flex;flex-direction:column;gap:7px;padding:12px 14px;border-radius:10px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}
.agent-task-card.tone-active{border-color:rgba(74,124,89,.5)}
.agent-task-card.tone-attention{border-color:rgba(241,174,56,.4)}
.agent-task-card.tone-good{border-color:rgba(87,175,96,.35)}
.agent-task-card .agent-task-head{display:flex;align-items:center;gap:9px}
.agent-task-card .agent-task-avatar{display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0;border-radius:7px;color:#90ee90;background:rgba(74,124,89,.28);border:1px solid rgba(144,238,144,.22)}
.agent-task-card .agent-task-who{display:flex;align-items:baseline;gap:8px;min-width:0;flex:1}
.agent-task-card .agent-task-name{font-size:14px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.agent-task-card .agent-task-head-right{display:flex;align-items:center;gap:6px;flex-shrink:0}
.agent-task-card .agent-task-status{padding:3px 9px;border-radius:6px;font-size:11px;font-weight:700;line-height:14px;letter-spacing:.2px;white-space:nowrap;background:rgba(255,255,255,.08);color:rgba(255,255,255,.6)}
.agent-task-card .agent-task-status.tone-active{background:rgba(74,124,89,.3);color:#a5dcb0}
.agent-task-card .agent-task-status.tone-attention{background:rgba(241,174,56,.2);color:#f1ae38}
.agent-task-card .agent-task-status.tone-good{background:rgba(87,175,96,.22);color:#6fbf73}
.agent-task-card .agent-task-project{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.agent-task-card .agent-task-project-label,.agent-task-card .agent-task-model-label{font-size:11.5px;color:rgba(255,255,255,.4)}
.agent-task-card .agent-task-project .agent-task-model-label{margin-left:6px}
.agent-task-card .agent-task-project-tag{display:inline-block;padding:1px 7px;border-radius:5px;background:rgba(88,101,242,.16);color:#a3b0f9;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;font-weight:600}
.agent-task-card .agent-task-model{display:inline-block;padding:1px 7px;border-radius:5px;border:1px solid rgba(144,238,144,.22);background:rgba(74,124,89,.16);color:#9fd3ad;font-size:11.5px;font-weight:600}
.agent-task-card .agent-task-title{margin:0;font-size:14.5px;font-weight:600;line-height:1.35;color:#fff;font-family:var(--font-sans)}
.agent-task-card .agent-task-body{font-size:13.5px;line-height:1.5;color:rgba(255,255,255,.78)}
.agent-task-card .agent-task-body-plain{white-space:pre-wrap}
.sc-cardrow .action-message-container{width:100%;margin:0}
.sc-cmd-wrap{position:relative}
.sc-cmd-picker .trigger-picker{left:16px;right:16px;bottom:calc(100% - 2px);background:rgba(40,40,48,.92)}
.sc-cmd{font-family:'Consolas','Monaco','Courier New',monospace;color:#508ec9;font-size:14px}
.sc-mention{color:#68a8da;font-weight:600;background:rgba(104,168,218,.12);border-radius:4px;padding:0 2px}
.sc-agent .agent-task-card{background:#2f3136}
.sc-agent-bar{display:block;height:3px;margin:-8px 14px 0;border-radius:3px;background:rgba(255,255,255,.08);overflow:hidden;position:relative;z-index:1}
.sc-agent-bar span{display:block;height:100%;width:72%;border-radius:inherit;background:#6fbf73}
.sc-scene.is-on .sc-agent-bar span{animation:sc-grow 3.4s ease-in-out 1.2s both}
@keyframes sc-grow{from{width:4%}}

/* ============================================================
   The desktop app's frame: the strip of communities and the channel
   column (mssgs-electron index.css .primary-sidebar, .server-channels;
   channels/channels-view.js), on .full-view's #2c2d32.
   ============================================================ */
.sc-desk{position:absolute;left:50%;top:50%;display:flex;height:440px;transform:translate(-50%,-50%);border-radius:14px;background:#2c2d32;border:1px solid rgba(255,255,255,.08);box-shadow:0 30px 70px -20px rgba(0,0,0,.55),0 10px 26px -12px rgba(0,0,0,.4);overflow:hidden}
.sc-desk-main:empty{display:none}
.sc-desk-main{display:flex;flex-direction:column;flex:1;min-width:0}
.sc-strip{display:flex;flex-direction:column;align-items:center;gap:8px;width:70px;padding:12px 0;flex:none}
.sc-strip .server-item{position:relative;display:flex;justify-content:center;width:100%}
.sc-strip .server-item-image{width:40px;height:40px;overflow:hidden;border-radius:6px;background:#000}
.sc-strip .server-item-image img{display:block;width:100%;height:100%;object-fit:cover}
.sc-strip .sc-strip-dm{background:#4a7c59}
.sc-strip .active-indicator{position:absolute;left:0;top:2px;bottom:2px;width:3px;background:#fff;border-radius:0 4px 4px 0}
.sc-strip .servers-separator{width:32px;height:2px;background:#36373c;margin:2px 0;border-radius:1px}
.sc-s .server-channels{display:flex;flex-direction:column;width:260px;flex:none;margin-top:10px;border:1px solid #393a3f;border-bottom:none;border-right:none;border-top-left-radius:10px}
.sc-s .server-header{display:flex;align-items:center;gap:2px;min-height:36px;padding:8px 14px;border-bottom:1px solid #393a3f}
.sc-s .server-header .sc-h1{flex:1;min-width:0;color:#dfe0e2;font-size:12px;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sc-s .server-header-search{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;color:#9ca3af;font-size:15px}
.sc-s .server-channels-list{display:flex;flex-direction:column;gap:1px;padding:6px 6px 10px}
.sc-s .channel-item{display:flex;flex-flow:row wrap;align-items:center;align-content:flex-start;column-gap:6px;row-gap:2px;padding:8px 12px;border-radius:8px;color:#9b9ca2;font-size:15px;font-weight:500;position:relative}
.sc-s .channel-item.active{background:linear-gradient(135deg,rgba(255,255,255,.12) 0%,rgba(255,255,255,.06) 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 3px rgba(0,0,0,.1);color:#fff}
.sc-s .channel-item.in-voice{background:rgba(74,222,128,.08);color:#4ade80}
.sc-s .channel-item.in-voice .channel-icon{color:#4ade80}
.sc-s .channel-icon{width:16px;height:16px;flex-shrink:0}
.sc-s .channel-icon svg{display:block;margin-top:1px}
.sc-s .channel-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sc-s .channel-indicators{display:flex;align-items:center;gap:6px;margin-left:auto;flex-shrink:0}
.sc-s .channel-category{display:flex;align-items:center;gap:4px;padding:8px 8px 4px 4px;margin-top:8px;color:#8b8d93;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.02em}
.sc-s .channel-category-chevron{display:flex;width:12px;height:12px;flex-shrink:0}
.sc-s .channel-category-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sc-s .channel-voice-users{color:#b9bbbe;font-size:11px;font-weight:600;padding:2px 8px;border-radius:8px;background:rgba(255,255,255,.08);line-height:1.4;letter-spacing:.3px}
.sc-s .channel-voice-live{color:#fff;font-size:10px;font-weight:700;letter-spacing:.5px;padding:1px 6px;border-radius:6px;background:#ed4245;line-height:1.5}
.sc-s .channel-watch-party-indicator{display:inline-flex;align-items:center;gap:4px;color:#b9bbbe;font-size:11px;font-weight:600;padding:2px 8px;border-radius:8px;background:rgba(237,66,69,.14);line-height:1.4}
.sc-s .channel-watch-party-dot{width:6px;height:6px;border-radius:50%;background:#ed4245;box-shadow:0 0 6px rgba(237,66,69,.8)}
.sc-s .channel-voice-user-stack{display:flex;align-items:center;width:100%;padding:0 0 0 22px;margin-top:4px}
.sc-s .channel-voice-user-face{position:relative;flex-shrink:0;margin-right:5px}
.sc-s .channel-voice-user-avatar{width:24px;height:24px;border-radius:2px;overflow:hidden;border:1px solid #2b2d31;position:relative}
.sc-s .channel-voice-user-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.sc-s .channel-voice-user-avatar.speaking{border-color:rgba(144,238,144,.9);box-shadow:0 0 0 1.6px rgba(144,238,144,.9),0 0 7px rgba(74,124,89,.55)}
.sc-scene.is-on .channel-voice-user-avatar.speaking{animation:sc-speak 1.1s ease-in-out infinite alternate}
.sc-scene.is-on .channel-voice-user-face:nth-child(2) .speaking{animation-duration:.8s;animation-delay:.3s}
@keyframes sc-speak{0%{box-shadow:0 0 0 1px rgba(144,238,144,.9),0 0 4px rgba(74,124,89,.55)}60%{box-shadow:0 0 0 2.5px rgba(144,238,144,.9),0 0 10px rgba(74,124,89,.55)}100%{box-shadow:0 0 0 1.2px rgba(144,238,144,.9),0 0 5px rgba(74,124,89,.55)}}
.sc-s .channel-voice-user-mark{position:absolute;right:-4px;bottom:-4px;width:13px;height:13px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#1e1f22;color:#b5bac1;border:1px solid #2b2d31;font-size:9px}
.sc-s .channel-voice-user-live{position:absolute;top:-3px;right:-3px;width:8px;height:8px;border-radius:50%;background:#ed4245;border:1px solid #1e1f22;box-shadow:0 0 6px rgba(237,66,69,.8)}
.sc-s .user-img{width:100%;height:100%;border-radius:4px;overflow:hidden;display:flex;position:relative}

/* A label the page puts beside the app: the site's own type, so it never
   reads as part of the app. */
.sc-note{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:rgba(255,253,244,.94);color:var(--green-700);font:650 13px/1.2 var(--font-sans);box-shadow:0 6px 18px rgba(0,0,0,.18);white-space:nowrap}
.sc-note .sc-i{font-size:14px}

/* channels: the column on the left; each row's kind hangs off the row,
   level with its name, joined to it by a hairline. */
.sc-desk--channels{left:31%;overflow:visible}
.sc-desk--channels .sc-note{position:absolute;left:calc(100% + 34px);top:19px;translate:0 -50%}
.sc-desk--channels .sc-note::before{content:'';position:absolute;right:100%;top:50%;width:34px;height:1px;background:rgba(255,253,244,.7)}

/* voice-channel: you join, the row turns green. */
.sc-desk--voice .sc-joins{background:rgba(74,222,128,.08);color:#4ade80}
.sc-desk--voice .sc-joins .channel-icon{color:#4ade80}
.sc-scene.is-on .sc-desk--voice .sc-joins{animation:sc-join .3s ease 4.1s both}
@keyframes sc-join{from{background:transparent;color:#9b9ca2}}
.sc-count{display:grid}
.sc-count>span{grid-area:1/1}
.sc-tap--join{left:46%;top:58%}

/* ============================================================
   Calls (mssgs-electron chat-view/voice-channel-view.css,
   components/voice-controls-pill.css, floating-voice-controls.css,
   components/dialog-modal.css).
   ============================================================ */
.sc-s .voice-channel-view{position:relative;display:flex;flex-direction:column;width:330px;flex:1;background:#1a1a1d;border-top:1px solid #393a3f;margin-top:10px}
.sc-s .voice-channel-view>*{grid-area:1/1}
.sc-s .voice-channel-view{display:grid;align-items:stretch}
.sc-s .voice-idle-content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px 18px}
.sc-s .voice-tile-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.sc-s .voice-tile{position:relative;isolation:isolate;width:120px;height:100px;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center;outline:3px solid transparent;outline-offset:-3px}
.sc-s .voice-tile.idle-tile{width:86px;height:76px}
.sc-s .voice-tile-blur{position:absolute;inset:-14%;z-index:-3;filter:blur(24px) saturate(1.35) brightness(.5)}
.sc-s .voice-tile-blur img{width:100%;height:100%;object-fit:cover}
.sc-s .voice-tile-avatar{position:relative;width:clamp(44px,30%,104px);aspect-ratio:1;border-radius:12px;overflow:hidden;box-shadow:0 6px 20px rgba(0,0,0,.45)}
.sc-s .idle-tile .voice-tile-avatar{width:40px;border-radius:10px}
.sc-s .voice-tile-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.sc-s .voice-tile-muted{position:absolute;bottom:6px;right:6px;width:22px;height:22px;border-radius:50%;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;color:#ed4245}
.sc-s .voice-tile-ring{position:absolute;inset:0;border-radius:inherit;z-index:3;box-shadow:inset 0 0 0 1px rgba(0,0,0,.55)}
.sc-s .voice-tile.speaking,.sc-s .voice-container.speaking{outline-color:#22c55e;box-shadow:0 0 0 1px #22c55e,0 0 16px rgba(34,197,94,.45)}
.sc-scene.is-on .sc-talk{animation:sc-talk 1.3s ease-in-out infinite}
.sc-scene.is-on .sc-talk2{animation:sc-talk 1s ease-in-out .5s infinite}
@keyframes sc-talk{0%,100%{outline-color:#22c55e;box-shadow:0 0 0 1px #22c55e,0 0 10px rgba(34,197,94,.3)}50%{outline-color:#22c55e;box-shadow:0 0 0 2.5px #22c55e,0 0 22px rgba(34,197,94,.55)}30%,80%{outline-color:rgba(34,197,94,.4)}}
.sc-s .voice-tile-name{position:absolute;display:flex;align-items:center;gap:5px;left:6px;bottom:6px;max-width:calc(100% - 40px);overflow:hidden;white-space:nowrap;font-size:11px;font-weight:600;color:#fff;background:rgba(0,0,0,.5);padding:2px 7px;border-radius:5px;z-index:2}
.sc-s .voice-tile-name-avatar .user-img{width:14px;height:14px;border-radius:3px}
.sc-s .voice-tile-name-avatar img{width:100%;height:100%;object-fit:cover}
.sc-s .voice-idle-bottom{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:4px}
.sc-s .voice-idle-channel-name{font-size:18px;font-weight:700;color:#fff}
.sc-s .voice-idle-summary{font-size:13px;color:#8b8d91;text-align:center;max-width:280px}
.sc-s .voice-join-btn{display:flex;align-items:center;padding:10px 28px;border-radius:24px;font-size:15px;font-weight:600;border:1px solid rgba(74,222,128,.25);background:rgba(74,222,128,.15);color:#4ade80;margin-top:4px;box-shadow:0 2px 10px rgba(0,0,0,.2)}
.sc-s .voice-stage{display:flex;flex-direction:column;align-items:center;min-height:0;width:100%;position:relative}
.sc-s .voice-top-bar{display:flex;align-items:center;gap:6px;width:100%;padding:10px 16px;font-size:13px;color:#8b8d91;background:rgba(255,255,255,.03);border-bottom:1px solid rgba(255,255,255,.06)}
.sc-s .voice-top-bar-icon{display:flex;font-size:14px}
.sc-s .voice-top-bar-channel{font-weight:600;color:#e1e3e6}
.sc-s .voice-top-bar-sep{color:#4b4d52}
.sc-s .voice-top-bar-count{color:#6b6d72}
.sc-s .voice-center{position:relative;display:grid;flex:1;width:100%;min-height:0;padding:14px}
.sc-s .voice-center>*{grid-area:1/1}
.sc-s .voice-stage-main{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);padding:14px 14px 0;width:100%;flex:1}
.sc-s .voice-center .voice-stage-main{padding:0}
.sc-s .voice-stage-main .voice-container,.sc-s .voice-screenshare{position:relative;display:flex;align-items:center;justify-content:center;width:auto;height:auto;border-radius:12px;overflow:hidden;background:#101013}
.sc-s .voice-stage-main .voice-tile{width:auto;height:auto;min-height:96px}
.sc-s .voice-controls-pill{display:flex;flex-direction:column;align-items:center;gap:6px;margin:10px auto 14px;padding:8px 10px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);box-shadow:0 2px 12px rgba(0,0,0,.25);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.sc-s .voice-pill-info{display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}
.sc-s .voice-pill-info-icon{display:flex;color:#4ade80;font-size:14px}
.sc-s .voice-pill-info-name{font-size:12px;font-weight:600;color:#e1e3e6;max-width:140px;overflow:hidden;text-overflow:ellipsis}
.sc-s .voice-pill-info-sep{color:#4b4d52;font-size:12px}
.sc-s .voice-pill-info-duration{font-size:12px;color:#8b8d91;font-variant-numeric:tabular-nums}
.sc-s .voice-pill-buttons{display:flex;align-items:center;gap:6px}
.sc-s .voice-pill-btn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.08);color:#dcddde;font-size:18px}
.sc-s .voice-pill-btn.active{background:rgba(74,124,89,.35);color:#90ee90;box-shadow:0 0 0 1px rgba(144,238,144,.35)}
.sc-s .voice-pill-btn.disconnect{background:#ed4245;color:#fff}

/* voice-channel: the column beside the voice pane; idle, then in. */
.sc-desk--voice{width:540px}
.sc-desk--voice .server-channels{width:200px}
.sc-desk--voice .voice-channel-view{border-left:1px solid #393a3f;border-top-left-radius:10px}
.sc-desk--voice .voice-stage-main{grid-template-rows:repeat(2,minmax(0,1fr))}
.sc-tap--join{left:66%;top:66%}

/* screen-share: the pane alone, wider. */
.sc-desk--share{width:540px;height:420px}
.sc-desk--share .voice-channel-view{width:100%;margin:0;border:0}
.sc-desk--share .voice-stage-main{height:100%;padding:0}
.sc-share{display:flex;flex-direction:column;gap:6px;min-height:0}
.sc-s .voice-screenshare{flex:1;min-height:0;aspect-ratio:16/9;align-self:center;max-width:100%}
.sc-share-pic{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.sc-s .voice-stage-rail{display:flex;justify-content:center}
.sc-s .voice-stage-rail-track{display:flex;gap:8px;padding:2px}
.sc-s .voice-tile.railed{width:112px;height:63px;border-radius:10px;min-height:0}
.sc-s .railed .voice-tile-avatar{width:30px;border-radius:8px}
.sc-s .voice-stage-rail .voice-tile-name{font-size:10px;left:4px;bottom:4px;padding:1px 5px}
.sc-scene.is-on .sc-pill-share .sc-screen-btn{animation:sc-btn-on .2s linear 2.3s both}
.sc-pill-share .sc-screen-btn{background:rgba(74,124,89,.35);color:#90ee90;box-shadow:0 0 0 1px rgba(144,238,144,.35)}
@keyframes sc-btn-on{from{background:rgba(255,255,255,.08);color:#dcddde;box-shadow:none}}
.sc-tap--screen{left:50.5%;top:85%}

/* call-ask: the confirm over the DM. */
.sc-s .dm-header-call-button{margin-left:auto;display:flex;padding:6px;border-radius:4px;color:#b9bbbe;font-size:18px}
.sc-s .dialog-overlay{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;padding:20px;border-radius:16px;background:rgba(0,0,0,.85)}
.sc-s .dialog-modal{width:100%;max-width:330px;background:#36393f;border-radius:8px;border:1px solid #585c62;box-shadow:0 10px 25px rgba(0,0,0,.3)}
.sc-s .dialog-header{padding:20px 20px 0}
.sc-s .dialog-title{margin:0;font-size:18px;font-weight:600;color:#fff}
.sc-s .dialog-body{padding:15px 20px 20px}
.sc-s .dialog-description{margin:0;color:#b9bbbe;font-size:14px;line-height:1.4}
.sc-s .dialog-actions{display:flex;flex-wrap:wrap;gap:10px;padding:0 20px 20px;justify-content:flex-end}
.sc-s .dialog-button{padding:8px 16px;border-radius:4px;font-size:14px;font-weight:500;min-width:80px;text-align:center}
.sc-s .dialog-button-cancel{background:#40444b;border:1px solid #52535a;color:#b9bbbe}
.sc-s .dialog-button-confirm{background:#4a7c59;border:1px solid #5a8c69;color:#fff}
.sc-win--call .sc-ringing{display:flex;justify-content:center}
.sc-win--call .sc-ringing .voice-controls-pill{margin:2px auto 0}
.sc-scene.is-on .sc-win--call .dm-header-call-button{animation:sc-callbtn .1s linear 4.2s both}
.sc-win--call .dm-header-call-button{color:#57f287}
@keyframes sc-callbtn{from{color:#b9bbbe}}
.sc-tap--phone{left:79%;top:23%}
.sc-tap--call{left:68%;top:57%}

/* call-float: the floating bar bottom-right of the chat. */
.sc-win--float{overflow:visible}
.sc-win--float .sc-win-body{padding-bottom:124px}
.sc-s .floating-voice-controls{position:absolute;right:24px;bottom:78px;z-index:6}
.sc-s .floating-voice-controls .voice-controls-pill{margin:0;background:rgba(40,40,48,.72)}
.sc-s .floating-voice-speakers{position:absolute;bottom:100%;right:0;display:flex;gap:10px;padding:14px 14px 0;overflow:hidden}
.sc-s .floating-voice-speaker{width:34px;height:34px;border-radius:6px;overflow:hidden;background:#101013;box-shadow:0 0 0 2px rgba(144,238,144,.9),0 0 10px rgba(74,124,89,.5),0 2px 8px rgba(0,0,0,.45)}
.sc-s .floating-voice-speaker img{width:100%;height:100%;object-fit:cover}
.sc-scene.is-on .sc-speaker{animation:sc-speaker 2.4s ease-in-out 1.2s infinite}
@keyframes sc-speaker{0%,100%{transform:translateY(44px)}15%,70%{transform:none}}

/* ============================================================
   The chat window, message rows and composer (mssgs-electron
   chat-view/chat-view.css, user/user-image.css, chat-input/
   chat-input.css), dark theme, scoped to the stage.
   ============================================================ */
.sc-s{font-family:ui-sans-serif,-apple-system,system-ui,'Segoe UI',Helvetica,Arial,sans-serif;color:#fafdfd;line-height:1;-webkit-font-smoothing:antialiased;text-align:left}
.sc-s *{box-sizing:border-box}
.sc-s .sc-i{display:inline-block;flex:none;vertical-align:-.125em}
.sc-s .user-img{display:flex;flex:none;border-radius:4px;overflow:hidden;position:relative;background:#000}
.sc-s .user-img>img{display:block;width:100%;height:100%;object-fit:cover}
.sc-s .chat-view{position:absolute;left:50%;top:50%;width:480px;transform:translate(-50%,-50%);display:flex;flex-direction:column;border-radius:14px;background:#323338;border:1px solid rgba(255,255,255,.08);box-shadow:0 30px 70px -20px rgba(0,0,0,.55),0 10px 26px -12px rgba(0,0,0,.4)}
.sc-s .chat-view-header{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 15px;border-bottom:1px solid #393a3f;border-radius:14px 14px 0 0;background:#323338}
.sc-head-title{font-size:14px;font-weight:600;color:#dfe0e2}
.sc-head-sub{font-size:12px;color:#9b9ca2}
.sc-hash{color:#80848e;font-weight:700;font-size:18px}
.sc-s .chat-view-messages{display:flex;flex-direction:column;justify-content:flex-end;min-height:290px;padding:12px 0 6px}
.sc-s .chat-message{display:flex;flex-direction:column;padding:3px 12px;position:relative;border-radius:4px;margin-top:10px}
.sc-s .chat-message:first-child{margin-top:0}
.sc-s .chat-message-main{display:flex;gap:8px;align-items:flex-start;width:100%}
.sc-s .chat-message-image-container{width:38px;min-height:16px;display:flex;justify-content:center;flex-shrink:0;position:relative}
.sc-s .chat-message-text-container{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;position:relative}
.sc-s .view-message-header{display:flex;align-items:center;gap:4px}
.sc-s .user-name-style{font-weight:600;font-size:15px;color:#949ba4}
.sc-s .view-message-header-date{color:#9b9ca2;font-size:11px;margin-left:8px;vertical-align:baseline;position:static}
.sc-s .view-message-header-time{color:#aeb0b5;font-size:11px}
.sc-s .chat-message-text-inline{color:#dfe0e2;font-size:15px;line-height:1.375;overflow-wrap:anywhere;padding-right:24px}
.sc-s .chat-message:has(.chat-message-image-container:empty){margin-top:2px}
/* The composer: a glass field with the app's buttons on its right. */
.sc-s .chat-input-container{position:relative;margin:0 12px 12px}
.sc-s .chat-input-wrapper{position:relative;min-height:44px;padding:2px;border-radius:8px;background:rgba(255,255,255,.035);box-shadow:rgba(0,0,0,.12) 0 2px 8px}
.sc-s .chat-input-wrapper::after{content:'';position:absolute;inset:0;border-radius:8px;padding:1px;background:conic-gradient(from 270deg at 50% 50%,rgb(200 200 210/30%) 0deg,rgba(255,255,255,.08) 60deg,rgb(160 160 170/3%) 120deg,rgb(180 180 190/3%) 180deg,rgb(190 190 200/3%) 240deg,rgba(255,255,255,.08) 300deg,rgb(133 121 121/25%) 360deg);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}
.sc-s .chat-input-view{position:relative;display:flex;align-items:center;min-height:40px;padding:0 8px;font-size:15px}
.sc-s .chat-input-box{position:relative;flex:1;min-width:0;display:grid;align-items:center;color:#dcddde;font-size:15px;line-height:1.375;white-space:nowrap;overflow:hidden}
.sc-s .chat-input-box>*{grid-area:1/1}
.sc-ph{color:#72767d;overflow:hidden;text-overflow:ellipsis}
.sc-cbtns{display:flex;gap:6px;flex:none;margin-left:8px}
.sc-cbtn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;background:#393a40;color:#dcddde}
.sc-cbtn svg{width:18px;height:18px}
.sc-cbtn-gif{width:auto;padding:0 6px}
.sc-s .gif-button-border{border:2px solid #b8b9bb;border-radius:4px;padding:2px 4px;display:flex}
.sc-s .gif-button-text{font-size:10px;font-weight:700;letter-spacing:.5px}

/* ---- voice-memo (components/voice-recorder.css, audio-attachment.css) ---- */
/* The recorder takes the whole field, over the buttons, as the app hides
   the input view while it records. */
.sc-bar--rec .chat-input-box{position:static}
.sc-s .sc-rec{position:absolute;inset:0;z-index:2;padding:0 6px;border-radius:8px;background:#36373c}
.sc-s .voice-recorder-bar{display:flex;align-items:center;gap:8px;padding:0 0 0 0;min-width:0}
.sc-s .voice-recorder-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;flex-shrink:0;color:#dcddde;font-size:16px;background:linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.02));box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 0 0 1px rgba(255,255,255,.05)}
.sc-s .voice-recorder-send-btn{color:#fff;background:linear-gradient(135deg,rgba(255,255,255,.2),rgba(255,255,255,.06));box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 0 0 1px rgba(255,255,255,.1),0 1px 4px rgba(0,0,0,.2)}
.sc-s .voice-recorder-rec-info{flex:1;display:flex;align-items:center;gap:10px;min-width:0;margin-left:8px}
.sc-s .voice-recorder-rec-dot{width:8px;height:8px;border-radius:50%;background:#f87171;flex-shrink:0}
.sc-scene.is-on .voice-recorder-rec-dot{animation:voice-recorder-pulse 1.6s ease-out infinite}
@keyframes voice-recorder-pulse{0%{transform:scale(.95);box-shadow:0 0 0 0 rgba(248,113,113,.45)}70%{transform:scale(1);box-shadow:0 0 0 7px rgba(248,113,113,0)}100%{transform:scale(.95);box-shadow:0 0 0 0 rgba(248,113,113,0)}}
.sc-s .voice-recorder-rec-label,.sc-s .voice-recorder-timer{font-size:13px;color:#cfd0d4;flex-shrink:0}
.sc-s .voice-recorder-timer{min-width:30px;opacity:.85;font-variant-numeric:tabular-nums}
.sc-timer{display:inline-grid}.sc-timer>span{grid-area:1/1}
.sc-s .voice-recorder-waves{display:flex;align-items:center;gap:3px;flex:1;height:22px;overflow:hidden}
.sc-s .voice-recorder-wave-bar{display:inline-block;width:3px;border-radius:2px;background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,.25))}
.sc-s .voice-recorder-wave-bar:nth-child(1){height:40%}.sc-s .voice-recorder-wave-bar:nth-child(2){height:70%;animation-delay:.1s}.sc-s .voice-recorder-wave-bar:nth-child(3){height:50%;animation-delay:.2s}.sc-s .voice-recorder-wave-bar:nth-child(4){height:90%;animation-delay:.3s}.sc-s .voice-recorder-wave-bar:nth-child(5){height:55%;animation-delay:.4s}.sc-s .voice-recorder-wave-bar:nth-child(6){height:75%;animation-delay:.5s}.sc-s .voice-recorder-wave-bar:nth-child(7){height:45%;animation-delay:.6s}
.sc-scene.is-on .voice-recorder-wave-bar{animation-name:voice-recorder-wave;animation-duration:1s;animation-timing-function:ease-in-out;animation-iteration-count:infinite}
@keyframes voice-recorder-wave{0%,100%{transform:scaleY(.45);opacity:.6}50%{transform:scaleY(1.1);opacity:1}}
.sc-s .voice-recorder-stop-square{width:11px;height:11px;border-radius:2px;background:#fff}
.sc-s .voice-recorder-preview-info{flex:1;display:flex;align-items:center;gap:8px;min-width:0}
.sc-s .voice-recorder-preview-time,.sc-s .voice-recorder-preview-duration{font-size:11px;color:#9b9ca2;min-width:28px;font-variant-numeric:tabular-nums}
.sc-s .voice-recorder-preview-time{text-align:right}
.sc-s .voice-recorder-progress-bar,.sc-s .audio-attachment-progress-bar{flex:1;height:4px;border-radius:2px;background:rgba(255,255,255,.06);overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
.sc-s .voice-recorder-progress-fill,.sc-s .audio-attachment-progress-fill{height:100%;width:0;border-radius:2px;background:linear-gradient(90deg,rgba(255,255,255,.55),rgba(255,255,255,.25))}
.sc-s .audio-attachment-progress-fill{width:40%}
.sc-scene.is-on .sc-memo .audio-attachment-progress-fill{animation:sc-grow-w 2.6s linear 5.4s both}
@keyframes sc-grow-w{from{width:0}}
.sc-s .audio-attachment{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;max-width:320px;margin-top:2px;background:linear-gradient(135deg,rgba(255,255,255,.05),rgba(255,255,255,.015));box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 0 0 1px rgba(255,255,255,.05),0 1px 4px rgba(0,0,0,.18)}
.sc-s .audio-attachment-play-btn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;flex:none;color:#fff;font-size:20px;background:linear-gradient(135deg,rgba(255,255,255,.2),rgba(255,255,255,.06));box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 0 0 1px rgba(255,255,255,.1)}
.sc-s .audio-attachment-content{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0}
.sc-s .audio-attachment-info{display:flex;align-items:center;gap:8px;font-size:13px;color:#dcddde}
.sc-s .audio-attachment-icon{display:flex;color:#90ee90;font-size:16px}
.sc-s .audio-attachment-name{flex:1;font-weight:600}
.sc-s .audio-attachment-volume-icon{display:flex;color:#9b9ca2;font-size:14px}
.sc-s .audio-attachment-progress-row{display:flex;align-items:center;gap:8px;font-size:11px;color:#9b9ca2;font-variant-numeric:tabular-nums}
.sc-tap--mic{left:72.5%;top:85.5%}.sc-tap--stop{left:71%;top:85.5%}.sc-tap--vsend{left:79.5%;top:85.5%}

/* ---- stickers (media-picker/media-picker.css) ---- */
.sc-s .media-picker{position:absolute;right:0;bottom:calc(100% + 8px);z-index:4;width:300px;display:flex;flex-direction:column;border-radius:12px;background:rgba(40,40,48,.86);-webkit-backdrop-filter:blur(40px) saturate(1.8);backdrop-filter:blur(40px) saturate(1.8);border:1px solid rgba(255,255,255,.12);box-shadow:0 8px 32px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.08)}
.sc-s .media-picker-header{display:flex;flex-direction:column;gap:10px;padding:12px 14px;border-radius:12px 12px 0 0;background:rgb(44 44 44/30%);border-bottom:1px solid rgba(255,255,255,.08)}
.sc-s .media-picker-header-row{display:flex;justify-content:center;height:22px;align-items:center}
.sc-s .media-picker-title{color:#fff;font-size:16px;font-weight:600}
.sc-s .media-picker-mode-switch{display:flex;gap:2px;padding:3px;background:rgb(35 35 35);border:1px solid rgb(136 136 136/25%);border-radius:10px}
.sc-s .media-picker-mode-btn{flex:1;padding:6px 10px;text-align:center;border:1px solid transparent;border-radius:8px;color:#b9bbbe;font-size:13px;font-weight:600}
.sc-s .media-picker-mode-btn.active{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.12);color:#fafdfd}
.sc-s .media-picker-search{position:relative}
.sc-s .media-picker-search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:rgb(97 97 101);display:flex;font-size:16px}
.sc-s .media-picker-search-input{display:block;padding:9px 14px 9px 38px;background:#2c2d32;border:1px solid rgb(136 136 136/35%);border-radius:10px;color:#72767d;font-size:14px}
.sc-s .media-picker-content{padding:10px;border-radius:0 0 12px 12px;background:rgb(44 44 44/20%)}
.sc-s .gif-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.sc-s .gif-grid-item{border-radius:10px;overflow:hidden;border:2px solid rgba(255,255,255,.06);background:rgba(255,255,255,.03);aspect-ratio:1}
.sc-s .gif-grid-item img{display:block;width:100%;height:100%;padding:8px;object-fit:contain}
.sc-scene.is-on .sc-picked{animation:sc-press .5s ease 3s both}
@keyframes sc-press{50%{transform:scale(.9);border-color:rgba(144,238,144,.7)}}
.sc-sticker img{display:block;width:150px;height:150px;object-fit:contain}
.sc-s .sc-win--stickers{top:58%}
.sc-tap--gif{left:79%;top:92%}.sc-tap--sticker{left:73%;top:43%}

/* ---- whiteboard (components/whiteboard.css) ---- */
.sc-s .whiteboard-overlay{position:absolute;inset:-1px;z-index:6;display:flex;align-items:center;justify-content:center;border-radius:14px;background:rgba(0,0,0,.85)}
.sc-s .whiteboard-container{display:flex;flex-direction:column;width:390px;border-radius:12px;overflow:hidden;background:#1e1f22;box-shadow:0 8px 32px rgba(0,0,0,.5)}
.sc-s .whiteboard-header{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid rgba(255,255,255,.12);background:rgba(40,40,48,.55);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.sc-s .whiteboard-title{font-size:15px;font-weight:600;color:#dcddde}
.sc-s .whiteboard-close-btn{display:flex;color:#b5bac1;font-size:20px}
.sc-s .whiteboard-send-btn{display:flex;align-items:center;gap:6px;padding:6px 14px;border-radius:8px;font-size:14px;font-weight:500;color:#fff;background:rgba(74,124,89,.3);border:1px solid rgba(74,124,89,.4)}
.sc-s .whiteboard-canvas{background:#fff;aspect-ratio:4/3}
.sc-s .whiteboard-canvas svg,.sc-drawing svg{display:block;width:100%;height:100%}
.sc-ink{fill:none;stroke-width:9;stroke-linecap:round;stroke-linejoin:round}
.sc-scene.is-on .sc-draw .sc-ink{stroke-dasharray:1;animation:sc-ink .9s ease-in-out both}
.sc-scene.is-on .sc-draw .sc-ink-1{animation-delay:1s}.sc-scene.is-on .sc-draw .sc-ink-2{animation-delay:1.8s}.sc-scene.is-on .sc-draw .sc-ink-3{animation-delay:2.5s;animation-duration:1.1s}.sc-scene.is-on .sc-draw .sc-ink-4{animation-delay:3.5s;animation-duration:.7s}
@keyframes sc-ink{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
.sc-s .whiteboard-toolbar{display:flex;align-items:center;gap:12px;padding:10px 14px;border-top:1px solid rgba(255,255,255,.12);background:rgba(40,40,48,.55)}
.sc-s .whiteboard-colors{display:flex;gap:4px}
.sc-s .whiteboard-color-swatch{width:20px;height:20px;border-radius:50%;border:2px solid transparent}
.sc-s .whiteboard-color-swatch.active{border-color:#5865f2;box-shadow:0 0 0 2px rgba(88,101,242,.4)}
.sc-s .whiteboard-tools{display:flex;gap:4px;margin-left:auto}
.sc-s .whiteboard-tool-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;background:#393a40;color:#b5bac1;font-size:18px}
.sc-drawing{width:220px;border-radius:8px;overflow:hidden;background:#fff;margin-top:2px}
.sc-tap--wbsend{left:73%;top:19%}

/* ---- gift (chat-view/coin-drop-card.css) ---- */
.sc-s .coin-drop-card{position:relative;display:flex;align-items:center;gap:16px;max-width:400px;margin-top:6px;padding:14px 16px;border-radius:16px;overflow:hidden;border:1px solid rgba(255,214,107,.32);background:linear-gradient(135deg,rgba(212,165,49,.2) 0%,rgba(60,50,22,.55) 55%,rgba(28,29,34,.7) 100%);box-shadow:inset 0 1px 0 rgba(255,235,170,.18),0 8px 24px rgba(0,0,0,.3);color:#fff}
.sc-s .coin-drop-sheen{position:absolute;inset:0;background:linear-gradient(160deg,rgba(255,235,170,.14) 0%,rgba(255,235,170,.06) 35%,rgba(255,235,170,0) 60%)}
.sc-s .coin-drop-art-wrap{position:relative;flex:none}
.sc-s .coin-drop-art{display:block;width:72px;height:72px;object-fit:contain;filter:drop-shadow(0 8px 16px rgba(0,0,0,.45))}
.sc-scene.is-on .coin-drop-art{animation:sc-coin 1.6s ease-in-out 1s 2}
@keyframes sc-coin{50%{transform:translateY(-6px) rotate(-6deg)}}
.sc-s .coin-drop-body{position:relative;display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.sc-s .coin-drop-eyebrow{display:flex;align-items:center;gap:5px;font-size:12px;color:rgba(255,255,255,.72)}
.sc-s .coin-drop-eyebrow-icon{display:inline-flex;color:#ffd66b;font-size:13px}
.sc-s .coin-drop-headline{font-size:20px;font-weight:800;line-height:1.15;color:#ffd66b}
.sc-s .coin-drop-sub{font-size:13px;color:rgba(255,255,255,.78);line-height:1.3}
.sc-s .coin-drop-action{display:flex;align-items:center;gap:10px;margin-top:6px;flex-wrap:wrap}
.sc-s .coin-drop-timer{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:rgba(255,255,255,.6)}
.sc-s .coin-drop-pickup{border-radius:999px;padding:9px 18px;font-size:13px;font-weight:700;color:#2a1f05;background:linear-gradient(135deg,#f2c14e,#d99a1e);box-shadow:0 4px 12px rgba(0,0,0,.3)}
.sc-s .coin-drop-state{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.1);color:#c7f5cf}
.sc-s .sc-swapline.sc-swapline{display:grid}.sc-swapline>*{grid-area:1/1}
.sc-tap--pickup{left:72%;top:70%}

/* ---- streak (channels/dm-channels.css) ---- */
.sc-dmlist{position:absolute;left:50%;top:50%;width:330px;transform:translate(-50%,-50%);padding:10px;border-radius:14px;background:#2c2d32;border:1px solid rgba(255,255,255,.08);box-shadow:0 30px 70px -20px rgba(0,0,0,.55)}
.sc-s .dm-channels-view{display:flex;flex-direction:column;gap:6px}
.sc-s .dm-channel-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.035);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
.sc-s .dm-avatars{position:relative;width:40px;height:40px;flex-shrink:0}
.sc-s .dm-avatars .user-img{border-radius:10px}
.sc-s .dm-avatar-streak{position:absolute;right:-7px;bottom:-5px;z-index:2}
.sc-s .dm-streak-badge{display:flex;align-items:center;gap:1px;height:16px;padding:0 4px 0 3px;border-radius:4px;background:rgba(24,25,29,.94);border:1px solid rgba(255,255,255,.14);box-shadow:0 1px 3px rgba(0,0,0,.45)}
.sc-s .dm-streak-icon{width:11px;height:11px}
.sc-s .dm-streak-count{font-size:10px;font-weight:700;line-height:1;color:#ff9500}
.sc-s .dm-streak-count.sc-count{display:inline-grid}
.sc-s .dm-streak-count.sc-count>span{grid-area:1/1}
.sc-s .channel-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.sc-s .dm-name-line{display:flex;align-items:center;gap:6px}
.sc-s .dm-user-name{color:#dbdee1;font-weight:500;font-size:15px}
.sc-s .dm-subtext{display:flex;align-items:center;gap:4px;font-size:12px;color:#949ba4;white-space:nowrap}
.sc-s .dm-subtext.actionable{font-weight:600}
.sc-s .dm-subtext-icon{display:flex;font-size:10px}
.sc-s .dm-subtext-blue,.sc-s .sc-blue{color:#508ec9}
.sc-scene.is-on .sc-dm-top .dm-streak-badge{animation:sc-bump .5s ease 2.4s}
@keyframes sc-bump{50%{transform:scale(1.35)}}

/* ---- one-time (components/dm-attachment-container.css, -viewer.css) ---- */
.sc-s .dm-attachment-container{position:relative;display:flex;align-items:center;gap:10px;max-width:200px;padding:10px 14px;border-radius:8px;font-size:14px;font-weight:500}
.sc-s .dm-attachment-unviewed{color:#e84c3d;background:linear-gradient(135deg,rgba(232,76,61,.18),rgba(232,76,61,.12));box-shadow:0 1px 4px rgba(232,76,61,.12),inset 0 0 0 1px rgba(232,76,61,.35)}
.sc-s .dm-attachment-viewed{color:#8e8e93;background:rgba(142,142,147,.08);box-shadow:inset 0 0 0 1px rgba(142,142,147,.18)}
.sc-s .dm-attachment-icon-box{width:20px;height:20px;border-radius:5px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.sc-s .dm-attachment-unviewed .dm-attachment-icon-box{background:linear-gradient(135deg,#e84c3d,#d44332);box-shadow:0 1px 4px rgba(232,76,61,.3);color:#fff;font-size:10px}
.sc-s .dm-attachment-viewed .dm-attachment-icon-box{border:1.5px solid #8e8e93}
.sc-s .dm-attachment-label{flex:1;white-space:nowrap;letter-spacing:-.2px}
.sc-s .dm-attachment-chevron{display:flex;opacity:.7;font-size:16px}
.sc-onetime{margin-top:4px}
.sc-s .dm-attachment-viewer-overlay{position:absolute;inset:-1px;z-index:6;display:flex;align-items:center;justify-content:center;border-radius:14px;background:rgba(0,0,0,.9)}
.sc-s .dm-attachment-viewer-container{position:relative;width:190px;height:340px;border-radius:20px;overflow:hidden;background:#1a1a1a}
.sc-viewer-pic{width:100%;height:100%;object-fit:cover}
.sc-viewer-bar{position:absolute;left:10px;right:10px;top:10px;height:3px;border-radius:2px;background:rgba(255,255,255,.3)}
.sc-viewer-bar span{display:block;height:100%;border-radius:2px;background:#fff}
.sc-scene.is-on .sc-viewer-bar span{animation:sc-grow-w 2.9s linear 1.5s both}
.sc-viewer-head{position:absolute;left:12px;top:20px;display:flex;flex-direction:column;gap:2px;font-size:12px;color:rgba(255,255,255,.8);text-shadow:0 1px 3px rgba(0,0,0,.6)}
.sc-viewer-head b{font-size:13px;color:#fff}
.sc-tap--view{left:40%;top:66%}

/* ---- ghost (ghost mode bar, dividers, badges, blur on lost focus) ---- */
.sc-s .ghost-mode-bar{display:flex;align-items:center;gap:8px;padding:7px 12px;margin:-12px 0 8px;font-size:11px;font-weight:500;color:rgba(255,255,255,.75);background:linear-gradient(180deg,rgba(24,24,27,.98),rgba(30,30,35,.98));border-bottom:1px solid rgba(255,255,255,.08)}
.sc-s .ghost-mode-bar-icon{display:flex;color:rgba(255,255,255,.6);font-size:14px}
.sc-s .ghost-messages-divider{display:flex;align-items:center;margin:8px 12px 2px}
.sc-s .ghost-messages-divider-line{flex:1;height:1px;background:rgba(200,120,40,.25)}
.sc-s .ghost-messages-divider-text{padding:0 12px;color:rgba(200,120,40,.6);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}
.sc-s .chat-message.one-view{background:rgba(180,110,40,.04)}
.sc-s .ghost-avatar-overlay{position:absolute;bottom:0;right:-2px;width:18px;height:18px;border-radius:4px;display:flex;align-items:center;justify-content:center;background:#323338;color:rgba(200,120,40,.7)}
.sc-s .sc-bar--ghost .chat-input-wrapper{background:#2e2822c9;box-shadow:rgb(53,42,32) 0 2px 8px}
.sc-s .sc-bar--ghost .chat-input-wrapper::after{background:conic-gradient(from 270deg at 50% 50%,rgb(190 126 63/49%) 0deg,rgba(200,120,40,.12) 60deg,rgb(117 80 43/4%) 120deg,rgb(171 86 0/4%) 180deg,rgb(189 124 58/4%) 240deg,rgba(200,120,40,.12) 300deg,rgba(200,120,40,.35) 360deg)}
.sc-s .sc-bar--ghost .sc-cbtn-ghost{color:#f0a64a;background:rgba(200,120,40,.22)}
.sc-scene.is-on .sc-ghost{animation:sc-in .5s cubic-bezier(.2,.8,.2,1) var(--d) both,sc-blur .4s ease 4.4s both}
.sc-ghost{filter:blur(10px)}
@keyframes sc-blur{from{filter:none}to{filter:blur(10px)}}
.sc-win--ghost .chat-view-messages{min-height:300px}

/* ---- lock (chat-view/dm-lock-gate.css) ---- */
.sc-s .dm-lock-gate{position:absolute;inset:-1px;z-index:6;display:flex;align-items:center;justify-content:center;border-radius:14px;background:rgba(12,14,18,.55);-webkit-backdrop-filter:blur(28px) saturate(1.1);backdrop-filter:blur(28px) saturate(1.1)}
.sc-s .dm-lock-card{display:flex;flex-direction:column;align-items:center;gap:10px;padding:20px 28px 22px;border-radius:24px;color:#fff;background:rgba(40,40,48,.45);border:1px solid rgba(255,255,255,.12);box-shadow:0 8px 32px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.08)}
.sc-s .dm-lock-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);font-size:22px}
.sc-s .dm-lock-title{font-size:17px;font-weight:600}
.sc-s .dm-lock-subtitle{font-size:13px;color:rgba(255,255,255,.6)}
.sc-s .dm-lock-dots{display:flex;gap:16px;margin:2px 0}
.sc-s .dm-lock-dot{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.92);border:1.5px solid rgba(255,255,255,.92)}
.sc-scene.is-on .sc-dot{animation:sc-dot .15s linear var(--d) both}
@keyframes sc-dot{from{background:transparent;border-color:rgba(255,255,255,.35)}}
.sc-s .dm-lock-keypad{display:grid;grid-template-columns:repeat(3,46px);grid-auto-rows:46px;gap:9px}
.sc-s .dm-lock-key{display:flex;align-items:center;justify-content:center;font-size:19px;color:#fff;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:50%}
.sc-win--lock .chat-view-messages{min-height:350px}

/* ---- game-invite (games/game-invite-card.css) ---- */
.sc-s .game-invite-card-wrapper{max-width:340px;margin-top:4px}
.sc-s .game-invite-card{display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:16px;background:#1c2733}
.sc-s .game-invite-header{display:flex;align-items:center;gap:10px}
.sc-s .game-invite-icon-tile{display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex-shrink:0;border-radius:10px;background:linear-gradient(135deg,#6bb3f0,#3e7bc4);color:#fff}
.sc-s .game-invite-header-text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.sc-s .game-invite-eyebrow{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.4px;color:#6bb3f0}
.sc-s .game-invite-title{font-size:17px;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sc-s .game-invite-code-chip{display:flex;align-items:center;align-self:flex-start;height:26px;padding:0 10px;border-radius:8px;background:rgba(255,255,255,.08);color:rgba(255,255,255,.85);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;font-weight:700;letter-spacing:1px}
.sc-s .game-invite-join-button{display:flex;align-items:center;justify-content:center;width:100%;height:40px;border-radius:10px;background:linear-gradient(135deg,rgba(46,158,91,.9),rgba(60,174,106,.9));border:1px solid rgba(144,238,144,.3);box-shadow:0 2px 8px rgba(46,158,91,.3);color:#fff;font-size:15px;font-weight:600}
.sc-s .sc-joining{opacity:.65}
.sc-tap--joingame{left:43%;top:70%}

/* ---- four-board (games/four-board.css, four-overlay.css) ---- */
.sc-s .sc-four{position:absolute;left:50%;top:50%;width:380px;transform:translate(-50%,-50%);display:flex;flex-direction:column;gap:6px;padding:14px 16px 16px;border-radius:16px;background:#1a1d24;border:1px solid rgba(255,255,255,.08);box-shadow:0 30px 70px -20px rgba(0,0,0,.6)}
.sc-four-head{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#e8e9ec}
.sc-s .battleship-players-row{display:flex;gap:8px;justify-content:center}
.sc-s .battleship-player-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.06);font-size:12px;font-weight:600;color:#dcddde}
.sc-chip-dot{width:10px;height:10px;border-radius:50%}
.sc-chip-dot.green{background:#6bbf4d}.sc-chip-dot.coral{background:#f28c80}
.sc-s .battleship-turn-row{display:flex}
.sc-s .battleship-turn-banner{flex:1;display:flex;align-items:center;justify-content:center;min-height:44px;font-size:26px;font-weight:800;color:#4cbe7a;text-shadow:0 0 14px rgba(46,158,91,.45)}
.sc-s .four-board-frame{background:linear-gradient(180deg,#242c4c,#1a2138);border:1px solid rgba(107,179,240,.14);border-radius:18px;padding:10px;box-shadow:0 10px 28px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.06)}
.sc-s .four-board{position:relative;display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr);gap:5px;aspect-ratio:1}
.sc-s .four-cell{position:relative}
.sc-s .four-cell-hole{position:absolute;inset:0;border-radius:28%;background:#263054;box-shadow:inset 0 2px 5px rgba(0,0,0,.4),inset 0 -1px 0 rgba(255,255,255,.05)}
.sc-s .four-board-stones{position:absolute;inset:0}
.sc-s .four-stone{position:absolute;width:12.5%;height:12.5%}
.sc-s .four-stone-disc{position:absolute;inset:12%;border-radius:50%;box-shadow:inset 0 -3px 6px rgba(0,0,0,.28),inset 0 3px 5px rgba(255,255,255,.3),0 2px 4px rgba(0,0,0,.45)}
.sc-s .four-stone-disc.green{background:radial-gradient(circle at 35% 28%,#90d66c 0%,#6bbf4d 50%,#52a13a 100%);border:2.5px solid #3d7d2b}
.sc-s .four-stone-disc.coral{background:radial-gradient(circle at 35% 28%,#ffb4a5 0%,#f28c80 50%,#de7261 100%);border:2.5px solid #b1503f}
.sc-scene.is-on .sc-drop{animation:sc-drop calc(.12s * var(--rows)) cubic-bezier(.5,0,1,1) var(--d) both}
@keyframes sc-drop{from{transform:translateY(calc(var(--rows) * -100%));opacity:1}0.1%{opacity:1}}
.sc-s .four-stone.win .four-stone-disc{box-shadow:inset 0 -3px 6px rgba(0,0,0,.25),inset 0 2px 3px rgba(255,255,255,.25),0 0 0 2.5px rgba(250,204,77,.9),0 0 14px rgba(250,204,77,.7)}
.sc-scene.is-on .four-stone.win .four-stone-disc{animation:sc-win-ring .3s linear 5.1s both,fourStoneWin 1s ease-in-out 5.4s infinite}
@keyframes sc-win-ring{from{box-shadow:inset 0 -3px 6px rgba(0,0,0,.28),inset 0 3px 5px rgba(255,255,255,.3),0 2px 4px rgba(0,0,0,.45)}}
@keyframes fourStoneWin{0%,100%{filter:brightness(1)}50%{filter:brightness(1.35)}}

/* ---- game-bar (games/game-pill.css) ---- */
.sc-pills{position:absolute;left:50%;top:21%;transform:translateX(-50%);display:grid;z-index:7}
.sc-pills>*{grid-area:1/1;justify-self:center}
.sc-s .game-pill-inner{position:relative;display:flex;align-items:center;gap:10px;padding:8px 16px 8px 8px;border-radius:18px;white-space:nowrap;background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.02)),rgba(20,20,25,.78);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),inset 0 0 0 1px rgba(255,255,255,.06),0 4px 20px rgba(0,0,0,.4)}
.sc-s .game-pill-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;color:#fff;background:linear-gradient(135deg,rgba(255,255,255,.2),rgba(255,255,255,.06));box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 0 0 1px rgba(255,255,255,.1)}
.sc-s .game-pill-text{display:flex;flex-direction:column;gap:3px}
.sc-s .game-pill-title{font-size:12px;font-weight:600;line-height:1.1;color:#e8e9ec}
.sc-s .game-pill-status{font-size:10px;font-weight:500;line-height:1.1;color:rgba(255,255,255,.55)}
.sc-scene.is-on .sc-pills .sc-in .game-pill-icon{animation:sc-bump .6s ease calc(var(--d) + .4s) 2}

/* ---- watch-party (watch-party/watch-party-media.css, as creatorsmp.css ports it) ---- */
.sc-win--party{width:480px}
.sc-win--party .chat-view-messages{min-height:0;justify-content:flex-start;padding-top:0}
.sc-wp{margin:12px 12px 10px;border-radius:12px;border:4px solid transparent;background:linear-gradient(#000,#000) padding-box,linear-gradient(160deg,rgba(96,102,112,.9),rgba(52,56,63,.92)) border-box;box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 10px 32px rgba(0,0,0,.55);overflow:hidden}
.sc-wp-picture{position:relative;aspect-ratio:16/9;overflow:hidden;background:#000}
.sc-wp-shot{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.sc-scene.is-on .sc-wp-shot{animation:sc-kb 8s ease-out both}
@keyframes sc-kb{from{transform:scale(1.08) translateX(2%)}to{transform:scale(1)}}
.sc-s .watch-party-emote-layer{position:absolute;inset:0;overflow:hidden;z-index:2}
.sc-s .watch-party-emote-pop{position:absolute;bottom:14%;display:flex;flex-direction:column;align-items:center;gap:2px;opacity:0}
.sc-scene.is-on .sc-wp-pop{animation:sc-rise 2.4s ease-out var(--d) both}
@keyframes sc-rise{0%{transform:translateY(60px) scale(.6);opacity:0}18%{opacity:1;transform:translateY(30px) scale(1.05)}100%{transform:translateY(-70px);opacity:0}}
.sc-wp-pop-1{left:12%}.sc-wp-pop-2{left:46%}.sc-wp-pop-3{left:76%}
.sc-s .watch-party-emote-glyph{font-size:28px;line-height:1;filter:drop-shadow(0 2px 6px rgba(0,0,0,.6))}
.sc-s .watch-party-emote-name{font-size:10px;font-weight:600;color:rgba(255,255,255,.85);text-shadow:0 1px 3px rgba(0,0,0,.8)}
.sc-s .watch-party-pill-bar{display:flex;flex-direction:column;gap:7px;padding:8px 10px 9px;background:linear-gradient(180deg,rgba(27,29,34,.95),rgba(16,18,22,.98));border-top:1px solid rgba(255,255,255,.08)}
.sc-s .watch-party-pill-transport,.sc-s .watch-party-pill-tools{display:flex;align-items:center;gap:8px}
.sc-s .watch-party-pill-spacer{flex:1}
.sc-s .watch-party-clock{font-size:11px;font-variant-numeric:tabular-nums;color:#d7dbe0}
.sc-s .watch-party-clock-total{color:#9aa1a9}
.sc-s .watch-party-bar-track{flex:1;min-width:30px;height:4px;border-radius:3px;background:rgba(255,255,255,.18)}
.sc-s .watch-party-bar-fill{display:block;height:100%;width:52%;border-radius:3px;background:linear-gradient(90deg,#4da06c,#7fd6a1)}
.sc-scene.is-on .watch-party-bar-fill{animation:sc-wpbar 7.6s linear both}
@keyframes sc-wpbar{from{width:44%}}
.sc-s .watch-party-sync-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border:1px solid rgba(144,238,144,.3);border-radius:8px;background:rgba(74,124,89,.28);color:#a9e3bd;font-size:11px;font-weight:600;white-space:nowrap}
.sc-s .watch-party-sync-dot{width:6px;height:6px;border-radius:50%;background:#05cb67;box-shadow:0 0 6px rgba(5,203,103,.8)}
.sc-s .watch-party-pill-button{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#d3d7dc;font-size:15px;background:linear-gradient(160deg,rgba(255,255,255,.09),rgba(255,255,255,.04))}
.sc-s .watch-party-member-stack{display:flex;align-items:center}
.sc-s .watch-party-member-avatar{width:22px;height:22px;border-radius:8px;overflow:hidden;border:2px solid rgba(10,12,14,.9);margin-left:-6px}
.sc-s .watch-party-member-avatar:first-child{margin-left:0}
.sc-s .watch-party-member-avatar img{width:100%;height:100%;object-fit:cover;display:block}

/* ---- poll (chat-view/poll-card.css) ---- */
.sc-win--poll .chat-view-messages{min-height:0}
.sc-s .poll-card{display:flex;flex-direction:column;width:100%;max-width:380px;margin-top:6px;padding:14px 16px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.1);background:linear-gradient(135deg,rgba(74,124,89,.16) 0%,rgba(255,255,255,.04) 55%,rgba(255,255,255,.03) 100%);box-shadow:0 4px 16px rgba(0,0,0,.18)}
.sc-s .poll-card-eyebrow{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#90ee90}
.sc-s .poll-card-eyebrow-icon{display:inline-flex;font-size:13px}
.sc-s .poll-card-question{margin-top:5px;font-size:16px;font-weight:650;line-height:1.3;color:#fff}
.sc-s .poll-card-hint{margin-top:3px;font-size:12px;color:#b5bac1}
.sc-s .poll-card-options{display:flex;flex-direction:column;gap:6px;margin-top:12px}
.sc-s .poll-card-option{display:flex;align-items:flex-start;gap:10px;padding:8px 12px 9px;border-radius:10px;border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.03);color:#fff}
.sc-s .poll-card-option.is-mine{border-color:rgba(144,238,144,.34);background:rgba(74,124,89,.16)}
.sc-s .poll-card-option-mark{display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px;width:18px;height:18px;margin-top:1px;border-radius:50%;border:1.5px solid rgba(255,255,255,.28);color:#fff;font-size:12px}
.sc-s .is-mine .poll-card-option-mark{border-color:rgba(144,238,144,.6);background:linear-gradient(135deg,rgba(74,124,89,.95),rgba(106,156,121,.95))}
.sc-s .poll-card-option-mark svg{stroke-width:3}
.sc-scene.is-on .sc-vote{animation:sc-vote .25s linear 1.4s both}
.sc-scene.is-on .sc-vote .poll-card-option-mark{animation:sc-vote-mark .25s linear 1.4s both}
@keyframes sc-vote{from{border-color:rgba(255,255,255,.07);background:rgba(255,255,255,.03)}}
@keyframes sc-vote-mark{from{border-color:rgba(255,255,255,.28);background:transparent;color:transparent}}
.sc-s .poll-card-option-body{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
.sc-s .poll-card-option-top{display:flex;align-items:flex-start;gap:8px}
.sc-s .poll-card-option-text{flex:1;min-width:0;font-size:14px;font-weight:500;line-height:1.35}
.sc-s .poll-card-option-figures{display:inline-flex;height:19px;align-items:center;gap:8px;white-space:nowrap;font-variant-numeric:tabular-nums}
.sc-s .poll-card-option-faces{display:inline-flex}
.sc-s .poll-card-face{margin-left:-5px;border-radius:5px;box-shadow:0 0 0 2px #2f3a34}
.sc-s .poll-card-face:first-child{margin-left:0}
.sc-s .poll-card-face .user-img{border-radius:5px}
.sc-s .poll-card-option-count{font-size:12px;color:rgba(255,255,255,.5)}
.sc-s .poll-card-option-pct{min-width:36px;text-align:right;font-size:13px;font-weight:700}
.sc-s .poll-card-option-track{display:block;height:6px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
.sc-s .poll-card-option-fill{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,rgba(74,124,89,.95),rgba(144,238,144,.85))}
.sc-scene.is-on .poll-card-option-fill{animation:sc-grow-w .9s cubic-bezier(.2,.8,.2,1) var(--d) both}
.sc-s .poll-card-footer{display:flex;align-items:center;margin-top:12px}
.sc-s .poll-card-meta{display:flex;align-items:center;gap:6px;font-size:12px;color:#949ba4}
.sc-s .poll-card-time{display:inline-flex;align-items:center;gap:4px}
.sc-tap--vote{left:30%;top:47%}

/* ---- reminder (modals/reminder-modal.css) ---- */
.sc-win--remind .chat-view-messages{min-height:400px}
.sc-s .reminder-modal-overlay{position:absolute;inset:-1px;z-index:6;display:flex;align-items:center;justify-content:center;border-radius:14px;background:rgba(0,0,0,.4)}
.sc-s .reminder-modal-container{width:410px;display:flex;flex-direction:column;border-radius:16px;overflow:hidden;background:rgba(40,40,48,.82);-webkit-backdrop-filter:blur(40px) saturate(1.8);backdrop-filter:blur(40px) saturate(1.8);border:1px solid rgba(255,255,255,.12);box-shadow:0 8px 32px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.08)}
.sc-s .reminder-modal-header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid rgba(255,255,255,.08)}
.sc-s .reminder-modal-title{font-size:17px;font-weight:600;color:#fff}
.sc-s .reminder-modal-close{color:rgba(255,255,255,.6);font-size:20px}
.sc-s .reminder-modal-content{display:flex;flex-direction:column;gap:16px;padding:16px 20px}
.sc-s .reminder-form-group{display:flex;flex-direction:column;gap:8px}
.sc-s .reminder-form-group label{color:rgba(255,255,255,.9);font-size:14px;font-weight:600}
.sc-s .reminder-message-preview{display:flex;gap:12px;padding:10px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.sc-s .reminder-message-body{display:flex;flex-direction:column;gap:4px;min-width:0}
.sc-s .reminder-message-content{color:rgba(255,255,255,.75);font-size:13px;line-height:1.4}
.sc-s .reminder-time-trigger{padding:11px 14px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);color:#fff;font-size:14px}
.sc-s .reminder-time-trigger .placeholder{color:rgba(255,255,255,.45)}
.sc-s .reminder-time-preview{padding:10px 14px;border-radius:12px;background:rgba(74,124,89,.12);border:1px solid rgba(74,124,89,.25);color:rgba(255,255,255,.75);font-size:13px;line-height:1.4}
.sc-s .reminder-time-preview strong{color:#fff}
.sc-s .reminder-modal-footer{display:flex;justify-content:space-between;gap:12px;padding:12px 20px;border-top:1px solid rgba(255,255,255,.08)}
.sc-s .reminder-cancel-button,.sc-s .reminder-confirm-button{padding:9px 16px;border-radius:10px;font-size:14px;font-weight:500;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:rgba(255,255,255,.7)}
.sc-s .reminder-confirm-button{background:rgba(74,124,89,.3);border-color:rgba(74,124,89,.4);color:#fff}
.sc-s .reminder-time-picker-modal{position:absolute;width:250px;border-radius:16px;overflow:hidden;background:rgba(40,40,48,.92);-webkit-backdrop-filter:blur(40px) saturate(1.8);backdrop-filter:blur(40px) saturate(1.8);border:1px solid rgba(255,255,255,.12);box-shadow:0 8px 32px rgba(0,0,0,.45)}
.sc-s .reminder-time-picker-header{padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.08)}
.sc-s .reminder-time-picker-title{font-size:14px;font-weight:600;color:#fff}
.sc-s .reminder-time-picker-options{padding:6px}
.sc-s .reminder-time-option{display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:10px;color:rgba(255,255,255,.65);font-size:14px}
.sc-s .reminder-time-option-icon{display:flex;font-size:15px}
.sc-scene.is-on .reminder-time-option.sc-pick{animation:sc-hover .2s linear 2.8s both}
@keyframes sc-hover{to{background:rgba(255,255,255,.08);color:#fff}}
.sc-tap--when{left:50%;top:60%}.sc-tap--day{left:47%;top:61%}.sc-tap--set{left:73%;top:80%}

/* ---- file-drop (filedrop/filedrop.css) ---- */
.sc-drop{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.sc-s .filedrop-send-sheet{width:420px;display:flex;flex-direction:column;border-radius:16px;color:#fff;background:rgba(40,40,48,.6);-webkit-backdrop-filter:blur(40px) saturate(1.8);backdrop-filter:blur(40px) saturate(1.8);border:1px solid rgba(255,255,255,.12);box-shadow:0 30px 70px -20px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.08)}
.sc-s .filedrop-send-header{display:flex;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid rgba(255,255,255,.08)}
.sc-s .filedrop-send-avatar .user-img{border-radius:10px}
.sc-s .filedrop-send-titles{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.sc-s .filedrop-send-title{font-size:16px;font-weight:600;letter-spacing:-.01em}
.sc-s .filedrop-send-subtitle{font-size:12px;color:rgba(255,255,255,.5)}
.sc-s .filedrop-send-close{display:flex;color:rgba(255,255,255,.6);font-size:16px}
.sc-s .filedrop-send-body{display:flex;flex-direction:column;gap:12px;padding:20px}
.sc-s .filedrop-stage{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);font-size:14px;font-weight:500}
.sc-s .filedrop-stage-icon{display:flex;color:rgba(144,238,144,.9);font-size:20px}
.sc-s .filedrop-stage-done{background:rgba(74,124,89,.18);border-color:rgba(144,238,144,.3)}
.sc-scene.is-on .sc-spin{animation:sc-spin .9s linear infinite}
@keyframes sc-spin{to{transform:rotate(360deg)}}
.sc-s .filedrop-overall{height:6px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
.sc-s .filedrop-overall-bar{height:100%;width:100%;border-radius:inherit;background:linear-gradient(90deg,rgba(74,124,89,.95),rgba(144,238,144,.85))}
.sc-scene.is-on .filedrop-overall-bar,.sc-scene.is-on .filedrop-file-progress-bar{animation:sc-grow-w 3.1s cubic-bezier(.3,.1,.6,1) 1.5s both}
.sc-s .filedrop-file-list{display:flex;flex-direction:column;gap:6px}
.sc-s .filedrop-file-row{position:relative;display:flex;align-items:center;gap:10px;padding:7px 8px 7px 7px;border-radius:10px;background:rgba(255,255,255,.04);overflow:hidden}
.sc-s .filedrop-file-thumb{width:40px;height:40px;flex-shrink:0;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:rgba(144,238,144,.95);background:rgba(74,124,89,.22);border:1px solid rgba(144,238,144,.22);font-size:16px}
.sc-s .filedrop-file-thumb-ext{font-size:8.5px;font-weight:700;letter-spacing:.04em;line-height:1;color:rgba(220,245,225,.85)}
.sc-s .filedrop-file-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.sc-s .filedrop-file-name{font-size:13px;font-weight:500}
.sc-s .filedrop-file-meta{font-size:11px;color:rgba(255,255,255,.45)}
.sc-s .filedrop-file-progress{position:absolute;left:0;right:0;bottom:0;height:2px;background:rgba(255,255,255,.06)}
.sc-s .filedrop-file-progress-bar{height:100%;width:100%;background:rgba(144,238,144,.9)}
.sc-s .filedrop-send-footer{display:flex;align-items:center;gap:10px;padding:14px 20px;border-top:1px solid rgba(255,255,255,.08)}
.sc-s .filedrop-send-summary{flex:1}
.sc-s .filedrop-btn{padding:9px 16px;border-radius:10px;font-size:14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:rgba(255,255,255,.75)}
.sc-s .filedrop-btn-primary{background:rgba(74,124,89,.3);border-color:rgba(74,124,89,.4);color:#fff}
.sc-tap--fdsend{left:76%;top:79%}

/* ---- roles, premium-badge: a channel beside its member list
   (components/presence-tracker.css, user/user-name-style.css) ---- */
.sc-s .sc-win--roles{width:510px}
.sc-roles{display:flex;min-height:330px;margin:-12px 0 -6px}
.sc-roles-chat{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:flex-end;padding:12px 0 8px}
.sc-s .chat-view-presence{width:180px;flex-shrink:0;border-left:1px solid #393a3f;background:#323338}
.sc-s .server-persences{padding:12px 10px}
.sc-mgroup+.sc-mgroup{margin-top:6px}
.sc-s .persences-header{padding:0 4px;font-size:11px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:#949ba4}
.sc-s .persences-members-list{display:flex;flex-direction:column;gap:4px;padding:6px 0}
.sc-s .persences-member-item{display:flex;align-items:center;gap:8px;padding:4px 6px;border-radius:8px;border:1px solid transparent;background:linear-gradient(90deg,rgba(255,255,255,.03),rgba(255,255,255,0)) padding-box,linear-gradient(90deg,rgba(255,255,255,.06),rgba(255,255,255,0)) border-box}
.sc-s .member-avatar{padding:2px;border-radius:6px}
.sc-s .member-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.sc-s .member-text .user-name-style{font-size:14px;display:inline-flex;align-items:center;gap:4px;min-height:18px}
.sc-s .member-last-read{font-size:10px;color:#9096a1;line-height:1.15}
.sc-s .user-badges{display:inline-flex;align-items:center;margin-left:2px}
.sc-s .user-badge{display:inline-flex;width:20px;height:20px;border-radius:50%}
.sc-s .user-badge img{width:100%;height:100%;object-fit:contain}
.sc-s .view-message-header .user-name-style{display:inline-flex;align-items:center;gap:4px}
.sc-scene.is-on .sc-badge-pop{animation:sc-pop .5s cubic-bezier(.3,1.6,.5,1) 1s both}
.sc-badge-pop{display:inline-flex}

/* ---- story, story-private, story-ring (stories/story-viewer.css) ---- */
.sc-story{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
/* Laid out as wide as the app's viewer (386 px, where its top bar holds the
   name, the time and the badge in every language) and zoomed to fit. */
.sc-s .story-viewer-frame{position:relative;height:686px;zoom:.7;aspect-ratio:9/16;background:#0a0a0a;border-radius:24px;overflow:hidden;box-shadow:0 25px 50px -12px rgba(0,0,0,.5)}
.sc-story-media{position:absolute;inset:0;display:grid}
.sc-story-media>*{grid-area:1/1}
.sc-s .story-viewer-image{width:100%;height:100%;object-fit:cover}
.sc-scene.is-on .sc-story-media img{animation:sc-kb 7s ease-out both}
.sc-scene.is-on .sc-story-media .sc-in{animation:sc-in .5s ease 3.4s both,sc-kb 7s ease-out 3.4s both}
.sc-scene.is-on .sc-story-media .sc-out{animation:sc-kb 7s ease-out both,sc-out .4s ease 3.6s forwards}
.sc-s .story-progress-container{position:absolute;top:0;left:0;right:0;display:flex;gap:3px;padding:12px 12px 0;z-index:20}
.sc-s .story-progress-segment{flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,.3);overflow:hidden}
.sc-s .story-progress-fill{height:100%;border-radius:2px;background:#fff;width:100%}
.sc-seg-todo{width:0!important}
.sc-scene.is-on .sc-seg-run{animation:sc-grow-w 6s linear var(--d,0s) both}
.sc-scene.is-on .sc-seg-run2{animation:sc-grow-w 3.4s linear both}
.sc-scene.is-on .sc-seg-run3{animation:sc-grow-w 4s linear 3.4s both}
.sc-s .story-viewer-top-overlay{position:absolute;top:0;left:0;right:0;z-index:15;display:flex;align-items:center;justify-content:space-between;padding:24px 12px 16px;background:linear-gradient(to bottom,rgba(0,0,0,.6),transparent)}
.sc-s .story-viewer-user{display:flex;align-items:center;gap:8px;min-width:0}
.sc-s .story-viewer-avatar .user-img{border-radius:6px}
.sc-s .story-viewer-user-info{display:flex;flex-direction:column;gap:2px}
.sc-s .story-viewer-username{color:#fff;font-size:14px;font-weight:600;text-shadow:0 1px 4px rgba(0,0,0,.6)}
.sc-s .story-viewer-time{color:rgba(255,255,255,.7);font-size:12px;white-space:nowrap}
.sc-s .story-viewer-public-badge,.sc-s .story-viewer-private-badge{display:inline-flex;align-items:center;gap:5px;flex-shrink:0;margin-left:8px;padding:3px 9px 3px 8px;border-radius:999px;color:#fff;font-size:10px;font-weight:700;line-height:1.4;white-space:nowrap;text-shadow:0 1px 2px rgba(0,0,0,.4)}
.sc-s .story-viewer-public-badge{text-transform:uppercase;letter-spacing:.6px;background:linear-gradient(135deg,rgba(74,124,89,.9),rgba(90,140,105,.9));border:1px solid rgba(144,238,144,.35);box-shadow:0 2px 6px rgba(74,124,89,.3)}
.sc-s .story-viewer-private-badge{max-width:200px;letter-spacing:.4px;background:linear-gradient(135deg,rgba(64,92,138,.9),rgba(80,110,160,.9));border:1px solid rgba(160,196,255,.35);box-shadow:0 2px 6px rgba(64,92,138,.3)}
.sc-s .story-viewer-private-badge-name{overflow:hidden;text-overflow:ellipsis}
.sc-s .story-viewer-top-right{display:flex;gap:2px}
.sc-sv-btn{display:flex;padding:4px;color:#fff;font-size:20px}
.sc-s .story-reply-bar{position:absolute;bottom:0;left:0;right:0;z-index:25;display:flex;align-items:center;gap:8px;padding:12px;background:linear-gradient(to top,rgba(0,0,0,.7),transparent)}
.sc-s .story-reply-input{flex:1;min-width:0;display:grid;align-items:center;height:38px;padding:0 14px;border-radius:20px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.1);color:#fff;font-size:13px;white-space:nowrap;overflow:hidden}
.sc-s .story-reply-input>*{grid-area:1/1}
.sc-s .story-reply-input .sc-ph{color:rgba(255,255,255,.55)}
.sc-s .story-reply-send{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;flex:none;background:rgba(255,255,255,.12);color:rgba(255,255,255,.7)}
.sc-scene.is-on .sc-typed .sc-type{animation:sc-type 1.2s steps(14,end) var(--d) both}
.sc-dmlist--left{left:29%;width:270px}
.sc-s .dm-avatar-wrapper{width:40px;height:40px;padding:2px;border-radius:10px}
.sc-s .dm-avatar-wrapper .user-img{width:100%!important;height:100%!important;border-radius:6px}
.sc-s .dm-avatar-wrapper.has-story{background:linear-gradient(45deg,#5865f2,#3b82f6,#06b6d4);box-shadow:0 0 6px rgba(88,101,242,.5)}
.sc-s .dm-avatar-wrapper.has-story-seen{background:rgba(255,255,255,.2);box-shadow:none}
.sc-story--side{left:74%}
.sc-story--side .story-viewer-frame{height:557px}
.sc-dmlist--left .dm-avatars{width:44px;height:44px}
.sc-tap--ring{left:21%;top:35%}

/* ---- map-share, map-friend, map-activity (map/map-modal.css) ---- */
.sc-map{position:absolute;left:50%;top:50%;width:520px;height:430px;transform:translate(-50%,-50%);border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.1);box-shadow:0 30px 70px -20px rgba(0,0,0,.55);background:#1b1d22}
.sc-map-ground{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.sc-map-credit{position:absolute;right:10px;bottom:2px;z-index:30;font-size:8px;line-height:1.4;color:rgba(255,255,255,.6);text-shadow:0 1px 2px rgba(0,0,0,.6);white-space:nowrap}
.sc-s .map-marker{position:absolute;display:flex;flex-direction:column;align-items:center;transform:translate(-50%,-100%)}
.sc-s .map-marker.sc-pop{transform-origin:50% 100%}
.sc-scene.is-on .map-marker.sc-pop{animation:sc-pin .5s cubic-bezier(.3,1.6,.5,1) var(--d,0s) both}
@keyframes sc-pin{from{opacity:0;transform:translate(-50%,-80%) scale(.4)}to{opacity:1;transform:translate(-50%,-100%)}}
.sc-s .map-marker-bubble{display:flex;padding:3px;border-radius:12px;background:rgba(255,255,255,.15);box-shadow:0 2px 12px rgba(0,0,0,.35)}
.sc-s .map-marker-avatar .user-img{border-radius:9px}
.sc-s .map-marker-self .map-marker-bubble{background:rgba(34,197,94,.2);border:1.5px solid rgba(34,197,94,.4)}
.sc-s .map-marker-pointer{width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:7px solid rgba(255,255,255,.15);margin-top:-1px}
.sc-s .map-marker-self .map-marker-pointer{border-top-color:rgba(34,197,94,.35)}
.sc-s .map-marker-pill{margin-top:2px;padding:3px 8px;border-radius:999px;background:rgba(0,0,0,.65);display:flex;align-items:center;gap:4px;white-space:nowrap}
.sc-s .map-pill-activity-icon{display:flex;color:#fff;font-size:12px}
.sc-s .map-pill-activity-label{font-size:11px;font-weight:500;color:rgba(255,255,255,.9)}
.sc-s .map-pill-name{font-size:11px;font-weight:600;color:#fff}
.sc-s .map-pill-time{font-size:10px;font-weight:500;color:rgba(255,255,255,.7)}
.sc-s .sc-followed .map-marker-avatar{border-radius:9px;box-shadow:0 0 0 2.5px #4caf50}
.sc-scene.is-on .sc-followed .map-marker-avatar{animation:sc-ring .2s linear 3.4s both}
@keyframes sc-ring{from{box-shadow:none}}
.sc-s .map-overlay-top{position:absolute;top:14px;left:14px;right:14px;z-index:10;display:flex;flex-direction:column;gap:8px}
.sc-s .map-overlay-top-row{display:flex;justify-content:flex-end}
.sc-s .map-top-buttons{display:flex;gap:6px}
.sc-s .map-glass-btn,.sc-s .map-out-of-range-bar,.sc-s .map-sharing-bar{background:rgba(30,30,36,.6);-webkit-backdrop-filter:blur(24px) saturate(1.6);backdrop-filter:blur(24px) saturate(1.6);border:1px solid rgba(255,255,255,.1);box-shadow:0 4px 16px rgba(0,0,0,.3)}
.sc-s .map-glass-btn{display:flex;align-items:center;justify-content:center;width:44px;height:36px;border-radius:12px;color:rgba(255,255,255,.75);font-size:16px}
.sc-s .map-out-of-range-bar{display:inline-flex;align-items:center;gap:10px;padding:8px 14px 8px 8px;border-radius:16px}
.sc-s .map-out-of-range-avatars{display:flex}
.sc-s .map-oor-avatar{border-radius:8px;overflow:hidden;border:2px solid rgba(30,30,36,.7);margin-left:-8px}
.sc-s .map-oor-avatar:first-child{margin-left:0}
.sc-s .map-out-of-range-label{display:flex;flex-direction:column;gap:2px}
.sc-s .map-oor-title{font-size:14px;font-weight:600;color:#fff}
.sc-s .map-oor-subtext{font-size:12px;color:rgba(255,255,255,.45)}
.sc-s .map-overlay-bottom{position:absolute;bottom:14px;left:14px;right:14px;z-index:10}
.sc-s .map-sharing-bar{display:flex;align-items:center;gap:10px;padding:14px 16px;border-radius:16px;font-size:14px;font-weight:500;color:#fff}
.sc-s .map-sharing-bar-icon,.sc-s .map-sharing-bar-chevron{display:flex;font-size:16px}
.sc-s .map-sharing-bar-text{flex:1}
.sc-s .map-action-bar{position:absolute;bottom:14px;left:14px;right:14px;z-index:20;padding:8px 10px;border-radius:16px;background:rgba(30,30,36,.82);-webkit-backdrop-filter:blur(32px) saturate(1.8);backdrop-filter:blur(32px) saturate(1.8);border:1px solid rgba(255,255,255,.1);box-shadow:0 6px 24px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.06)}
.sc-s .map-action-bar-main{display:flex;align-items:center;gap:10px}
.sc-s .map-action-bar-avatar .user-img{border-radius:10px}
.sc-s .map-action-bar-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.sc-s .map-action-bar-name{font-size:14px;font-weight:600;color:#fff}
.sc-s .map-action-bar-meta{font-size:12px;color:rgba(255,255,255,.4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sc-s .map-action-bar-actions{display:flex;gap:6px;flex-shrink:0}
.sc-s .map-action-btn{display:flex;align-items:center;gap:5px;padding:7px 12px;border-radius:10px;font-size:13px;font-weight:600;color:rgba(255,255,255,.8);background:rgba(255,255,255,.08)}
.sc-s .map-action-btn>span{display:flex;align-items:center;gap:5px}
.sc-follow-on{color:#4caf50}
.sc-tap--pin{left:62%;top:30%}.sc-tap--follow{left:52%;top:83%}

/* ---- qr-login (auth/auth-style.css, auth/device-link-approve.css) ---- */
.sc-auth{position:absolute;inset:0;display:grid;place-items:center}
.sc-auth>*{grid-area:1/1}
.sc-s .auth-card{width:360px;display:flex;flex-direction:column;align-items:center;padding:30px 28px 24px;border-radius:22px;border:1px solid rgba(255,255,255,.12);background:linear-gradient(135deg,rgba(22,36,30,.86),rgba(20,30,26,.8) 50%,rgba(22,36,30,.84));box-shadow:0 30px 90px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.08)}
.sc-s .auth-panel-title{margin:0 0 8px;color:#e7f7f5;font-size:22px;font-weight:700;letter-spacing:-.02em;text-align:center}
.sc-s .auth-panel-subtitle{margin:0;color:#9ca3af;font-size:13.5px;line-height:1.5;text-align:center}
.sc-s .auth-qr-code{position:relative;width:176px;height:176px;margin:18px auto 0;padding:8px;border-radius:18px;background:#fff;box-shadow:0 12px 34px rgba(0,0,0,.35);overflow:hidden}
.sc-s .auth-qr-code img{display:block;width:100%;height:100%;image-rendering:pixelated}
.sc-scan{position:absolute;left:0;right:0;top:0;height:3px;background:rgba(74,222,128,.85);box-shadow:0 0 12px rgba(74,222,128,.9);opacity:0}
.sc-scene.is-on .sc-scan{animation:sc-scan 1.6s ease-in-out .6s 2}
@keyframes sc-scan{0%{top:6%;opacity:1}50%{top:92%;opacity:1}100%{top:6%;opacity:1}}
.sc-s .auth-qr-user-code{margin-top:12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px;letter-spacing:.14em;color:rgba(255,255,255,.62)}
.sc-s .auth-qr-status{margin:10px 0 0;font-size:13.5px;color:rgba(255,255,255,.72)}
.sc-s .device-link-container{width:380px;display:flex;flex-direction:column;background:#36393f;border-radius:8px;border:1px solid #585c62;box-shadow:0 10px 25px rgba(0,0,0,.4)}
.sc-s .device-link-content{display:flex;flex-direction:column;align-items:center;gap:12px;padding:26px 26px 18px;text-align:center}
.sc-s .device-link-title{color:#fff;font-size:18px;font-weight:600}
.sc-s .device-link-body{margin:0;color:#dcddde;font-size:14px;line-height:1.5}
.sc-s .device-link-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:16px;letter-spacing:.12em;color:#fff;background:#232323;border:1px solid #585c62;border-radius:6px;padding:8px 14px}
.sc-s .device-link-footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 26px 18px;border-top:1px solid #40444b}
.sc-s .device-link-button{border-radius:4px;padding:10px 16px;font-size:14px;font-weight:500;color:#fff;background:#4f545c}
.sc-s .device-link-button.approve{background:#4a7c59}
.sc-tap--approve{left:74%;top:68%}

/* ---- The Premium page's scenes ---- */
/* A send shows at 60% until the server has it (chat-view-message.js). */
.sc-scene.is-on .sc-sending{animation:sc-in .5s cubic-bezier(.2,.8,.2,1) var(--d) both,sc-sent .3s linear var(--o) both}
@keyframes sc-sent{from{opacity:.6}to{opacity:1}}
.sc-s .attachment-file{display:flex;align-items:center;max-width:330px;margin-top:6px;padding:12px;border:1px solid #374151;border-radius:8px;background:#1f1f1f}
.sc-s .attachment-file-pdf-badge{display:flex;align-items:center;justify-content:center;width:38px;height:38px;margin-right:12px;border-radius:8px;flex-shrink:0;background:linear-gradient(135deg,#7c3aed,#9333ea);color:#fff;font-size:11px;font-weight:700;letter-spacing:.5px;box-shadow:0 2px 8px rgba(124,58,237,.35)}
.sc-file-text{flex:1;min-width:0}
.sc-file-name{color:#e5e7eb;font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sc-file-icon{display:flex;color:#9ca3af;margin-left:8px;font-size:16px}
.sc-s .video-attachment{position:relative;width:330px;aspect-ratio:16/9;margin-top:6px;border-radius:8px;overflow:hidden;background:#1f1f1f;box-shadow:0 1px 3px rgba(0,0,0,.3)}
.sc-s .video-filmstrip{display:flex;width:100%;height:100%}
.sc-s .video-filmstrip-frame{flex:1;min-width:0;height:100%;object-fit:cover;border-right:2px solid #1f1f1f}
.sc-s .video-play-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.35)}
.sc-s .video-play-button{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;font-size:20px}
.sc-s .video-duration{position:absolute;bottom:10px;right:10px;padding:4px 8px;background:rgba(0,0,0,.75);border-radius:6px;font-size:13px;font-weight:500;color:#fff}
.sc-win--long .chat-message-line+.chat-message-line{margin-top:6px}
.sc-s .chat-emote-layer{position:absolute;inset:44px 0 0;overflow:hidden;pointer-events:none;z-index:3}
.sc-s .chat-emote-pop{position:absolute;bottom:40px;display:flex;flex-direction:column;align-items:center;gap:2px;opacity:0}
.sc-scene.is-on .sc-emote{animation:chat-emote-rise 2.4s ease-out var(--d) both}
@keyframes chat-emote-rise{0%{transform:translateY(0) scale(.6);opacity:0}12%{opacity:1;transform:translateY(-30px) scale(1.05)}100%{transform:translateY(-260px) scale(.85);opacity:0}}
.sc-s .chat-emote-glyph{font-size:34px;line-height:1;filter:drop-shadow(0 2px 6px rgba(0,0,0,.5))}
.sc-s .chat-emote-name{font-size:10px;font-weight:600;color:rgba(255,255,255,.85);text-shadow:0 1px 3px rgba(0,0,0,.8)}
.sc-s .chat-emote-popover{position:absolute;bottom:calc(100% + 6px);right:4px;z-index:20;padding:4px 6px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:rgba(40,40,48,.8);-webkit-backdrop-filter:blur(40px) saturate(1.8);backdrop-filter:blur(40px) saturate(1.8);box-shadow:0 10px 30px rgba(0,0,0,.4)}
.sc-s .emote-row{display:flex;gap:2px}
.sc-s .emote-row-button{padding:4px 5px;border-radius:8px;font-size:20px;line-height:1}
.sc-s .emote-row-button:first-child{background:rgba(255,255,255,.07)}
.sc-cbtn-emote{color:#f0a3c0}
.sc-tap--emote{left:47%;top:85.5%}.sc-tap--emoji1{left:57%;top:77%}
.sc-s .dm-pin-indicator{display:flex;margin-left:auto;color:#949ba4;font-size:12px}
.sc-strip--grow{border-right:1px solid #393a3f}
.sc-desk--grow .server-channels{width:230px}
.sc-scene.is-on .sc-restore .dm-avatar-streak{animation:sc-pop .5s cubic-bezier(.3,1.6,.5,1) 1.8s both}
.sc-scene.is-on .sc-restore .dm-streak-badge{animation:sc-bump .5s ease 2.4s}

/* The card's sticker peeks over the stage's top outer corner. */
.sc-stk{top:-40px;right:-12px;--stk-w:118px;--stk-r:9deg;z-index:5}
.sc--flip .sc-stk{right:auto;left:-12px;--stk-r:-9deg}
@media (max-width:980px){
  .sc-stk,.sc--flip .sc-stk{top:-30px;right:-4px;left:auto;--stk-w:92px;--stk-r:9deg}
}
@media (max-width:560px){
  .sc-stk,.sc--flip .sc-stk{top:-26px;--stk-w:74px}
}
