/* Shin Tomo Live chat only. Never loaded on Home/feed/profile. */

/* Twitch-like room: compact text lines, no account/avatar icons and no date/time. */
.st-chat-panel{position:relative}
#stl-chat-stream.st-chat-messages{background:#232528;color:#efeff1;padding:8px 12px;scrollbar-color:#5b5b60 #232528;overflow-anchor:none}
#stl-chat-stream .stl-chat-line{position:relative;margin:0;padding:4px 32px 4px 2px;font-size:15px;line-height:1.42;overflow-wrap:anywhere;word-break:break-word}
#stl-chat-stream .stl-chat-line:hover{background:#2b2d31;border-radius:4px}
#stl-chat-stream .stl-chat-nick{font-weight:800;color:var(--stl-chat-nick-color)!important}
#stl-chat-stream .stl-chat-colon{font-weight:700;color:#aeaca7}
#stl-chat-stream .stl-chat-text{color:#efeff1}
#stl-chat-stream small{display:none!important}
#stl-chat-stream .stl-chat-mod-tools{position:absolute;right:3px;top:2px;display:none;gap:4px}
#stl-chat-stream .stl-chat-line:hover .stl-chat-mod-tools{display:inline-flex}
#stl-chat-stream .stl-chat-mod-tools button{border:0;border-radius:5px;background:#3a3c41;color:#dedee3;font-size:12px;line-height:1;padding:4px 8px;cursor:pointer}
#stl-chat-stream .stl-chat-mod-tools button:hover{background:#3d3d44;color:#fff}

.stl-chat-new{position:absolute;z-index:12;left:50%;bottom:68px;transform:translateX(-50%);border:1px solid #44464c;border-radius:999px;background:#26262c;color:#fff;padding:8px 12px;font-size:12px;font-weight:850;box-shadow:0 6px 20px rgba(0,0,0,.28);cursor:pointer}
.stl-chat-new[hidden]{display:none!important}

/* Composer stays stable while the background poll updates the rest of the Live page. */
#stl-chat-form{position:relative;align-items:center;background:#2b2d31;border-top:1px solid #3a3c41;padding:8px;gap:8px}
#stl-chat-input{height:40px;min-width:0;flex:1;border:1px solid #44464c!important;border-radius:8px!important;background:#34363b!important;color:#efeff1!important;padding:0 12px!important;outline:none}
#stl-chat-input:focus{border-color:#d42825!important;box-shadow:0 0 0 1px #d42825}
#stl-chat-input::placeholder{color:#aeaca7}
#stl-chat-form>.st-btn{min-height:40px;border-radius:8px;padding:0 12px}

.stl-chat-color-trigger{flex:0 0 36px;width:36px;height:36px;border:2px solid currentColor;border-radius:8px;color:#fff;font-weight:1000;font-size:15px;line-height:1;cursor:pointer;box-shadow:0 0 0 1px rgba(0,0,0,.28);text-shadow:0 1px 2px rgba(0,0,0,.55);transition:transform .12s ease,box-shadow .12s ease}
.stl-chat-color-trigger:hover{transform:translateY(-1px)}
.stl-chat-color-trigger:focus-visible{outline:2px solid #fff;outline-offset:2px}
.stl-chat-color-panel{position:absolute;z-index:50;right:10px;bottom:calc(100% + 8px);width:min(310px,calc(100vw - 34px));padding:16px;background:#2b2d31;color:#efeff1;border:1px solid #44464c;border-radius:12px;box-shadow:0 18px 55px rgba(0,0,0,.48)}
.stl-chat-color-panel[hidden]{display:none!important}
.stl-chat-color-title{display:flex;flex-direction:column;gap:2px;margin-bottom:12px}.stl-chat-color-title small{color:#aeaca7;font-size:12px}
.stl-chat-color-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:8px}
.stl-chat-color-swatch{aspect-ratio:1;border:2px solid rgba(255,255,255,.16);border-radius:50%;background:var(--stl-swatch);cursor:pointer;min-width:0;padding:0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.stl-chat-color-swatch:hover,.stl-chat-color-swatch:focus-visible{transform:scale(1.13);outline:2px solid #fff;outline-offset:2px}
.stl-chat-color-auto{width:100%;margin-top:12px;border:1px solid #44464c;background:#34363b;color:#efeff1;border-radius:8px;padding:8px 8px;font-weight:800;cursor:pointer}

/* The public Live header remains on-brand, but without visual noise inside messages. */
.st-chat-panel>header{background:#2b2d31;color:#efeff1;border-bottom-color:#3a3c41}
.st-chat-panel>header small{color:#aeaca7}

@media(max-width:560px){
  #stl-chat-stream.st-chat-messages{padding:8px 8px}
  #stl-chat-stream .stl-chat-line{font-size:15px;padding-top:4px;padding-bottom:4px}
  .stl-chat-color-grid{grid-template-columns:repeat(8,1fr);gap:8px}
  .stl-chat-color-panel{right:6px;bottom:calc(100% + 6px);padding:12px}
  .stl-chat-color-trigger{flex-basis:34px;width:34px;height:34px}
  #stl-chat-form{padding:8px}
}

/* 0.1.4 — Kick-like Tier badge beside the nickname. */
#stl-chat-stream .stl-chat-tier{
  display:inline-flex;
  align-items:center;
  max-width:92px;
  min-height:18px;
  margin-right:4px;
  padding:1px 4px;
  border-radius:4px;
  background:hsl(var(--stl-tier-hue) 72% 48%);
  color:#fff;
  font-size:12px;
  line-height:1.25;
  font-weight:950;
  vertical-align:1px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);
}

/* Cleaner Kick-style room heading. */
.st-chat-panel>header{justify-content:center;text-align:center;min-height:48px;align-items:center}
.st-chat-panel>header>div{display:flex;flex-direction:column;align-items:center}
.st-chat-panel>header>div>strong{font-size:15px}
.st-chat-panel>header>span[hidden]{display:none!important}
.st-chat-panel>header small{font-size:12px;margin-top:1px}

/* Tier picker sits beside the nickname colour selector. */
.stl-chat-tier-trigger{
  flex:0 0 36px;
  width:36px;
  height:36px;
  border:1px solid #44464c;
  border-radius:8px;
  background:#34363b;
  color:#ff6a5f;
  font-weight:1000;
  font-size:15px;
  line-height:1;
  cursor:pointer;
}
.stl-chat-tier-trigger:hover{background:#3a3c41}
.stl-chat-tier-trigger:focus-visible{outline:2px solid #ff6a5f;outline-offset:2px}
.stl-chat-tier-trigger[hidden]{display:none!important}
.stl-chat-tier-panel{
  position:absolute;
  z-index:51;
  left:10px;
  bottom:calc(100% + 8px);
  width:min(330px,calc(100vw - 34px));
  padding:16px;
  background:#2b2d31;
  color:#efeff1;
  border:1px solid #44464c;
  border-radius:12px;
  box-shadow:0 18px 55px rgba(0,0,0,.48);
}
.stl-chat-tier-panel[hidden]{display:none!important}
.stl-chat-tier-options{display:flex;flex-direction:column;gap:8px;max-height:240px;overflow:auto}
.stl-chat-tier-option,.stl-chat-tier-none{
  width:100%;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  border:1px solid transparent;
  border-radius:8px;
  background:#34363b;
  color:#efeff1;
  padding:8px 8px;
  text-align:left;
  cursor:pointer;
}
.stl-chat-tier-option:hover,.stl-chat-tier-none:hover,.stl-chat-tier-option.is-selected,.stl-chat-tier-none.is-selected{border-color:#ff6a5f;background:#3a3c41}
.stl-chat-tier-option>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800}
.stl-chat-tier-preview{
  display:inline-flex;
  align-items:center;
  max-width:78px;
  min-height:20px;
  padding:2px 8px;
  border-radius:4px;
  background:hsl(var(--stl-tier-hue) 72% 48%);
  color:#fff;
  font-size:12px;
  font-weight:950;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.stl-chat-tier-none{display:flex;justify-content:space-between;margin-top:8px}
.stl-chat-tier-empty{padding:8px;color:#aeaca7;font-size:13px}

/* Moderator Live editor stability: no visual flash while the theme poll is frozen. */
#st-mod-content form:focus-within{outline:1px solid color-mix(in srgb,var(--st-red-text) 28%,transparent);outline-offset:7px;border-radius:8px}

@media(max-width:560px){
  #stl-chat-stream .stl-chat-tier{max-width:70px;font-size:12px;padding-inline:4px}
  .stl-chat-tier-trigger{flex-basis:34px;width:34px;height:34px}
  .stl-chat-tier-panel{left:6px;bottom:calc(100% + 6px);padding:12px}
}

/* 0.1.5 — image-based Tier badges + Twitch/Kick-style Tier information card. */
#stl-chat-stream .stl-chat-tier-badge{
  display:inline-grid;
  place-items:center;
  width:28px;
  height:28px;
  margin:0 4px 0 0;
  padding:0;
  border:0;
  border-radius:5px;
  background:transparent;
  color:#fff;
  vertical-align:-8px;
  cursor:pointer;
  overflow:hidden;
}
#stl-chat-stream .stl-chat-tier-badge img{
  display:block!important;
  width:28px!important;
  height:28px!important;
  max-width:none!important;
  object-fit:cover;
  border-radius:5px;
}
#stl-chat-stream .stl-chat-tier-badge>span{
  display:grid;
  place-items:center;
  width:28px;height:28px;
  border-radius:5px;
  background:#44464c;
  color:#fff;
  font-size:12px;
  font-weight:950;
}
#stl-chat-stream .stl-chat-tier-badge:hover{outline:2px solid #ff6a5f;outline-offset:1px}
#stl-chat-stream .stl-chat-tier-badge:focus-visible{outline:2px solid #fff;outline-offset:2px}
/* Retire the old text-chip Tier visual without breaking older cached rows. */
#stl-chat-stream .stl-chat-tier{display:none!important}

.stl-chat-tier-preview{
  width:30px;
  height:30px;
  padding:0;
  background:transparent;
  border-radius:6px;
  overflow:hidden;
}
.stl-chat-tier-preview img{display:block;width:28px;height:28px;object-fit:cover;border-radius:5px}
.stl-chat-tier-preview b{display:grid;place-items:center;width:28px;height:28px;background:#44464c;border-radius:5px;font-size:12px}
.stl-chat-tier-option>span:nth-child(2){display:flex;flex-direction:column;gap:2px;min-width:0}
.stl-chat-tier-option>span:nth-child(2) strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stl-chat-tier-option>span:nth-child(2) small{display:block;color:#aeaca7;font-size:12px;line-height:1.25;white-space:normal;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}

.stl-tier-info-overlay{
  position:fixed;
  inset:0;
  z-index:999999;
  display:grid;
  place-items:center;
  padding:16px;
  background:rgba(0,0,0,.64);
  backdrop-filter:blur(4px);
}
.stl-tier-info-overlay[hidden]{display:none!important}
.stl-tier-info-card{
  width:min(430px,calc(100vw - 28px));
  max-height:min(720px,calc(100dvh - 28px));
  overflow:auto;
  background:#2b2d31;
  color:#efeff1;
  border:1px solid #44464c;
  border-radius:14px;
  box-shadow:0 24px 80px rgba(0,0,0,.58);
}
.stl-tier-info-user{
  display:grid;
  grid-template-columns:50px minmax(0,1fr) 38px;
  gap:8px;
  align-items:center;
  padding:12px 16px;
  border-bottom:1px solid #3a3c41;
  background:#151517;
}
.stl-tier-info-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#2f60dd;color:#fff;font-size:17px;font-weight:950;object-fit:cover}
.stl-tier-info-user div{min-width:0}
.stl-tier-info-user strong{display:block;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stl-tier-info-user small{display:block;margin-top:4px;color:#d8d8df;font-size:12px}
.stl-tier-info-x{width:36px;height:36px;border:0;border-radius:8px;background:transparent;color:#efeff1;font-size:24px;line-height:1;cursor:pointer}
.stl-tier-info-x:hover{background:#3a3c41}
.stl-tier-info-back{margin:12px 16px 4px;padding:4px 0;border:0;background:transparent;color:#ff6a5f;font-weight:850;cursor:pointer}
.stl-tier-info-carousel{display:flex;align-items:center;justify-content:center;gap:16px;padding:16px 16px;overflow-x:auto;scrollbar-width:thin}
.stl-tier-info-choice{flex:0 0 58px;width:58px;height:58px;padding:1px;border:2px solid transparent;border-radius:8px;background:#101012;cursor:pointer;overflow:hidden}
.stl-tier-info-choice img{display:block;width:56px;height:56px;object-fit:cover;border-radius:6px}
.stl-tier-info-choice span{display:grid;place-items:center;width:54px;height:54px;border-radius:6px;background:#44464c;color:#fff;font-weight:950}
.stl-tier-info-choice:hover,.stl-tier-info-choice.is-active{border-color:#d42825;transform:translateY(-1px)}
.stl-tier-info-detail{display:flex;flex-direction:column;align-items:center;text-align:center;padding:8px 24px 24px}
.stl-tier-info-hero{display:block;width:128px;height:128px;object-fit:cover;border-radius:14px;background:#101012;border:1px solid #44464c}
.stl-tier-info-detail h3{margin:12px 0 8px;font-size:17px}
.stl-tier-info-detail p{margin:0;color:#efeff1;font-size:15px;line-height:1.48;white-space:pre-wrap}
.stl-tier-info-use{margin-top:16px;border:0;border-radius:8px;padding:8px 12px;background:#d42825;color:#fff;font-weight:900;cursor:pointer}
.stl-tier-info-use.is-selected{background:#3a3c41;color:#b7ff9d}
.stl-tier-info-empty{color:#aeaca7;font-size:13px}

@media(max-width:560px){
  .stl-tier-info-overlay{padding:8px;align-items:end}
  .stl-tier-info-card{width:100%;max-height:82dvh;border-radius:15px 15px 0 0}
  .stl-tier-info-user{grid-template-columns:44px minmax(0,1fr) 36px}
  .stl-tier-info-avatar{width:42px;height:42px}
  .stl-tier-info-detail{padding-inline:16px}
}

/* 0.2.0 — cleaner Twitch/Kick inspired Live surface. */
#st-live-page.st-live-layout{align-items:start}
#st-live-page .st-live-main{min-width:0}
#st-live-page .st-live-stage{overflow:hidden;background:#232528;color:#efeff1;border-color:#34363b;border-radius:14px;box-shadow:0 14px 42px rgba(0,0,0,.22)}
#st-live-page .st-live-player{background:#000;border-radius:0;overflow:hidden}
#st-live-page .st-live-meta{padding:12px 16px;background:#2b2d31;border-top:1px solid #34363b}
#st-live-page .st-live-meta-row{align-items:center}
#st-live-page .st-live-heading{min-width:0}
#st-live-page .st-live-heading h1{font-size:17px;line-height:1.25;margin:4px 0;color:#f5f5f6}
#st-live-page .st-live-heading p{margin:4px 0 0;color:#aeaca7;font-size:13px;line-height:1.4}
#st-live-page .st-live-badge{font-size:12px;font-weight:900;color:#ff4b4b}
#st-live-page .st-live-counters>span,#st-live-page .st-heart-btn{background:#34363b;border-color:#35353a;color:#efeff1;padding:8px 8px;font-size:12px}
#st-live-page .st-heart-btn{color:#ff4d67}

/* 0.2.33 — compact bottom live telemetry: viewers + elapsed live time. */
#st-live-page .st-live-counters{display:flex;align-items:center;gap:8px}
#st-live-page .st-live-counters .st-live-viewer-count,
#st-live-page .st-live-counters .st-live-elapsed{
  display:inline-flex;align-items:center;justify-content:center;gap:4px;
  height:30px;min-height:30px;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;font-variant-numeric:tabular-nums;
}
#st-live-page .st-live-counters .st-live-viewer-count{color:#f2605f!important}
#st-live-page .st-live-counters .st-live-viewer-count b{color:#f2605f!important;font-size:13px;font-weight:850;line-height:1}
#st-live-page .st-live-viewer-icon{width:17px;height:17px;display:block;fill:none;stroke:#f2605f!important;color:#f2605f!important;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#st-live-page .st-live-counters .st-live-elapsed{color:#efeff1!important;font-size:12px;font-weight:750;letter-spacing:.01em}

/* Purchase actions sit directly below the player and disappear when inactive. */
#st-live-page .st-live-purchases[hidden],#st-live-page .st-live-actions[hidden]{display:none!important}
#st-live-page .st-live-purchases{display:flex;gap:8px;overflow-x:auto;padding:8px 8px;background:#2b2d31;border-top:1px solid #2a2a2e;scrollbar-width:thin}
#st-live-page .st-live-purchases .st-action{flex:0 0 auto;margin:0;box-shadow:none}
#st-live-page .st-live-purchases .st-purchase{min-width:min(420px,88vw);display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px 8px;border:1px solid #333338;border-radius:10px;background:#34363b;color:#efeff1}
#st-live-page .st-live-purchases .st-kicker{font-size:12px;color:#ff6a6a}
#st-live-page .st-live-purchases h3{margin:1px 0;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#st-live-page .st-live-purchases .st-price{display:inline;margin-right:8px;font-size:15px;font-weight:850}
#st-live-page .st-live-purchases small{font-size:12px;color:#aeaca7}
#st-live-page .st-live-purchases .st-btn{border:0;border-radius:8px;background:#a31c1b;color:#fff;padding:8px 12px;font-weight:850;white-space:nowrap}
#st-live-page .st-live-purchases .st-btn:disabled{background:#3a3a3e;color:#8f8f96}
#st-live-page .st-live-actions{gap:8px;margin-top:8px}
#st-live-page .st-live-actions .st-action{box-shadow:none;border-radius:11px}

/* Chat becomes the visual secondary surface, not another large card. */
#st-live-page .st-chat-panel{background:#232528;color:#efeff1;border-color:#28282c;border-radius:14px;box-shadow:0 14px 42px rgba(0,0,0,.22)}
#st-live-page .st-chat-panel>header{position:relative;min-height:46px;padding:8px 8px;background:#2b2d31;border-bottom:1px solid #2d2d31}
#st-live-page .st-chat-panel>header strong{font-size:15px}
#st-live-page .st-chat-panel>header small{font-size:12px}
.stl-chat-header-tools{position:absolute;right:8px;top:7px;display:flex;gap:4px}
.stl-chat-popout{display:grid;place-items:center;width:32px;height:32px;border-radius:7px;color:#efeff1;text-decoration:none;font-size:15px}
.stl-chat-popout:hover{background:#44464c}
#stl-chat-stream.st-chat-messages{padding:8px 8px;background:#232528}
#stl-chat-stream .stl-chat-line{display:block;position:relative;padding:4px 2px;font-size:15px;line-height:1.4;word-break:break-word}
#stl-chat-stream .stl-chat-time{display:inline-block;min-width:36px;margin-right:4px;color:#76767d;font-size:12px;vertical-align:1px}
#stl-chat-stream .stl-chat-nick{font-weight:850}
#stl-chat-stream .stl-chat-text{color:#efeff1}
#stl-chat-stream .stl-chat-emote{display:inline-block!important;visibility:visible!important;opacity:1!important;width:30px!important;height:30px!important;max-width:none!important;object-fit:contain!important;vertical-align:-9px;margin:0 2px;border:0!important;border-radius:0!important}
#stl-chat-form.stl-chat-form-enhanced{position:relative;display:flex;align-items:center;gap:8px;padding:8px;background:#2b2d31;border-top:1px solid #2d2d31}
#stl-chat-input{height:38px;min-width:0;flex:1;border:1px solid #3a3a3f;border-radius:8px!important;background:#34363b!important;color:#fff!important;padding:0 8px!important;outline:0}
#stl-chat-input:focus{border-color:#a31c1b}
#stl-chat-form>.st-btn{width:38px;height:38px;padding:0!important;border-radius:8px!important;display:grid;place-items:center;font-size:15px;background:#a31c1b!important;color:#fff!important}
.stl-chat-emote-trigger{flex:0 0 36px;width:36px;height:36px;border:1px solid #44464c;border-radius:8px;background:#34363b;color:#efeff1;font-size:17px;cursor:pointer}
.stl-chat-emote-trigger:hover{background:#333338}
.stl-chat-emote-panel{position:absolute;z-index:52;left:8px;bottom:calc(100% + 7px);width:min(340px,calc(100vw - 32px));max-height:290px;overflow:auto;padding:12px;background:#2b2d31;border:1px solid #44464c;border-radius:12px;box-shadow:0 18px 55px rgba(0,0,0,.5)}
.stl-chat-emote-panel[hidden]{display:none!important}
.stl-chat-emote-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.stl-chat-emote-grid button{aspect-ratio:1;min-width:0;padding:4px;border:1px solid transparent;border-radius:8px;background:#34363b;cursor:pointer}
.stl-chat-emote-grid button:hover{border-color:#a31c1b;background:#3a3c41}
.stl-chat-emote-grid img{display:block;width:100%;height:100%;object-fit:contain}

@media(max-width:1180px){
  #st-live-page .st-chat-panel{height:min(620px,64dvh)}
}
@media(max-width:760px){
  .st-live-shell{padding:0!important}
  #st-live-page.st-live-layout{display:block}
  #st-live-page .st-live-stage,#st-live-page .st-chat-panel{border-radius:0;border-left:0;border-right:0}
  #st-live-page .st-live-player{aspect-ratio:16/9}
  #st-live-page .st-live-purchases{padding:8px}
  #st-live-page .st-live-purchases .st-purchase{min-width:86vw;padding:8px}
  #st-live-page .st-live-meta{padding:8px 12px}
  #st-live-page .st-live-meta-row{flex-direction:row;align-items:center}
  #st-live-page .st-live-counters{margin-left:auto}
  #st-live-page .st-chat-panel{margin-top:8px;height:60dvh;min-height:430px}
  #stl-chat-stream .stl-chat-line{font-size:15px}
  #stl-chat-form.stl-chat-form-enhanced{padding-bottom:calc(8px + env(safe-area-inset-bottom))}
  .stl-chat-color-trigger,.stl-chat-tier-trigger,.stl-chat-emote-trigger{flex-basis:34px;width:34px;height:34px}
}

/* Keep the composer clean: nickname/Tier presentation controls live in header. */
.stl-chat-header-tools .stl-chat-color-trigger,.stl-chat-header-tools .stl-chat-tier-trigger{width:30px;height:30px;flex-basis:30px;border-radius:7px;font-size:12px}
#stl-chat-stream .stl-chat-tier-badge{width:21px;height:21px;margin-right:4px;vertical-align:-6px;border-radius:4px}
#stl-chat-stream .stl-chat-tier-badge img,#stl-chat-stream .stl-chat-tier-badge>span{width:21px!important;height:21px!important;border-radius:4px}

/* 0.2.1 — immersive three-column Live experience. */
body.stl-live-view{background:#232528;color:#efeff1}
body.stl-live-view .st-live-shell{max-width:1920px;padding:8px 12px 16px}
#st-live-page.st-live-layout{display:grid;grid-template-columns:250px minmax(0,1fr) 360px;grid-template-areas:"recap main chat";gap:8px;align-items:start}
#st-live-page .st-live-recap{grid-area:recap;position:sticky;top:78px;height:calc(100dvh - 90px);min-height:540px;overflow:auto;background:#2b2d31;border:1px solid #3a3c41;border-radius:9px;color:#efeff1;scrollbar-width:thin;scrollbar-color:#4a4c52 transparent}
#st-live-page .st-live-main{grid-area:main;min-width:0}
#st-live-page .st-chat-panel{grid-area:chat;position:sticky;top:78px;height:calc(100dvh - 90px);min-height:540px;border-radius:9px;box-shadow:none}
#st-live-page .st-live-stage{border-radius:7px;box-shadow:none}
#st-live-page .st-live-player{aspect-ratio:16/9;max-height:calc(100dvh - 205px)}
#st-live-page .st-live-player iframe,#st-live-page .st-live-player video{object-fit:contain;background:#000}
#st-live-page .st-live-meta{padding:8px 12px}
#st-live-page .st-live-heading h1{font-size:15px}
#st-live-page .st-live-heading p{max-width:76ch}
#st-live-page .st-live-purchases{padding:8px 8px;gap:8px}
#st-live-page .st-live-purchases .st-purchase{min-width:min(390px,76vw);border-radius:7px}
#st-live-page .st-live-actions{margin-top:8px}

/* Left rail: useful Live recap, not a second noisy feed. */
.stl-recap-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 12px;background:#2b2d31;border-bottom:1px solid #3a3c41}
.stl-recap-head>div{display:flex;align-items:center;gap:8px;min-width:0}
.stl-recap-head strong{font-size:15px;white-space:nowrap}
.stl-recap-head small{font-size:12px;color:#8f8f99;text-align:right}
.stl-recap-live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#a31c1b;box-shadow:0 0 0 4px rgba(163,28,27,.12);animation:stl-live-pulse 1.8s ease-in-out infinite}
@keyframes stl-live-pulse{50%{box-shadow:0 0 0 8px rgba(163,28,27,0)}}
.stl-recap-loading,.stl-recap-empty{margin:0;padding:16px 12px;color:#85858e;font-size:12px;line-height:1.45}
.stl-recap-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px}
.stl-recap-stats>span{display:flex;flex-direction:column;padding:8px 8px;background:#34363b;border:1px solid #3a3c41;border-radius:8px}
.stl-recap-stats b{font-size:17px;color:#fff}
.stl-recap-stats small{font-size:12px;color:#92929b;margin-top:2px}
#st-live-recap section{padding:4px 8px 8px}
#st-live-recap section+section{border-top:1px solid #3a3c41;padding-top:8px}
#st-live-recap section h3{margin:4px 2px 8px;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#9999a3}
.stl-recap-events,.stl-recap-polls{display:flex;flex-direction:column;gap:8px}
.stl-recap-event{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;padding:8px;background:#34363b;border:1px solid #3a3c41;border-radius:8px}
.stl-recap-event.is-new{animation:stl-recap-new 1.6s ease}
@keyframes stl-recap-new{0%{border-color:#a31c1b;background:#321819}100%{border-color:#3a3c41;background:#34363b}}
.stl-recap-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:7px;background:#44464c;font-size:15px}
.stl-recap-event p{margin:0 0 2px;font-size:12px;line-height:1.35;color:#d8d8de}
.stl-recap-event p a,.stl-recap-event p strong{color:#fff;font-weight:850}
.stl-recap-event p span{color:#a4a4ad}
.stl-recap-event>div:last-child>strong{display:block;font-size:12px;color:#ffb6b4;line-height:1.3}
.stl-recap-event small{display:block;margin-top:4px;color:#72727b;font-size:12px}
.stl-recap-poll{padding:8px;background:#34363b;border:1px solid #2d2d32;border-radius:8px}
.stl-recap-poll.is-active{border-color:#49313a}
.stl-recap-poll-head{display:flex;justify-content:space-between;gap:8px;margin-bottom:8px}
.stl-recap-poll-head span{font-size:12px;font-weight:900;letter-spacing:.07em;color:#ff6a70}
.stl-recap-poll-head small{font-size:12px;color:#888891}
.stl-recap-poll>strong{display:block;margin-bottom:8px;font-size:12px;line-height:1.35}
.stl-recap-poll-row{margin-top:8px}
.stl-recap-poll-row>div:first-child{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#cfcfd5}
.stl-recap-poll-row b{font-size:12px;color:#fff}
.stl-recap-poll-bar{height:5px;margin-top:4px;background:#3a3c41;border-radius:99px;overflow:hidden}
.stl-recap-poll-bar i{display:block;height:100%;background:#a31c1b;border-radius:99px}
.stl-recap-poll-wait{margin:4px 0 0;color:#898992;font-size:12px}

/* All emotes stay visible. Tier-only emotes are visibly locked, but readable. */
.stl-chat-emote-grid button{position:relative}
.stl-chat-emote-grid button.is-locked{filter:saturate(.45);opacity:.72;cursor:not-allowed;background:#34363b}
.stl-chat-emote-grid button.is-locked:hover{border-color:#55575d;background:#3a3c41}
.stl-emote-lock{position:absolute;right:2px;bottom:2px;display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#232528;color:#fff;font-size:12px;box-shadow:0 1px 4px rgba(0,0,0,.55)}
.stl-chat-emote-note{min-height:16px;margin-top:8px;color:#ffb4b4;font-size:12px;line-height:1.35}
.stl-chat-emote-grid button.is-denied{animation:stl-emote-denied .28s ease}
@keyframes stl-emote-denied{25%{transform:translateX(-2px)}75%{transform:translateX(2px)}}

@media(max-width:1380px){
  #st-live-page.st-live-layout{grid-template-columns:minmax(0,1fr) 350px;grid-template-areas:"main chat" "recap chat"}
  #st-live-page .st-live-recap{position:relative;top:auto;height:auto;min-height:0;max-height:330px}
  .stl-recap-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:980px){
  #st-live-page.st-live-layout{grid-template-columns:1fr;grid-template-areas:"main" "recap" "chat";gap:8px}
  #st-live-page .st-chat-panel{position:relative;top:auto;height:62dvh;min-height:430px}
  #st-live-page .st-live-recap{max-height:320px}
}
@media(max-width:760px){
  body.stl-live-view .st-live-shell{padding:0 0 88px}
  #st-live-page.st-live-layout{display:grid}
  #st-live-page .st-live-recap{border-radius:0;border-left:0;border-right:0;max-height:290px}
  .stl-recap-events{display:flex}
  #st-live-page .st-chat-panel{margin-top:0}
}
body.stl-live-view .st-topbar{background:#2b2d31;border-bottom-color:#44464c;color:#efeff1;box-shadow:none}
body.stl-live-view .st-topnav a,body.stl-live-view .st-user-chip{color:#d8d8de}
body.stl-live-view .st-search,body.stl-live-view .st-icon-btn{background:#34363b;border-color:#44464c;color:#efeff1}
body.stl-live-view .st-search input{color:#efeff1}
body.stl-live-view .st-footer{display:none}

/* 0.2.2 — public Live and moderator workspace are intentionally separate. */
body.stl-live-view .st-floating-messenger{display:none!important}
body.stl-live-view .st-footer{margin-top:20px}

/* Public room: recap | stream | fixed chat. */
#st-live-page.st-live-public-layout{grid-template-columns:250px minmax(0,1fr) 360px;grid-template-areas:"recap main chat"}
#st-live-page .st-live-main{min-width:0}
#st-live-page .st-chat-panel{display:flex;flex-direction:column;overflow:hidden;overscroll-behavior:contain}
#st-live-page .st-chat-panel>header{flex:0 0 auto}
#st-live-page #stl-chat-stream{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
#st-live-page #stl-chat-form{flex:0 0 auto}
.stl-chat-new{top:auto;bottom:66px}
.stl-recap-stats.stl-recap-stats-single{grid-template-columns:1fr}
.stl-recap-stats.stl-recap-stats-single>span{min-height:58px;justify-content:center}

.stl-modera-btn{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border:1px solid #4a3032;border-radius:8px;background:#2a1719;color:#ff6a70;font-size:12px;font-weight:850;text-decoration:none;white-space:nowrap}
.stl-modera-btn:hover{background:#3b1b1e;border-color:#a31c1b;color:#fff}

/* Area below the stage deliberately belongs to the scrolling main column. */
.st-live-widget-zone{margin-top:8px;min-height:88px;padding:16px 16px;border:1px dashed #303037;border-radius:9px;background:#131316;color:#b6b6be}
.st-live-widget-zone-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.st-live-widget-zone-head strong{color:#efeff1;font-size:13px}
.st-live-widget-zone-head small{max-width:620px;font-size:12px;line-height:1.4;text-align:right}

/* Moderator workspace: tools | stream | moderation chat. */
body.stl-live-moderator-view .st-live-shell{max-width:1920px}
#st-live-page.st-live-moderator-layout{grid-template-columns:340px minmax(0,1fr) 380px;grid-template-areas:"moderator main chat";gap:8px}
.stl-moderator-rail{grid-area:moderator;position:sticky;top:78px;height:calc(100dvh - 90px);min-height:540px;overflow:auto;background:#2b2d31;border:1px solid #3a3c41;border-radius:9px;color:#efeff1;scrollbar-width:thin;scrollbar-color:#4a4c52 transparent}
.stl-moderator-rail-head{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;background:#2b2d31;border-bottom:1px solid #2d2d32}
.stl-moderator-rail-head>div{display:flex;flex-direction:column;gap:2px}
.stl-moderator-rail-head strong{font-size:15px}
.stl-moderator-rail-head .st-btn{min-height:34px;padding:0 8px;border-radius:7px;font-size:12px}
.stl-mod-panel-embedded{margin:0!important;padding:12px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.stl-mod-panel-embedded .st-pagehead h2{font-size:15px}
.stl-mod-panel-embedded .st-mod-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}
.stl-mod-panel-embedded .st-mod-tabs button{min-width:0;padding:8px 8px;font-size:12px}
.stl-mod-panel-embedded .st-form{gap:8px}
.stl-mod-panel-embedded .st-form label{font-size:12px}
.stl-mod-panel-embedded .st-form input,.stl-mod-panel-embedded .st-form textarea{padding:8px 8px;font-size:12px}
.stl-mod-panel-embedded .st-two{grid-template-columns:1fr}
.stl-mod-panel-embedded .st-member-request{align-items:flex-start;flex-wrap:wrap}

/* The right rail itself never page-scrolls: header/composer stay put; messages scroll inside. */
@media(min-width:981px){
  #st-live-page .st-chat-panel{position:sticky;top:78px;height:calc(100dvh - 90px);min-height:540px;overflow:hidden}
}

@media(max-width:1380px){
  #st-live-page.st-live-public-layout{grid-template-columns:minmax(0,1fr) 350px;grid-template-areas:"main chat" "recap chat"}
  #st-live-page.st-live-moderator-layout{grid-template-columns:310px minmax(0,1fr) 350px;grid-template-areas:"moderator main chat"}
  .stl-moderator-rail{width:auto}
}
@media(max-width:1120px){
  #st-live-page.st-live-moderator-layout{grid-template-columns:minmax(0,1fr) 350px;grid-template-areas:"main chat" "moderator chat"}
  .stl-moderator-rail{position:relative;top:auto;height:auto;min-height:0;max-height:none}
}
@media(max-width:980px){
  #st-live-page.st-live-public-layout,#st-live-page.st-live-moderator-layout{grid-template-columns:1fr;grid-template-areas:"main" "recap" "moderator" "chat"}
  #st-live-page.st-live-public-layout{grid-template-areas:"main" "recap" "chat"}
  #st-live-page .st-chat-panel{position:relative;top:auto;height:62dvh;min-height:430px}
  #st-live-page .st-live-recap,.stl-moderator-rail{position:relative;top:auto;height:auto;min-height:0;max-height:none}
}
@media(max-width:760px){
  .st-live-widget-zone{margin:8px 8px 0;border-radius:8px}
  .st-live-widget-zone-head{display:block}
  .st-live-widget-zone-head small{display:block;margin-top:4px;text-align:left}
  .stl-modera-btn{min-height:32px}
  .stl-moderator-rail{border-left:0;border-right:0;border-radius:0}
}

/* 0.2.3 — unified Twitch-like composer: identity | message + emote/settings | send. */
#stl-chat-form{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) 38px;
  align-items:center;
  gap:8px;
  padding:8px!important;
  background:#2b2d31;
}
.stl-chat-input-wrap{
  min-width:0;
  height:40px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 34px 34px;
  align-items:center;
  gap:1px;
  border:1px solid #4a4c52;
  border-radius:7px;
  background:#34363b;
  overflow:hidden;
  transition:border-color .12s ease,box-shadow .12s ease;
}
.stl-chat-input-wrap:focus-within{border-color:#d42825;box-shadow:0 0 0 1px #d42825}
#stl-chat-input{
  width:100%;height:38px!important;min-width:0;
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;padding:0 8px 0 8px!important;
  color:#efeff1!important;
}
#stl-chat-input:focus{border:0!important;box-shadow:none!important}
.stl-chat-identity-trigger,
.stl-chat-emote-trigger,
.stl-chat-settings-trigger{
  display:grid;place-items:center;
  width:34px;height:34px;min-width:34px;padding:0;
  border:0;border-radius:6px;background:transparent;color:#efeff1;
  cursor:pointer;transition:background .12s ease,transform .12s ease;
}
.stl-chat-identity-trigger{width:38px;height:38px;border:1px solid #44464c;background:#34363b;box-shadow:inset 0 -3px 0 var(--stl-identity-color,#d42825)}
.stl-chat-identity-trigger:hover,.stl-chat-emote-trigger:hover,.stl-chat-settings-trigger:hover{background:#3a3c41}
.stl-chat-identity-trigger:focus-visible,.stl-chat-emote-trigger:focus-visible,.stl-chat-settings-trigger:focus-visible{outline:2px solid #ff6a5f;outline-offset:2px}
.stl-chat-identity-trigger img{display:block;width:26px;height:26px;object-fit:cover;border-radius:5px}
.stl-identity-fallback{display:grid;place-items:center;width:26px;height:26px;border-radius:5px;background:#3a3c41;color:#f3f2ef;box-shadow:inset 0 0 0 2px var(--stl-identity-color,#d42825);font-size:12px;font-weight:900}
.stl-chat-emote-trigger,.stl-chat-settings-trigger{font-size:17px}
#stl-chat-form>.st-btn{width:38px;height:38px;min-height:38px;padding:0!important;border-radius:7px!important;font-size:15px}

.stl-chat-popup{
  position:absolute!important;z-index:80;
  bottom:calc(100% + 7px)!important;
  width:min(360px,calc(100vw - 24px))!important;
  max-height:min(520px,72dvh);
  overflow:auto;
  padding:0!important;
  background:#2b2d31!important;color:#efeff1!important;
  border:1px solid #44464c!important;border-radius:10px!important;
  box-shadow:0 18px 60px rgba(0,0,0,.58)!important;
}
.stl-chat-popup[hidden]{display:none!important}
.stl-chat-identity-panel{left:8px!important;right:auto!important}
.stl-chat-emote-panel,.stl-chat-settings-panel{right:8px!important;left:auto!important}
.stl-chat-popup-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 12px;background:#2b2d31;border-bottom:1px solid #3a3c41}
.stl-chat-popup-head>div{display:flex;flex-direction:column;gap:1px;min-width:0}
.stl-chat-popup-head strong{font-size:15px;color:#fff}
.stl-chat-popup-head small{font-size:12px;color:#a8a8b1;line-height:1.3}
.stl-chat-popup-head>button{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border:1px solid #44444a;border-radius:50%;background:#25252a;color:#fff;font-size:17px;cursor:pointer}
.stl-chat-popup-body{padding:12px 12px}
.stl-chat-popup-empty{margin:0;padding:8px;color:#92929c;font-size:12px}

.stl-identity-section+.stl-identity-section{margin-top:16px;padding-top:12px;border-top:1px solid #3a3c41}
.stl-identity-section h4{margin:0 0 8px;font-size:12px;text-transform:uppercase;letter-spacing:.07em;color:#a7a7b0}
.stl-identity-tiers{display:flex;flex-direction:column;gap:4px;max-height:225px;overflow:auto}
.stl-identity-tier{width:100%;display:grid;grid-template-columns:30px minmax(0,1fr) 20px;align-items:center;gap:8px;padding:8px 8px;border:1px solid transparent;border-radius:7px;background:#34363b;color:#efeff1;text-align:left;cursor:pointer}
.stl-identity-tier:hover{background:#3a3c41}.stl-identity-tier.is-selected{border-color:#d42825;background:#3a2a2a}
.stl-identity-tier img{width:28px;height:28px;object-fit:cover;border-radius:5px}
.stl-identity-tier>span:nth-child(2){display:flex;flex-direction:column;min-width:0}.stl-identity-tier strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stl-identity-tier small{margin-top:1px;color:#9d9da6;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stl-identity-tier>b{color:#ff6a5f}
.stl-chat-color-grid{grid-template-columns:repeat(8,1fr);gap:8px}
.stl-chat-color-swatch{min-width:0}.stl-chat-color-swatch.is-selected{outline:2px solid #fff;outline-offset:2px;transform:scale(.9)}
.stl-chat-color-auto{margin-top:8px}

.stl-chat-emote-panel .stl-chat-popup-body{padding:8px}
.stl-chat-emote-grid{grid-template-columns:repeat(7,1fr);gap:4px}
.stl-chat-emote-grid button{border-radius:7px;background:#34363b}

.stl-chat-settings-body{padding:8px!important}
.stl-chat-setting-row,.stl-chat-setting-link{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 8px;border:0;border-radius:7px;background:transparent;color:#efeff1;text-align:left;text-decoration:none;cursor:pointer}
.stl-chat-setting-row:hover,.stl-chat-setting-link:hover{background:#34363b}
.stl-chat-setting-row>span,.stl-chat-setting-link>span,.stl-chat-setting-group>span{display:flex;flex-direction:column;gap:1px;min-width:0}
.stl-chat-setting-row strong,.stl-chat-setting-link strong,.stl-chat-setting-group strong{font-size:12px;color:#efeff1}
.stl-chat-setting-row small,.stl-chat-setting-link small,.stl-chat-setting-group small{font-size:12px;color:#9898a1;line-height:1.3}
.stl-chat-setting-row>b,.stl-chat-setting-link>b{color:#ff6a5f;font-size:12px}
.stl-chat-setting-group{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 8px;border-top:1px solid #3a3c41}
.stl-segmented{display:flex;align-items:center;padding:2px;border-radius:7px;background:#25252a}
.stl-segmented button{min-width:34px;height:28px;padding:0 8px;border:0;border-radius:5px;background:transparent;color:#bdbdc5;font-size:12px;font-weight:800;cursor:pointer}
.stl-segmented button.is-active{background:#d42825;color:#fff}

#st-live-page.stl-chat-hide-time .stl-chat-time{display:none!important}
#st-live-page.stl-chat-density-compact #stl-chat-stream .stl-chat-line{padding-top:1px;padding-bottom:1px;line-height:1.28}
#st-live-page[data-chat-font="small"] #stl-chat-stream .stl-chat-line{font-size:13px}
#st-live-page[data-chat-font="large"] #stl-chat-stream .stl-chat-line{font-size:15px}

/* Old 0.2.x header colour/Tier controls are intentionally retired. */
.stl-chat-header-tools .stl-chat-color-trigger,.stl-chat-header-tools .stl-chat-tier-trigger{display:none!important}

@media(max-width:560px){
  #stl-chat-form{grid-template-columns:36px minmax(0,1fr) 36px;padding:8px!important;gap:4px}
  .stl-chat-input-wrap{height:38px;grid-template-columns:minmax(0,1fr) 32px 32px}
  #stl-chat-input{height:36px!important;font-size:15px}
  .stl-chat-identity-trigger{width:36px;height:36px}.stl-chat-identity-trigger img,.stl-identity-fallback{width:25px;height:25px}
  .stl-chat-emote-trigger,.stl-chat-settings-trigger{width:32px;height:32px;min-width:32px}
  #stl-chat-form>.st-btn{width:36px;height:36px;min-height:36px}
  .stl-chat-popup{width:min(350px,calc(100vw - 14px))!important;max-height:68dvh}
  .stl-chat-identity-panel{left:7px!important}.stl-chat-emote-panel,.stl-chat-settings-panel{right:7px!important}
  .stl-chat-emote-grid{grid-template-columns:repeat(6,1fr)}
}


/* 0.2.4 — staff discoverability + Twitch message direction. */
.stl-live-staffbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:42px;padding:4px 8px;margin:0 0 8px;border:1px solid #44464c;border-radius:9px;background:#151518}
.stl-live-staffbar a{display:inline-flex;align-items:center;justify-content:center;min-height:31px;padding:0 12px;border-radius:7px;text-decoration:none;font-size:12px;font-weight:800;white-space:nowrap}
.stl-staff-manage{border:1px solid #44464c;background:#252529;color:#efeff1}.stl-staff-manage:hover{background:#3a3c41;color:#fff}
.stl-staff-moderate{border:1px solid #633036;background:#34191c;color:#ff7378}.stl-staff-moderate:hover{background:#a31c1b;border-color:#a31c1b;color:#fff}
#stl-chat-stream{overflow-anchor:auto}
@media(max-width:760px){.stl-live-staffbar{margin:0 8px 8px}.stl-live-staffbar a{flex:1}}

/* 0.2.5 — custom emote diagnostics/fallback. */
.stl-emote-img-fallback{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;padding:2px 4px;border:1px solid rgba(255,255,255,.15);border-radius:6px;font-size:12px;line-height:1;background:#232329;color:#d7d7dc;vertical-align:middle}

/* 0.2.7 — custom emotes are real inline media. Older Live CSS used to hide
   every image inside the room to suppress legacy avatars, which also hid the
   emotes after messageHtml() correctly rendered them. */
#stl-chat-stream .stl-chat-text img.stl-chat-emote{display:inline-block!important;visibility:visible!important;opacity:1!important}
#stl-chat-stream .stl-chat-tier-badge img{display:block!important;visibility:visible!important;opacity:1!important}

/* 0.2.8 — Twitch-like in-chat emote provenance card */
#stl-chat-stream .stl-chat-emote{cursor:pointer}
#stl-chat-stream .stl-chat-emote:focus-visible{outline:2px solid #ff6a5f;outline-offset:2px;border-radius:5px!important}
.stl-emote-info-popover{position:fixed;z-index:100000;width:min(310px,calc(100vw - 20px));padding:12px;background:#2b2d31;color:#efeff1;border:1px solid #44464c;border-radius:10px;box-shadow:0 14px 46px rgba(0,0,0,.58);font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif}
.stl-emote-info-close{position:absolute;top:7px;right:7px;width:28px;height:28px;border:0;border-radius:7px;background:transparent;color:#aeaca7;font-size:1.25rem;line-height:1;cursor:pointer}.stl-emote-info-close:hover{background:#44464c;color:#fff}
.stl-emote-info-top{display:flex;align-items:center;gap:12px;padding-right:28px}.stl-emote-info-top>img{width:62px;height:62px;object-fit:contain;background:#34363b;border-radius:8px;padding:4px}.stl-emote-info-top strong{display:block;font-size:15px;line-height:1.25}.stl-emote-info-top code{display:block;margin-top:4px;color:#aeaca7;font-size:12px;background:transparent;padding:0}
.stl-emote-info-popover dl{margin:8px 0 0;padding-top:8px;border-top:1px solid #3a3c41}.stl-emote-info-popover dl>div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px;padding:4px 0;font-size:12px}.stl-emote-info-popover dt{color:#aeaca7}.stl-emote-info-popover dd{margin:0;color:#efeff1;font-weight:650}.stl-emote-info-popover .stl-emote-info-desc{display:block}.stl-emote-info-popover .stl-emote-info-desc dd{margin-top:4px;color:#c7c7cf;font-weight:500;line-height:1.4}


/* 0.2.9 — clickable chat identity + on-demand public account card */
#stl-chat-stream .stl-chat-nick{appearance:none;border:0;padding:0;margin:0;background:transparent;font:inherit;font-weight:850;color:var(--stl-chat-nick-color)!important;cursor:pointer;text-align:left;vertical-align:baseline}
#stl-chat-stream .stl-chat-nick:hover{text-decoration:underline;text-underline-offset:2px}
#stl-chat-stream .stl-chat-nick:focus-visible{outline:2px solid #ff6a5f;outline-offset:2px;border-radius:3px}
.stl-user-info-popover{position:fixed;z-index:100002;width:min(330px,calc(100vw - 20px));padding:16px;background:#2b2d31;color:#efeff1;border:1px solid #44464c;border-radius:12px;box-shadow:0 16px 52px rgba(0,0,0,.62);font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif}
.stl-user-info-close{position:absolute;top:8px;right:8px;width:30px;height:30px;border:0;border-radius:7px;background:transparent;color:#aeaca7;font-size:20px;cursor:pointer}.stl-user-info-close:hover{background:#44464c;color:#fff}
.stl-user-info-head{display:flex;align-items:center;gap:12px;padding-right:32px}.stl-user-info-avatar-wrap{position:relative;flex:0 0 58px}.stl-user-info-avatar{display:block;width:58px;height:58px;object-fit:cover;border-radius:50%;background:#34363b}.stl-user-info-presence{position:absolute;right:1px;bottom:1px;width:13px;height:13px;border:3px solid #2b2d31;border-radius:50%;background:#53535f}.stl-user-info-presence.is-online{background:#00c853}.stl-user-info-ident{min-width:0}.stl-user-info-ident>strong{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stl-user-info-ident>small{display:block;margin-top:1px;color:#aeaca7;font-size:12px}.stl-user-info-online{display:inline-block;margin-top:4px;color:#7ee787;font-size:12px;font-weight:800}
.stl-user-info-headline{margin:8px 0 0;color:#d6d6dc;font-size:13px;line-height:1.4}.stl-user-info-tier{display:flex;width:100%;align-items:center;gap:8px;margin-top:12px;padding:8px;border:1px solid #44464c;border-radius:9px;background:#34363b;color:#fff;text-align:left}.stl-user-info-tier.is-static{cursor:default}.stl-user-info-tier>img,.stl-user-info-tier>span:first-child{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;object-fit:cover;border-radius:7px;background:#3a3c41}.stl-user-info-tier>span:nth-child(2){min-width:0;flex:1}.stl-user-info-tier small{display:block;color:#aeaca7;font-size:12px}.stl-user-info-tier strong{display:block;margin-top:1px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stl-user-info-tier>b{color:#aeaca7;font-size:20px}
.stl-user-info-meta{margin:8px 0 0;padding-top:8px;border-top:1px solid #3a3c41}.stl-user-info-meta>div{display:grid;grid-template-columns:86px minmax(0,1fr);gap:8px;padding:4px 0;font-size:.75rem}.stl-user-info-meta dt{color:#aeaca7}.stl-user-info-meta dd{margin:0;color:#efeff1;font-weight:650;overflow-wrap:anywhere}.stl-user-info-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}.stl-user-info-stats>div{text-align:center;padding:8px 4px;border-radius:8px;background:#34363b}.stl-user-info-stats strong{display:block;font-size:13px}.stl-user-info-stats small{display:block;margin-top:2px;color:#aeaca7;font-size:12px}.stl-user-info-profile{display:block;margin-top:8px;padding:8px 12px;border-radius:8px;background:#d42825;color:#fff!important;text-align:center;text-decoration:none;font-size:12px;font-weight:850}.stl-user-info-profile:hover{background:#772ce8}.stl-user-info-loading,.stl-user-info-error{margin:0;padding:12px 24px 12px 4px;color:#aeaca7;font-size:12px}.stl-user-info-error{color:#ff9d9d}

/* 0.2.10 — social actions in the Live user card */
.stl-user-social-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.stl-user-social-btn,.stl-user-social-mini{min-height:36px;border:1px solid #44464c;border-radius:8px;background:#34363b;color:#efeff1;font:inherit;font-size:12px;font-weight:850;cursor:pointer;transition:background .12s ease,border-color .12s ease,transform .12s ease}
.stl-user-social-btn:hover,.stl-user-social-mini:hover{background:#33333a;border-color:#55555d}.stl-user-social-btn:active,.stl-user-social-mini:active{transform:scale(.98)}
.stl-user-social-btn.is-active,.stl-user-social-btn.is-friend{border-color:#6e2b2a;background:#3a2a2a;color:#ffc2bc}.stl-user-social-btn.is-primary{border-color:#d42825;background:#d42825;color:#fff}.stl-user-social-btn.is-pending{color:#c9c9d0}
.stl-user-social-friend-request{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:4px}.stl-user-social-mini{width:36px;padding:0;font-size:15px}
.stl-user-social-btn:disabled,.stl-user-social-mini:disabled{opacity:.55;cursor:wait}
.stl-user-social-state{display:block;min-height:15px;margin:4px 2px 0;color:#ffb4b4;font-size:12px}
.stl-user-info-profile{margin-top:8px}
@media(max-width:430px){.stl-user-social-actions{grid-template-columns:1fr}.stl-user-social-friend-request{grid-template-columns:minmax(0,1fr) 38px}}

/* 0.2.11 — the user card only reports the chosen Tier; selection stays in the chat identity composer. */
.stl-user-info-tier.is-static{pointer-events:none}.stl-tier-info-detail.is-selected-only{padding-top:20px}.stl-tier-info-label{display:block;margin-bottom:4px;color:#aeaca7;font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.04em}


/* 0.2.32 — fixed desktop viewport, equal-height rails and title/product slot. */
@media (min-width:981px){
  body.stl-live-public-view{
    --stl-topbar-h:68px;
    --stl-adminbar-h:0px;
    height:100dvh;
    min-height:100dvh;
    overflow:hidden!important;
    overscroll-behavior:none;
  }
  body.stl-live-public-view.admin-bar{--stl-adminbar-h:32px}
  body.stl-live-public-view .st-topbar{
    position:relative!important;
    top:auto!important;
    height:var(--stl-topbar-h);
    min-height:var(--stl-topbar-h);
  }
  body.stl-live-public-view .st-live-shell{
    width:100%;
    max-width:none!important;
    height:calc(100dvh - var(--stl-topbar-h) - var(--stl-adminbar-h));
    min-height:0;
    margin:0;
    padding:8px 12px!important;
    overflow:hidden!important;
    box-sizing:border-box;
  }
  body.stl-live-public-view #st-live-page.st-live-public-layout{
    width:100%;
    height:100%;
    min-height:0;
    overflow:hidden;
    align-items:stretch!important;
    grid-template-columns:250px minmax(0,1fr) 360px!important;
    grid-template-rows:minmax(0,1fr)!important;
    grid-template-areas:"recap main chat"!important;
    gap:8px!important;
  }

  /* Recap and Chat always match the full central Live column height. */
  body.stl-live-public-view #st-live-page .st-live-recap,
  body.stl-live-public-view #st-live-page .st-chat-panel,
  body.stl-live-public-view #st-live-page .st-live-main{
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
  }
  body.stl-live-public-view #st-live-page .st-live-recap{
    position:relative!important;
    top:auto!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain;
    scrollbar-width:thin;
  }
  body.stl-live-public-view #st-live-page .st-live-recap .stl-recap-head{
    position:sticky;
    top:0;
    z-index:3;
  }
  body.stl-live-public-view #st-live-page .st-live-main{
    display:flex;
    flex-direction:column;
    overflow:hidden!important;
  }
  body.stl-live-public-view #st-live-page .st-chat-panel{
    position:relative!important;
    top:auto!important;
    display:flex;
    flex-direction:column;
    overflow:hidden!important;
    overscroll-behavior:contain;
  }
  body.stl-live-public-view #st-live-page .st-chat-panel>header,
  body.stl-live-public-view #st-live-page #stl-chat-form{flex:0 0 auto}
  body.stl-live-public-view #st-live-page #stl-chat-stream{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain;
  }

  /* Player + the fixed title/product rail fill the center without page scroll. */
  body.stl-live-public-view #st-live-page .st-live-stage{
    flex:1 1 auto;
    min-height:0;
    height:auto;
    display:grid;
    grid-template-rows:minmax(0,1fr) 78px;
    overflow:hidden;
  }
  body.stl-live-public-view #st-live-page .st-live-player{
    width:100%;
    height:100%;
    min-height:0;
    max-height:none!important;
    aspect-ratio:auto!important;
    overflow:hidden;
  }
  body.stl-live-public-view #st-live-page .st-live-player iframe,
  body.stl-live-public-view #st-live-page .st-live-player video{
    width:100%;
    height:100%;
    max-height:none!important;
    object-fit:contain;
    background:#000;
  }
  body.stl-live-public-view #st-live-page .st-live-meta{
    height:78px;
    min-height:78px;
    max-height:78px;
    padding:8px 12px!important;
    box-sizing:border-box;
    overflow:hidden;
  }
  body.stl-live-public-view #st-live-page .st-live-meta-row{
    height:100%;
    min-height:0;
    display:flex;
    flex-direction:row!important;
    align-items:center!important;
    gap:8px;
    overflow:hidden;
  }
  body.stl-live-public-view #st-live-page .st-live-heading{
    flex:1 1 auto;
    min-width:0;
    height:58px;
    min-height:58px;
    max-height:58px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    overflow:hidden;
  }
  body.stl-live-public-view #st-live-page .st-live-heading h1{
    margin:1px 0!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  body.stl-live-public-view #st-live-page .st-live-heading p{
    margin:2px 0 0!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  body.stl-live-public-view #st-live-page .st-live-counters{
    flex:0 0 auto;
    margin-left:auto;
  }

  /* Product cards occupy exactly the title slot. When a product is active,
     the title disappears but the 78px rail never changes height. */
  body.stl-live-public-view #st-live-page .st-live-purchases{
    flex:1 1 auto;
    min-width:0;
    height:58px;
    min-height:58px;
    max-height:58px;
    align-items:center;
    gap:8px;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    overscroll-behavior-inline:contain;
    scrollbar-width:thin;
  }
  body.stl-live-public-view #st-live-page .st-live-meta-row:not(.stl-has-purchase) .st-live-purchases{display:none!important}
  body.stl-live-public-view #st-live-page .st-live-meta-row.stl-has-purchase .st-live-heading{display:none!important}
  body.stl-live-public-view #st-live-page .st-live-meta-row.stl-has-purchase .st-live-purchases{display:flex!important}
  body.stl-live-public-view #st-live-page .st-live-purchases .st-action{
    flex:0 0 min(440px,100%);
    width:min(440px,100%);
    min-width:min(440px,100%)!important;
    height:58px;
    min-height:58px;
    max-height:58px;
    margin:0;
    box-sizing:border-box;
  }
  body.stl-live-public-view #st-live-page .st-live-purchases .st-purchase{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:8px;
    padding:8px 8px!important;
    border-radius:8px!important;
    overflow:hidden;
  }
  body.stl-live-public-view #st-live-page .st-live-purchases .st-purchase>div{min-width:0;overflow:hidden}
  body.stl-live-public-view #st-live-page .st-live-purchases .st-kicker{display:none}
  body.stl-live-public-view #st-live-page .st-live-purchases h3{
    margin:0!important;
    font-size:13px;
    line-height:1.2;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  body.stl-live-public-view #st-live-page .st-live-purchases .st-price{
    display:inline;
    margin-right:8px;
    font-size:13px;
  }
  body.stl-live-public-view #st-live-page .st-live-purchases small{
    font-size:12px;
    white-space:nowrap;
  }
  body.stl-live-public-view #st-live-page .st-live-purchases .st-btn{
    min-height:38px;
    height:38px;
    padding:0 12px!important;
    white-space:nowrap;
  }

  /* Secondary Live boxes never make the document taller: they scroll inside
     the central column when they need more room. */
  body.stl-live-public-view #st-live-page .st-live-actions{
    flex:0 0 auto;
    max-height:116px;
    min-height:0;
    overflow:auto!important;
    margin-top:8px!important;
    overscroll-behavior:contain;
  }
  body.stl-live-public-view #st-live-page .st-live-widget-zone{
    flex:0 0 auto;
    max-height:96px;
    min-height:0;
    overflow:auto!important;
    margin-top:8px;
    overscroll-behavior:contain;
  }
}

@media (min-width:981px) and (max-width:1180px){
  body.stl-live-public-view #st-live-page.st-live-public-layout{
    grid-template-columns:205px minmax(0,1fr) 315px!important;
  }
}


/* 0.2.35 — viewer count + elapsed time: flat, horizontal, never compressed into stacked pills. */
#st-live-page .st-live-counters{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;min-width:max-content!important;width:max-content!important;white-space:nowrap!important}
#st-live-page .st-live-counters>span,#st-live-page .st-live-counters .st-live-viewer-count,#st-live-page .st-live-counters .st-live-elapsed{display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:flex-start!important;width:auto!important;min-width:0!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;outline:0!important;white-space:nowrap!important;writing-mode:horizontal-tb!important;line-height:1!important}
#st-live-page .st-live-counters .st-live-viewer-count{flex-direction:row!important;gap:4px!important;color:#f2605f!important}
#st-live-page .st-live-counters .st-live-viewer-count b{display:inline-block!important;flex:0 0 auto!important;color:#f2605f!important;font-size:13px!important;font-weight:850!important;line-height:1!important;white-space:nowrap!important}
#st-live-page .st-live-counters .st-live-viewer-icon{display:block!important;flex:0 0 16px!important;width:16px!important;height:16px!important;overflow:visible!important;fill:none!important;stroke:#f2605f!important;color:#f2605f!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
#st-live-page .st-live-counters .st-live-elapsed{color:#efeff1!important;font-size:12px!important;font-weight:750!important;font-variant-numeric:tabular-nums!important;letter-spacing:.01em!important}


/* 0.2.36 — private, client-only Tier cooldown notice. Never stored in chat. */
#stl-chat-stream .stl-chat-private-notice{
  padding:4px 2px 4px;
  color:#85858f;
  font-size:12px;
  font-weight:550;
  line-height:1.35;
  overflow-wrap:anywhere;
}

/* 0.2.38 — Live chat moderation: pinned comment, clear-chat action and local mute notice. */
.stl-chat-header-tools .stl-chat-clear{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 8px;border:1px solid #3d3d43;border-radius:7px;background:#34363b;color:#cfcfd5;font-size:12px;font-weight:800;cursor:pointer}
.stl-chat-header-tools .stl-chat-clear:hover{border-color:#66666e;background:#3a3c41;color:#fff}
.stl-chat-pinned{flex:0 0 auto;margin:0;border-bottom:1px solid #3a3c41;background:#2b2d31;color:#efeff1;padding:8px 8px}
.stl-chat-pinned[hidden]{display:none!important}
.stl-chat-pinned-label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px;color:#aeaca7;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.stl-chat-pinned-label strong{font-weight:850}
.stl-chat-pinned-label button{width:24px;height:24px;border:0;border-radius:5px;background:transparent;color:#8f8f99;font-size:15px;cursor:pointer}.stl-chat-pinned-label button:hover{background:#44464c;color:#fff}
.stl-chat-pinned-body{display:flex;align-items:baseline;gap:8px;min-width:0;font-size:12px;line-height:1.35}.stl-chat-pinned-body b{flex:0 0 auto;color:var(--stl-chat-nick-color,#1e90ff);font-size:12px}.stl-chat-pinned-body span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dedee3}.stl-chat-pinned-body .stl-chat-emote{width:22px;height:22px;vertical-align:middle}
.stl-user-moderation-panel{margin-top:8px;padding-top:8px;border-top:1px solid #3a3c41}.stl-user-moderation-title{display:block;margin-bottom:8px;color:#9a9893;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.stl-user-moderation-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;padding:0;border:0}.stl-user-moderation-actions .is-danger{grid-column:1/-1}
.stl-user-mod-btn{min-height:35px;border:1px solid #4b4b52;border-radius:8px;background:#34363b;color:#efeff1;font:inherit;font-size:12px;font-weight:850;cursor:pointer}.stl-user-mod-btn:hover{background:#3a3c41}.stl-user-mod-btn.is-danger{border-color:#6e2b30;background:#35181b;color:#ff8d92}.stl-user-mod-btn.is-danger:hover{background:#a31c1b;border-color:#a31c1b;color:#fff}.stl-user-mod-btn:disabled{opacity:.55;cursor:wait}.stl-user-mod-state{display:block;min-height:1em;margin-top:4px;color:#9a9893;font-size:12px}
#stl-chat-stream .stl-chat-muted-notice{color:#9a9893;font-weight:650}
@media(max-width:520px){.stl-chat-header-tools .stl-chat-clear{padding:0 8px;font-size:12px}.stl-chat-pinned{padding:8px 8px}.stl-chat-pinned-body{font-size:12px}}

/* === 0.2.41 — touch targets, legible small text, honest live cues === */
.stl-identity-section h2.stl-identity-title,.stl-popup-body h2.stl-identity-title{margin:0 0 8px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:#a7a7b0}
.stl-staff-manage{min-height:44px}
.stl-chat-header-tools .stl-chat-clear{min-height:44px;font-size:12px}
.stl-chat-popout{width:44px;height:44px}
.stl-chat-identity-trigger,.stl-chat-emote-trigger,.stl-chat-settings-trigger{width:44px!important;height:44px!important;min-width:44px!important;flex-basis:44px!important}
.stl-chat-input-wrap{height:44px;grid-template-columns:minmax(0,1fr) 44px 44px}
#stl-chat-input{height:44px!important}
#stl-chat-form .st-btn,#stl-chat-form button[type=submit]{min-width:44px;min-height:44px}
#st-live-page .st-live-badge{font-size:12px}
.st-live-recap h3,.st-live-recap small{font-size:12px}
/* Empty chat: say so instead of showing a blank panel. */
#stl-chat-stream:empty::before{content:"La chat è vuota. Scrivi il primo messaggio!";display:block;padding:28px 16px;text-align:center;color:#a5a5ad;font-size:13px}
/* The pulsing "live" dot only pulses when the stream is actually live. */
#st-live-page:not(:has(#st-live-status[data-state="live"])) .stl-recap-live-dot{animation:none;background:#6b6b73;box-shadow:none}
@media (prefers-reduced-motion:reduce){.stl-recap-live-dot{animation:none}}
.stl-live-staffbar a,.stl-live-staffbar .stl-staff-manage{min-height:44px}
#st-live-recap section h3{font-size:12px}

/* 0.2.43 — La Live è sempre scura: i token del tema passano ai valori scuri anche col tema chiaro,
   così campi, card e pulsanti della moderazione non tornano bianchi. */
body.stl-live-view{--st-bg:#232528;--st-surface:#2b2d31;--st-surface2:#34363b;--st-border:#44464c;--st-divider:#44464c;--st-text:#f4f4f5;--st-muted:#aeaca7;--st-red-text:#f2605f;--st-red-ink:#f2605f;--st-success:#3ccf7e;--st-shadow-pop:0 16px 40px rgba(0,0,0,.5);color-scheme:dark}
/* Moderazione: tap target 44px, foto prodotto su una colonna (il testo non va più a capo parola per parola) */
.stl-moderator-rail-head>a.st-btn,.st-mod-tabs button,.st-cta-presets .st-cta-chip{min-height:44px}
.stl-moderator-shell .st-product-frame{grid-template-columns:minmax(0,1fr)}

/* 0.2.47: su desktop le schede restano sopra la barra dei comandi del player (Twitch/YouTube, ~56px)
   così play, volume e schermo intero restano cliccabili. */
/* === 0.2.46 — Scheda prodotto curata (Live pubblica) ===
   Foto, prezzo, pezzi rimasti con barra, esaurito in tempo reale e lista d'attesa.
   Desktop: sopra il video, in basso a sinistra. Mobile: a tutta larghezza subito sotto il video.
   Il moderatore resta sul binario sotto il titolo (regole 3.1.4 del tema). */
body.stl-live-public-view #st-live-page .st-live-stage{position:relative}
body.stl-live-public-view #st-live-page .st-live-stage>#st-live-purchases{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px;height:auto!important;min-height:0!important;max-height:none;padding:0!important;margin:0;background:transparent!important;border:0!important;overflow:visible!important}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard{display:grid!important;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:12px;width:auto!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0;padding:12px!important;border:1px solid #3a3c41;border-radius:12px!important;background:#151517;color:#f4f4f5;box-shadow:none;overflow:hidden}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard-ph{display:grid;place-items:center;width:56px;height:56px;border-radius:8px;object-fit:cover;background:#34363b;color:#8f8f96}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard-ph svg{width:24px;height:24px}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard-copy{min-width:0;display:flex;flex-direction:column;gap:4px;overflow:visible}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard h3{margin:0!important;font:600 15px/1.25 var(--st-font-display,"Plus Jakarta Sans",sans-serif);color:#f4f4f5;white-space:normal;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard .st-price{display:block;margin:0;font:800 18px/1.1 var(--st-font-display,"Plus Jakarta Sans",sans-serif);color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard p{margin:0;font-size:12px;line-height:1.35;color:#aeaca7}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard-stock.is-low{color:#f2605f;font-weight:600}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard-bar{display:block;width:100%;max-width:160px;height:4px;border-radius:2px;background:#3a3c41;overflow:hidden}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard-bar i{display:block;height:100%;border-radius:2px;background:#a31c1b}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard .st-btn{min-height:44px!important;height:auto!important;padding:0 20px!important;border-radius:10px;font:700 15px/1 var(--st-font-display,"Plus Jakarta Sans",sans-serif);white-space:nowrap}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard .st-pcard-outline{background:transparent;border:1px solid #55575d;color:#f4f4f5}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard .st-pcard-outline:hover{background:#34363b}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard .st-pcard-ghost{padding:0 16px!important;background:#34363b;border:0;color:#d4d4d8;font-weight:600}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard .st-btn:focus-visible{outline:2px solid #f2605f;outline-offset:2px}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard.is-sold .st-pcard-ph{opacity:.5;filter:grayscale(1)}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard.is-sold .st-price{color:#aeaca7}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard.is-mine{grid-template-columns:56px minmax(0,1fr);border-color:rgba(60,207,126,.45)}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard-ok{display:flex;gap:4px;align-items:flex-start;color:#3ccf7e!important;font-weight:600}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard-ok svg{flex:none;width:16px;height:16px;margin-top:0}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard-wait{color:#f4f4f5!important}
body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard.is-waiting{border-color:#55575d}
@media (min-width:981px){
  body.stl-live-public-view #st-live-page .st-live-stage>#st-live-purchases{position:absolute;z-index:3;left:16px;bottom:150px;width:min(400px,calc(100% - 32px));max-height:calc(100% - 230px);overflow-y:auto!important;scrollbar-width:none}
  body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard{background:rgba(16,16,18,.9);border-color:rgba(255,255,255,.12);box-shadow:0 8px 24px rgba(0,0,0,.45)}
  @supports (backdrop-filter:blur(8px)){body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard{background:rgba(16,16,18,.78);backdrop-filter:blur(8px)}}
}
@media (max-width:980px){
  body.stl-live-public-view #st-live-page .st-live-stage>#st-live-purchases{flex-direction:row;padding:8px 12px!important;background:#232528!important;border-bottom:1px solid #44464c!important;overflow-x:auto!important;scroll-snap-type:x mandatory;scroll-padding-inline:12px;scrollbar-width:none;overscroll-behavior-inline:contain}
  body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard{flex:0 0 92%;scroll-snap-align:start}
  body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard .st-btn{padding:0 14px!important;font-size:14px}
  body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard:only-child{flex-basis:100%}
}
@media (max-width:380px){
  body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard{grid-template-columns:48px minmax(0,1fr) auto;gap:8px;padding:8px!important}
  body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard-ph{width:48px;height:48px}
  body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard .st-btn{padding:0 12px!important}
}

/* 0.2.56: una timeline, font e layout identici per i messaggi esterni. */
.stl-chat-external .stl-chat-platform{display:inline-block;flex-shrink:0;padding:2px 6px;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;line-height:1.25;border:1px solid currentColor;border-radius:5px;opacity:.9;vertical-align:middle}
.stl-chat-external .stl-chat-nick{cursor:default;white-space:nowrap;color:var(--stl-chat-nick-color)!important}
.stl-chat-twitch .stl-chat-platform{color:#bda6ff}.stl-chat-kick .stl-chat-platform{color:#99f0b3}.stl-chat-youtube .stl-chat-platform{color:#ff9999}.stl-chat-facebook .stl-chat-platform{color:#99bfff}

.stl-chat-mod-hide,[data-stl-external-delete]{font-size:11px;margin-left:8px;color:inherit;opacity:.75;cursor:pointer;border:none;background:none}

/* 0.2.59 — Official reservation announcements (not user messages). */
#stl-chat-stream .stl-chat-system{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;margin:4px 0;padding:8px 10px;background:rgba(231,188,104,.10);border:1px solid rgba(231,188,104,.22);border-radius:9px}
#stl-chat-stream .stl-chat-system-label{display:inline-flex;align-items:center;border-radius:5px;background:#E7BC68;color:#171717;font-size:10px;font-weight:850;letter-spacing:.07em;padding:2px 6px}
#stl-chat-stream .stl-chat-system-body{font-weight:700;color:#F4DDAF}


/* 0.2.71 — Live room layout: unambiguous recap header + properly contained
   Chat tools. The Social theme adds tabs after the Chat plugin creates its
   moderation tools; neither of them must overlap at any viewport width. */
body.stl-live-public-view #st-live-page #st-live-recap .stl-recap-head {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:4px;
    min-height:64px;
    padding:10px 12px;
    box-sizing:border-box;
}
body.stl-live-public-view #st-live-page #st-live-recap .stl-recap-head>div {
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    max-width:100%;
}
body.stl-live-public-view #st-live-page #st-live-recap .stl-recap-head strong {
    white-space:normal;
    overflow-wrap:anywhere;
    line-height:1.2;
}
body.stl-live-public-view #st-live-page #st-live-recap .stl-recap-head small {
    display:block;
    width:auto;
    max-width:calc(100% - 16px);
    margin:0 0 0 16px;
    white-space:normal!important;
    overflow-wrap:break-word;
    text-align:left;
    font-size:11px;
    line-height:1.3;
}
/* Keep the moderation actions inside the actual Chat header, rather than
   absolutely positioning them on top of the reservation tabs. */
body.stl-live-public-view #st-live-page .st-chat-panel>header,
body.stl-live-public-view #st-live-page .st-chat-panel>header.has-tabs {
    display:flex;
    flex-flow:row nowrap;
    align-items:center;
    justify-content:space-between;
    gap:4px;
    min-width:0;
    min-height:50px;
    padding:0 8px!important;
    overflow:hidden;
    box-sizing:border-box;
    text-align:left;
}
body.stl-live-public-view #st-live-page .st-chat-panel>header.has-tabs>.st-live-tabs {
    display:flex;
    flex:1 1 auto;
    flex-direction:row;
    align-items:stretch;
    justify-content:flex-start;
    min-width:0;
    max-width:100%;
    gap:0;
    overflow:hidden;
}
body.stl-live-public-view #st-live-page .st-chat-panel>header.has-tabs>.st-live-tabs button {
    min-width:0;
    min-height:50px;
    max-width:100%;
    padding:0 7px;
    white-space:normal;
    overflow-wrap:normal;
    text-align:left;
    line-height:1.15;
    font-size:12px;
    gap:4px;
}
body.stl-live-public-view #st-live-page .st-chat-panel>header.has-tabs>.st-live-tabs button:first-child {
    flex:0 0 auto;
}
body.stl-live-public-view #st-live-page .st-chat-panel>header.has-tabs>.st-live-tabs button:last-child {
    flex:0 1 auto;
}
body.stl-live-public-view #st-live-page .st-chat-panel>header.has-tabs .st-live-tab-count {
    flex:0 0 auto;
    min-width:20px;
    padding:0 5px;
}
body.stl-live-public-view #st-live-page .st-chat-panel>header .stl-chat-header-tools {
    position:static!important;
    inset:auto!important;
    display:flex;
    flex:0 0 auto;
    flex-direction:row;
    align-items:center;
    justify-content:flex-end;
    gap:4px;
    width:auto;
    min-width:0;
    margin:0 0 0 auto;
    z-index:2;
}
body.stl-live-public-view #st-live-page .st-chat-panel.is-myres>header .stl-chat-header-tools {
    display:none!important;
}
body.stl-live-public-view #st-live-page .st-chat-panel>header .stl-chat-clear {
    display:inline-flex;
    flex:0 0 auto;
    align-items:center;
    justify-content:center;
    min-width:58px;
    min-height:36px;
    height:36px;
    padding:0 8px;
    line-height:1;
    font-size:11px;
    white-space:nowrap;
    box-sizing:border-box;
}
body.stl-live-public-view #st-live-page .st-chat-panel>header .stl-chat-popout {
    display:grid;
    flex:0 0 32px;
    width:32px;
    height:36px;
    min-width:32px;
    min-height:36px;
    place-items:center;
}
@media(max-width:400px) {
    body.stl-live-public-view #st-live-page .st-chat-panel>header,
    body.stl-live-public-view #st-live-page .st-chat-panel>header.has-tabs {padding:0 6px!important;}
    body.stl-live-public-view #st-live-page .st-chat-panel>header.has-tabs>.st-live-tabs button {padding:0 5px;font-size:11px;gap:3px;}
    body.stl-live-public-view #st-live-page .st-chat-panel>header .stl-chat-header-tools {gap:2px;}
    body.stl-live-public-view #st-live-page .st-chat-panel>header .stl-chat-clear {min-width:52px;padding:0 6px;font-size:11px;}
    body.stl-live-public-view #st-live-page .st-chat-panel>header .stl-chat-popout {width:28px;min-width:28px;flex-basis:28px;}
}


/* ==========================================================================
   0.2.72 — Restyling Live "sala cinema", coerente col tema Shin Tomo (antracite + rosso).
   Solo grafica: nessun cambio a struttura, altezze fisse del desktop o JavaScript.
   ========================================================================== */
body.stl-live-view{
  --stl-red:#d42825;--stl-red-text:#ff6a5f;--stl-gold:#e7bc68;
  --stl-surface:#2b2d31;--stl-surface2:#34363b;--stl-line:#3e4046;--stl-ink:#f3f2ef;--stl-muted:#aeaca7;
  /* un solo carattere in tutta la Live: quello del testo del tema */
  --stl-mono:var(--st-font-text,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);
  --stl-display:var(--stl-mono);
  background:#1f2124;
  background-image:radial-gradient(1100px 420px at 50% -120px,rgba(212,40,37,.07),transparent 70%);
  background-attachment:fixed;
}
body.stl-live-view:has(#st-live-status[data-state="live"]){
  background-image:radial-gradient(1200px 520px at 50% -140px,rgba(212,40,37,.16),transparent 72%);
}
body.stl-live-view .st-topbar{background:rgba(35,37,40,.92);border-bottom-color:var(--stl-line)}
@supports (backdrop-filter:blur(10px)){body.stl-live-view .st-topbar{backdrop-filter:blur(10px)}}
body.stl-live-view ::-webkit-scrollbar{width:8px;height:8px}
body.stl-live-view ::-webkit-scrollbar-thumb{background:#4a4c52;border-radius:8px;border:2px solid transparent;background-clip:padding-box}
body.stl-live-view ::-webkit-scrollbar-track{background:transparent}
body.stl-live-view #st-live-page *{scrollbar-color:#4a4c52 transparent}

/* --- Barra staff: compatta, etichetta a sinistra --- */
body.stl-live-view .stl-live-staffbar{min-height:0;padding:0 2px;margin:0 0 10px;background:transparent;border:0;box-shadow:none;gap:6px}
body.stl-live-view .stl-live-staffbar::before{content:"Staff";margin-right:auto;font:700 10.5px/1 var(--stl-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--stl-muted);display:flex;align-items:center;gap:7px}
body.stl-live-view .stl-live-staffbar a{min-height:34px!important;padding:0 14px;border-radius:999px;font-size:12.5px;font-weight:700;border:1px solid var(--stl-line);background:var(--stl-surface);color:var(--stl-ink);transition:border-color .15s,background .15s,transform .15s}
body.stl-live-view .stl-live-staffbar a:hover{transform:translateY(-1px);border-color:#5c5e64}
body.stl-live-view .stl-live-staffbar a.stl-staff-moderate{background:var(--stl-red);border-color:var(--stl-red);color:#fff}

/* --- Badge di stato --- */
#st-live-page .st-live-badge{display:inline-flex;align-items:center;gap:6px;width:max-content;height:24px;padding:0 10px;border-radius:999px;background:var(--stl-surface2);border:1px solid var(--stl-line);color:var(--stl-muted);font:800 10.5px/1 var(--stl-mono)!important;letter-spacing:.12em;white-space:nowrap}
#st-live-page .st-live-badge[data-state="live"]{background:var(--stl-red);border-color:var(--stl-red);color:#fff;animation:stl-badge-glow 2.4s ease-in-out infinite}
@keyframes stl-badge-glow{0%,100%{box-shadow:0 0 0 0 rgba(212,40,37,.55)}50%{box-shadow:0 0 0 6px rgba(212,40,37,0)}}

/* --- Contatori --- */
#st-live-page .st-live-counters>span{height:32px!important;padding:0 12px!important;border-radius:999px!important;border:1px solid var(--stl-line)!important;background:var(--stl-surface2)!important}
#st-live-page .st-live-counters .st-live-viewer-count{background:rgba(212,40,37,.12)!important;border-color:rgba(212,40,37,.38)!important;color:var(--stl-red-text)!important;gap:6px!important}
#st-live-page .st-live-counters .st-live-viewer-count b{color:var(--stl-red-text)!important;font:800 13px/1 var(--stl-mono)!important}
#st-live-page .st-live-counters .st-live-viewer-icon{stroke:var(--stl-red-text)!important;color:var(--stl-red-text)!important}
#st-live-page .st-live-counters .st-live-elapsed{font:700 12.5px/1 var(--stl-mono)!important;color:var(--stl-ink)!important;letter-spacing:.04em!important}

/* --- Titolo: badge a sinistra, titolo e sottotitolo a destra --- */
#st-live-page .st-live-heading{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "sub";align-content:center;align-items:center}
#st-live-page .st-live-heading>#st-live-status{grid-area:badge}
#st-live-page .st-live-heading>h1{grid-area:title;margin:0!important;font:800 19px/1.2 var(--stl-display)!important;letter-spacing:-.01em;color:var(--stl-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
#st-live-page .st-live-heading>#st-live-subtitle{grid-area:sub;margin:2px 0 0!important;font-size:13px;color:var(--stl-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
#st-live-page .st-live-heading>#st-live-desc{display:none}
#st-live-page .st-live-heading>#st-live-subtitle:empty{display:none}
#st-live-page .stl-title-editable{cursor:text}
#st-live-page .stl-title-editable:hover{text-decoration:underline dotted rgba(255,255,255,.3);text-underline-offset:4px}

/* Stato: solo LIVE (rosso, pallino bianco che pulsa) o OFFLINE (grigio), insieme a spettatori e durata. */
#st-live-page .st-live-counters>.st-live-badge{height:24px!important;padding:0 10px!important;border-radius:999px!important;gap:6px!important;font-size:10.5px!important;font-weight:800!important;letter-spacing:.08em!important}
#st-live-page .st-live-badge::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.75;flex:none}
#st-live-page .st-live-badge.is-live::before{background:#fff;opacity:1;animation:stl-dot 1.4s ease-in-out infinite}
@keyframes stl-dot{50%{opacity:.35}}
#st-live-page .st-live-counters>.st-live-badge.is-live{background:var(--stl-red)!important;border-color:var(--stl-red)!important;color:#fff!important}
#st-live-page .st-live-counters>.st-live-badge:not(.is-live){background:transparent!important;color:var(--stl-muted)!important;border-color:var(--stl-line)!important}
@media (min-width:981px){
  /* desktop: stato sopra, spettatori e durata sotto, allineati a destra */
  #st-live-page .st-live-counters{display:grid!important;grid-template-columns:auto auto;justify-items:end;align-content:center;row-gap:6px!important;column-gap:6px!important}
  #st-live-page .st-live-counters>.st-live-badge{grid-column:1/-1}
  #st-live-page .st-live-counters>span:not(.st-live-badge){height:28px!important}
}

/* --- Recap: intestazione e timeline dei momenti --- */
#st-live-recap .stl-recap-head{background:var(--stl-surface)!important;border-bottom:1px solid var(--stl-line)!important}
#st-live-recap .stl-recap-head strong{font:800 15px/1.2 var(--stl-display)}
#st-live-recap .stl-recap-head small{font:600 10.5px/1.3 var(--stl-mono)!important;letter-spacing:.06em;text-transform:uppercase;color:var(--stl-muted)!important}
#st-live-recap .stl-recap-live-dot{width:9px;height:9px;background:var(--stl-red);box-shadow:0 0 0 4px rgba(212,40,37,.18)}
#st-live-recap section{padding:12px 12px 14px}
#st-live-recap section h3{display:flex;align-items:center;gap:8px;margin:2px 0 12px;font:800 10.5px/1 var(--stl-mono)!important;letter-spacing:.14em;text-transform:uppercase;color:var(--stl-muted)}
#st-live-recap section h3::before{content:"";width:6px;height:6px;background:var(--stl-red);transform:rotate(45deg);flex:none}
#st-live-recap .stl-recap-event{position:relative;grid-template-columns:32px minmax(0,1fr);gap:10px;padding:8px 8px 10px;background:transparent;border:1px solid transparent;border-radius:12px;transition:background .15s,border-color .15s}
#st-live-recap .stl-recap-event:hover{background:var(--stl-surface2);border-color:var(--stl-line)}
#st-live-recap .stl-recap-icon{width:32px;height:32px;border-radius:50%;background:var(--stl-surface2);border:1px solid var(--stl-line);font-size:14px;position:relative;z-index:1}
#st-live-recap .stl-recap-claim .stl-recap-icon{background:rgba(212,40,37,.14);border-color:rgba(212,40,37,.42)}
#st-live-recap .stl-recap-event p{font-size:12px;color:var(--stl-muted)}
#st-live-recap .stl-recap-event p a{color:var(--stl-ink);font-weight:800;text-decoration:none}
#st-live-recap .stl-recap-event p a:hover{text-decoration:underline}
#st-live-recap .stl-recap-event p span{color:var(--stl-muted)}
#st-live-recap .stl-recap-event>div:last-child>strong{margin-top:1px;font:700 13.5px/1.3 var(--stl-display);color:var(--stl-ink);overflow-wrap:anywhere}
#st-live-recap .stl-recap-event small{font:600 11px/1 var(--stl-mono)!important;color:#85837e;margin-top:6px}
#st-live-recap .stl-recap-event.is-new{animation:stl-recap-new2 1.8s ease}
@keyframes stl-recap-new2{0%{background:rgba(212,40,37,.18);border-color:var(--stl-red)}100%{background:transparent;border-color:transparent}}
#st-live-recap .stl-recap-poll{border-radius:12px;background:var(--stl-surface2);border-color:var(--stl-line)}
#st-live-recap .stl-recap-poll.is-active{border-color:rgba(212,40,37,.5)}
#st-live-recap .stl-recap-poll-bar{height:6px;background:#2b2d31}
#st-live-recap .stl-recap-poll-bar i{background:linear-gradient(90deg,var(--stl-red),#ff6a5f)}
#st-live-recap .stl-recap-empty,#st-live-recap .stl-recap-loading{color:var(--stl-muted)}

/* --- Chat --- */
#st-live-page .st-chat-panel>header{background:var(--stl-surface)!important;border-bottom:1px solid var(--stl-line)!important}
#st-live-page .st-live-tabs button{color:var(--stl-muted);font-weight:700;background:transparent;border:0;transition:color .15s,box-shadow .15s}
#st-live-page .st-live-tabs button:hover{color:var(--stl-ink)}
#st-live-page .st-live-tabs button[aria-selected="true"]{color:var(--stl-ink);box-shadow:inset 0 -2px 0 var(--stl-red)}
#st-live-page .st-live-tab-count{background:var(--stl-red)!important;color:#fff!important;border-radius:999px;font:800 10.5px/18px var(--stl-mono);height:18px}
#st-live-page .stl-chat-header-tools .stl-chat-clear{border-radius:999px!important;background:transparent!important;border:1px solid var(--stl-line)!important;color:var(--stl-muted)!important}
#st-live-page .stl-chat-header-tools .stl-chat-clear:hover{color:#fff!important;border-color:var(--stl-red)!important}
#st-live-page .stl-chat-popout{border-radius:999px;color:var(--stl-muted)}
#st-live-page .stl-chat-popout:hover{color:#fff;background:var(--stl-surface2)}
#stl-chat-stream.st-chat-messages{background:#26282b}
#stl-chat-stream .stl-chat-line{border-radius:8px}
#stl-chat-stream .stl-chat-line:hover{background:rgba(255,255,255,.035)}
#stl-chat-stream .stl-chat-system{margin:6px 0;padding:9px 12px;background:linear-gradient(90deg,rgba(231,188,104,.15),rgba(231,188,104,.03) 70%);border:0;border-left:3px solid var(--stl-gold);border-radius:4px 12px 12px 4px}
#stl-chat-stream .stl-chat-system-label{border-radius:999px;padding:3px 8px;font-family:var(--stl-mono);letter-spacing:.1em}
#stl-chat-stream .stl-chat-system-body{color:#f6e3bb}
#stl-chat-form{background:var(--stl-surface)!important;border-top:1px solid var(--stl-line)!important}
#stl-chat-input{border-radius:12px!important;background:var(--stl-surface2)!important;border-color:var(--stl-line)!important}
#stl-chat-input:focus{border-color:var(--stl-red)!important;box-shadow:0 0 0 3px rgba(212,40,37,.25)!important}
#stl-chat-form button[type=submit]{border-radius:12px!important}
.stl-chat-new{background:var(--stl-red);border-color:var(--stl-red);box-shadow:0 8px 24px rgba(212,40,37,.35)}

/* Un solo font in tutta la Live (prima: Inter + Plus Jakarta + monospazio). Cifre tabellari per contatori e orari. */
body.stl-live-view #st-live-page,body.stl-live-view #st-live-page *,body.stl-live-view .stl-chat-popup *,body.stl-live-view .stl-live-staffbar,body.stl-live-view .stl-live-staffbar *{font-family:var(--stl-mono)!important}
#st-live-page .st-live-badge,#st-live-page .st-live-counters,#st-live-recap small,#stl-chat-stream{font-variant-numeric:tabular-nums}
#st-live-page .st-live-badge,#st-live-recap section h3,#st-live-recap .stl-recap-head small,#stl-chat-stream .stl-chat-system-label{letter-spacing:.06em!important}

/* --- Desktop: pannelli come le card del tema, palco con bagliore in diretta --- */
@media (min-width:981px){
  body.stl-live-public-view .st-live-shell{padding:12px 16px 16px!important}
  body.stl-live-public-view #st-live-page.st-live-public-layout{gap:14px!important;grid-template-columns:268px minmax(0,1fr) 368px!important}
  body.stl-live-public-view #st-live-page .st-live-recap,
  body.stl-live-public-view #st-live-page .st-chat-panel{background:var(--stl-surface)!important;border:1px solid var(--stl-line)!important;border-radius:18px!important;box-shadow:0 18px 50px -24px rgba(0,0,0,.6)}
  body.stl-live-public-view #st-live-page .st-live-recap{background:#292b2f!important}
  body.stl-live-public-view #st-live-page .st-live-stage{border:1px solid var(--stl-line);border-radius:18px;background:#000;box-shadow:0 24px 60px -28px rgba(0,0,0,.7);transition:box-shadow .6s,border-color .6s}
  body.stl-live-public-view #st-live-page:has(#st-live-status[data-state="live"]) .st-live-stage{border-color:rgba(212,40,37,.55);box-shadow:0 0 0 1px rgba(212,40,37,.25),0 30px 90px -30px rgba(212,40,37,.6)}
  body.stl-live-public-view #st-live-page .st-live-meta{background:linear-gradient(180deg,#2d2f33,#2a2c30)!important;border-top:1px solid var(--stl-line)!important;padding:10px 18px!important}
  body.stl-live-public-view #st-live-page .stl-recap-events{display:flex!important;flex-direction:column;gap:2px}
  /* linea della timeline tra un momento e il successivo */
  body.stl-live-public-view #st-live-recap .stl-recap-event:not(:last-child)::after{content:"";position:absolute;left:23px;top:42px;bottom:-6px;width:2px;border-radius:2px;background:var(--stl-line)}
  body.stl-live-public-view #st-live-page #st-live-purchases .st-pcard{border-radius:16px!important}
}
@media (min-width:981px) and (max-width:1180px){
  body.stl-live-public-view #st-live-page.st-live-public-layout{grid-template-columns:220px minmax(0,1fr) 320px!important;gap:10px!important}
}
/* --- Mobile in stile app: video in alto, riga info compatta, chat a tutto schermo con il campo in fondo.
       Recap e prenotazioni restano come schede nella testata della chat (Momenti aggiunta da live-mobile.js). --- */
.stl-recap-tab,body.stl-live-public-view #st-live-page .st-chat-panel>header.has-tabs>.st-live-tabs .stl-recap-tab{display:none!important}
@media (max-width:980px){
  body.stl-live-public-view{height:100dvh;overflow:hidden!important;overscroll-behavior:none}
  body.stl-live-public-view .st-bottom-nav,
  body.stl-live-public-view .st-footer{display:none!important}
  body.stl-live-public-view .st-live-shell{padding:0!important;margin:0!important;max-width:none!important}
  body.stl-live-public-view #st-live-page.st-live-layout{
    position:fixed!important;left:0;right:0;top:var(--stl-mtop,58px);bottom:0;z-index:5;
    display:flex!important;flex-direction:column;gap:0!important;height:auto!important;min-height:0;overflow:hidden;
    background:#1f2124;
  }
  body.stl-live-public-view #st-live-page .st-live-main{order:1;flex:0 0 auto;display:flex;flex-direction:column;min-height:0;max-height:62dvh;overflow:hidden;margin:0!important}
  body.stl-live-public-view #st-live-page .stl-live-staffbar{order:-1;flex:0 0 auto;margin:0!important;padding:6px 10px!important;gap:6px;background:var(--stl-surface)!important;border-bottom:1px solid var(--stl-line)!important}
  body.stl-live-public-view #st-live-page .stl-live-staffbar a{flex:1;min-height:32px!important;height:32px}
  body.stl-live-public-view #st-live-page .st-live-stage{flex:0 0 auto;border:0;border-radius:0;background:#000}
  body.stl-live-public-view #st-live-page .st-live-player{aspect-ratio:16/9!important;max-height:42dvh!important;width:100%;border-radius:0!important}
  body.stl-live-public-view #st-live-page .st-live-meta{min-height:0!important;height:auto!important;padding:8px 12px!important;background:var(--stl-surface)!important;border-top:0!important;border-bottom:1px solid var(--stl-line)!important}
  body.stl-live-public-view #st-live-page .st-live-meta-row{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px}
  body.stl-live-public-view #st-live-page .st-live-heading{grid-template-areas:"title";min-height:0!important;height:auto!important;flex:1 1 auto;min-width:0}
  body.stl-live-public-view #st-live-page .st-live-heading>h1{font-size:15px!important}
  body.stl-live-public-view #st-live-page .st-live-heading>#st-live-subtitle{display:none!important}
  body.stl-live-public-view #st-live-page .st-live-counters{margin-left:auto!important;gap:6px!important}
  body.stl-live-public-view #st-live-page .st-live-counters>span{height:26px!important;padding:0 9px!important}
  body.stl-live-public-view #st-live-page .st-live-actions,
  body.stl-live-public-view #st-live-page .st-live-widget-zone{flex:0 1 auto;max-height:22dvh;overflow:auto!important;margin:0!important}

  body.stl-live-public-view #st-live-page .st-chat-panel{
    order:2;flex:1 1 auto;min-height:0;height:auto!important;max-height:none!important;display:flex!important;flex-direction:column;
    border:0!important;border-radius:0!important;box-shadow:none!important;background:#26282b!important;overflow:hidden!important;position:relative!important;top:auto!important;margin:0!important;
  }
  body.stl-live-public-view #st-live-page .st-chat-panel>header{flex:0 0 auto;min-height:44px!important}
  body.stl-live-public-view #st-live-page .st-chat-panel>header.has-tabs>.st-live-tabs button{min-height:44px!important;font-size:13px!important;padding:0 10px!important}
  body.stl-live-public-view #st-live-page .stl-chat-pinned,
  body.stl-live-public-view #st-live-page #stl-chat-form{flex:0 0 auto}
  body.stl-live-public-view #st-live-page #stl-chat-stream{flex:1 1 auto;min-height:0;max-height:none!important;height:auto!important;overflow-y:auto!important;overscroll-behavior:contain;padding:6px 12px!important}
  body.stl-live-public-view #st-live-page #st-live-myres:not([hidden]){flex:1 1 auto;min-height:0;overflow-y:auto}
  body.stl-live-public-view #st-live-page #stl-chat-form{padding:8px 10px calc(8px + env(safe-area-inset-bottom))!important}
  body.stl-live-public-view #st-live-page .stl-chat-new{bottom:76px}

  /* Recap: nascosto finché non si apre la scheda Momenti */
  body.stl-live-public-view #st-live-page .st-live-recap{order:3;display:none!important}
  body.stl-live-public-view #st-live-page .st-chat-panel>header.has-tabs>.st-live-tabs .stl-recap-tab{display:inline-flex!important;align-items:center;gap:6px}
  body.stl-live-public-view .stl-recap-tab.has-new::after{content:"";width:7px;height:7px;border-radius:50%;background:var(--stl-red)}
  body.stl-live-public-view #st-live-page.stl-show-recap .st-chat-panel{flex:0 0 auto}
  body.stl-live-public-view #st-live-page.stl-show-recap .st-chat-panel>:not(header){display:none!important}
  body.stl-live-public-view #st-live-page.stl-show-recap .st-live-recap{display:block!important;flex:1 1 auto;min-height:0;height:auto!important;max-height:none!important;overflow-y:auto!important;border:0!important;border-radius:0!important;background:#26282b!important;position:relative!important;top:auto!important;margin:0!important}
  body.stl-live-public-view #st-live-page.stl-show-recap .st-live-tabs button[aria-selected="true"]{color:var(--stl-muted);box-shadow:none}
  body.stl-live-public-view #st-live-page.stl-show-recap .stl-recap-tab{color:var(--stl-ink);box-shadow:inset 0 -2px 0 var(--stl-red)}
  body.stl-live-public-view #st-live-page .stl-recap-events{display:flex!important;flex-direction:column;gap:2px}
  body.stl-live-public-view #st-live-recap .stl-recap-event:not(:last-child)::after{content:"";position:absolute;left:23px;top:42px;bottom:-6px;width:2px;border-radius:2px;background:var(--stl-line)}
  body.stl-live-public-view #st-live-page.stl-show-recap .stl-chat-header-tools{display:none!important}
}
@media (max-width:980px){
  body.stl-live-public-view #st-live-page.st-live-layout{align-items:stretch!important}
  body.stl-live-public-view #st-live-page .st-live-main,body.stl-live-public-view #st-live-page .st-live-stage,body.stl-live-public-view #st-live-page .st-live-player{width:100%!important;max-width:none!important}
  body.stl-live-public-view #st-live-page .st-chat-panel>header.has-tabs>.st-live-tabs{overflow-x:auto!important;scrollbar-width:none}
  body.stl-live-public-view #st-live-page .st-chat-panel>header.has-tabs>.st-live-tabs button{white-space:nowrap!important;flex:0 0 auto!important}
}
/* Su telefono "Svuota" e "Apri chat dedicata" lasciano spazio alle schede: restano in Modera e su desktop. */
@media (max-width:760px){body.stl-live-public-view #st-live-page .st-chat-panel>header .stl-chat-header-tools{display:none!important}}
@media (max-width:760px){body.stl-live-view .stl-live-staffbar::before{display:none}}
@media (prefers-reduced-motion:reduce){
  #st-live-page .st-live-badge[data-state="live"],#st-live-page .st-live-badge.is-live::before,#st-live-recap .stl-recap-event.is-new{animation:none}
  body.stl-live-view .stl-live-staffbar a{transition:none}
}

/* 0.2.74 — Momenti: niente icona, un semplice punto rosso sulla linea del tempo. */
#st-live-recap .stl-recap-event,body.stl-live-public-view #st-live-recap .stl-recap-event{grid-template-columns:10px minmax(0,1fr)!important;gap:12px!important;padding:8px 10px 10px!important}
#st-live-recap .stl-recap-icon,#st-live-recap .stl-recap-claim .stl-recap-icon{width:10px!important;height:10px!important;margin-top:4px;border-radius:50%!important;background:var(--stl-red)!important;border:0!important;box-shadow:0 0 0 3px rgba(212,40,37,.2);font-size:0!important;color:transparent!important;overflow:hidden}
#st-live-recap .stl-recap-icon::before{content:none!important}
body.stl-live-public-view #st-live-recap .stl-recap-event:not(:last-child)::after{left:14px!important;top:26px!important;bottom:-8px!important;width:2px}

/* 0.2.78 – Le mie prenotazioni: niente prezzi né totale. */
#st-live-myres .st-myres-price,#st-live-myres .st-myres-foot{display:none!important}


/* 0.2.85 - Recap Live: pulsante Svuota per moderatori. */
#st-live-recap .stl-recap-clear{flex:none;min-height:30px;padding:0 10px;border-radius:999px;border:1px solid var(--stl-line,#3d3d43);background:transparent;color:var(--stl-muted,#cfcfd5);font:inherit;font-size:12px;font-weight:800;cursor:pointer}
#st-live-recap .stl-recap-clear:hover{color:#fff;border-color:var(--stl-red,#e5484d)}
#st-live-recap .stl-recap-clear:disabled{opacity:.5;cursor:default}
