.koopo-live-shell {
  --kl-bg: #0a0a0b;
  --kl-panel: #111113;
  --kl-line: #29292d;
  --kl-muted: #929298;
  --kl-text: #f4f4f5;
  --kl-live: #f04444;
  --kl-accent: #ffba12;
  min-height: 720px;
  overflow: hidden;
  color: var(--kl-text);
  background: var(--kl-bg);
  border: 1px solid #1f1f22;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.koopo-live-shell *, .koopo-live-shell *::before, .koopo-live-shell *::after { box-sizing: border-box; }
.koopo-live-shell button, .koopo-live-shell input, .koopo-live-shell select, .koopo-live-shell textarea { font: inherit; }
.koopo-live-shell button { cursor: pointer; }
.koopo-live-shell button:disabled { cursor: not-allowed; opacity: .42; }

.koopo-live-topbar {
  height: 64px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--kl-line);
}

.koopo-live-wordmark { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.koopo-live-wordmark > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: #080809; background: #fff; font-size: 13px; }
.koopo-live-broadcast-state { display: flex; align-items: center; gap: 8px; color: var(--kl-muted); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.koopo-live-broadcast-state i { width: 7px; height: 7px; border-radius: 50%; background: #5e5e64; }
.koopo-live-broadcast-state.is-live { color: #fff; }
.koopo-live-broadcast-state.is-live i { background: var(--kl-live); animation: koopo-live-pulse 1.8s ease-out infinite; }

.koopo-live-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: 656px; }
.koopo-live-workspace { min-width: 0; padding: 26px; }
.koopo-live-stage { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: #050506; border: 1px solid #202023; border-radius: 14px; }
.koopo-live-stage video { width: 100%; height: 100%; object-fit: cover; background: #050506; }
.koopo-live-youtube-preview { position: absolute; inset: 0; z-index: 1; background: #000; }
.koopo-live-youtube-preview iframe { width: 100%; height: 100%; border: 0; }
.koopo-live-youtube-source { display: grid; gap: 10px; }
.koopo-live-youtube-source[hidden] { display: none; }
.koopo-live-shell.is-youtube-source [data-preview], .koopo-live-shell.is-youtube-source [data-toggle-mic], .koopo-live-shell.is-youtube-source [data-toggle-camera], .koopo-live-shell.is-youtube-source [data-share-screen], .koopo-live-shell.is-youtube-source [data-scene-picker] { display: none; }
.koopo-live-stage.is-portrait { width: min(100%, 460px); max-height: 78vh; margin-inline: auto; aspect-ratio: 9 / 16; }
.koopo-live-stage.is-portrait video { object-fit: contain; }
.koopo-live-empty { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; padding: 32px; text-align: center; }
.koopo-live-empty.is-hidden { opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
.koopo-live-camera-mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; color: #d7d7da; background: #171719; border: 1px solid #2b2b2f; border-radius: 50%; }
.koopo-live-camera-mark svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.koopo-live-empty h2 { margin: 0; color: #fff; font-size: clamp(21px, 2.4vw, 30px); font-weight: 650; letter-spacing: -.035em; }
.koopo-live-empty p { max-width: 440px; margin: 10px 0 22px; color: var(--kl-muted); font-size: 14px; line-height: 1.55; }
.koopo-live-stage-meta { position: absolute; z-index: 2; top: 12px; left: 12px; right: 12px; bottom: auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; color: rgba(255, 255, 255, .92); font-size: 10px; font-weight: 650; letter-spacing: .01em; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); pointer-events: none; }
.koopo-live-stage-meta span { min-width: 0; max-width: min(72%, 520px); padding: 5px 8px; overflow: hidden; background: rgba(10, 10, 12, .58); border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px; box-shadow: 0 5px 18px rgba(0, 0, 0, .16); backdrop-filter: blur(10px); text-overflow: ellipsis; white-space: nowrap; }
.koopo-live-stage-meta span:last-child { flex: 0 0 auto; }

.koopo-live-scene-picker { padding-top: 14px; }
.koopo-live-scene-picker > span { display: block; margin-bottom: 8px; color: var(--kl-muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.koopo-live-scene-picker > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.koopo-live-scene-picker button { min-width: 0; padding: 8px 6px 7px; color: #929298; background: #111113; border: 1px solid #29292d; border-radius: 9px; transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease, transform 150ms ease; }
.koopo-live-scene-picker button:hover { color: #fff; border-color: #48484e; transform: translateY(-1px); }
.koopo-live-scene-picker button[aria-pressed="true"] { color: #fff; background: #202023; border-color: #77777f; }
.koopo-live-scene-picker small { display: block; margin-top: 5px; overflow: hidden; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.koopo-live-layout-icon { position: relative; display: block; width: 34px; aspect-ratio: 16 / 9; margin: auto; overflow: hidden; background: #09090a; border: 1px solid #56565d; border-radius: 3px; }
.koopo-live-layout-icon b { position: absolute; display: block; background: #c9c9cd; border-radius: 1px; }
.koopo-live-layout-icon.is-camera b:first-child, .koopo-live-layout-icon.is-screen b:first-child { inset: 2px; }
.koopo-live-layout-icon.is-camera b:last-child, .koopo-live-layout-icon.is-screen b:last-child { display: none; }
.koopo-live-layout-icon.is-screen b:first-child { background: #73737b; }
.koopo-live-layout-icon.is-split b:first-child { inset: 2px 17px 2px 2px; }
.koopo-live-layout-icon.is-split b:last-child { inset: 2px 2px 2px 18px; background: #73737b; }
.koopo-live-layout-icon.is-camera-focus b:first-child { inset: 0 13px 0 0; }
.koopo-live-layout-icon.is-camera-focus b:last-child { inset: 0 0 0 22px; background: #73737b; }
.koopo-live-layout-icon.is-screen-focus b:first-child { inset: 2px; background: #73737b; }
.koopo-live-layout-icon.is-screen-focus b:last-child { right: 3px; bottom: 3px; width: 9px; height: 7px; background: #d7d7da; box-shadow: 0 0 0 1px #09090a; }

.koopo-live-controls { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 18px; }
.koopo-live-button, .koopo-live-icon-button { min-height: 42px; color: #f8f8f8; background: #1b1b1e; border: 1px solid #303034; border-radius: 9px; font-weight: 650; }
.koopo-live-button { padding: 0 17px; }
.koopo-live-button-primary { background: #f3f3f4; color: #101011; border-color: #f3f3f4; }
.koopo-live-icon-button { display: grid; place-items: center; width: 42px; padding: 0; }
.koopo-live-icon-button svg, .koopo-live-chat form button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.koopo-live-icon-button.is-off { color: #fff; background: #482020; border-color: #7f3030; }
.koopo-live-go-live { min-width: 118px; margin-left: 8px; background: var(--kl-live); border-color: var(--kl-live); }
.koopo-live-go-live.is-live { color: #ffbcbc; background: transparent; border-color: #763030; border-style: solid; }
.koopo-live-feedback { min-height: 20px; margin: 10px 0 0; color: var(--kl-muted); font-size: 12px; text-align: center; }
.koopo-live-feedback.is-error { color: #ff9b9b; }

.koopo-live-rail { position: relative; z-index: 5; min-width: 0; display: flex; flex-direction: column; overflow: visible; background: var(--kl-panel); border-left: 1px solid var(--kl-line); height:100vh;overflow:scroll;}
.koopo-live-rail-tabs { display: flex; min-height: 54px; border-bottom: 1px solid var(--kl-line); }
.koopo-live-shell .koopo-live-rail-tabs button { flex: 1; position: relative; color: var(--kl-muted); background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: none; font-size: 12px; font-weight: 650; }
.koopo-live-shell .koopo-live-rail-tabs button:hover, .koopo-live-shell .koopo-live-rail-tabs button:focus-visible { color: #fff; background: #18181b !important; }
.koopo-live-rail-tabs button.is-active { color: #fff !important; }
.koopo-live-rail-tabs button.is-active:hover { color: #333 !important; }
.koopo-live-rail-tabs button.is-active::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: -1px; height: 2px; background: #fff; }
.koopo-live-rail-tabs small { margin-left: 5px; padding: 2px 5px; color: #85858b; border: 1px solid #38383c; border-radius: 4px; font-size: 9px; text-transform: uppercase; }
.koopo-live-setup-panel { padding: 20px; border-bottom: 1px solid var(--kl-line); }
.koopo-live-setup-panel label { display: block; margin-bottom: 15px; color: #b9b9bd; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.koopo-live-setup-panel input, .koopo-live-setup-panel select { width: 100%; height: 42px; margin-top: 7px; padding: 0 11px; color: #f5f5f5; background: #0c0c0e; border: 1px solid #303034; border-radius: 8px; font-size: 13px; text-transform: none; letter-spacing: normal; outline: none; }
.koopo-live-setup-panel textarea { width: 100%; min-height: 174px; margin-top: 7px; padding: 10px 11px; color: #eeeef1; background: #0c0c0e; border: 1px solid #303034; border-radius: 8px; outline: none; resize: vertical; font-family: inherit; font-size: 11px; font-weight: 500; line-height: 1.55; text-transform: none; letter-spacing: normal; }
.koopo-live-setup-panel input:focus, .koopo-live-setup-panel select:focus, .koopo-live-setup-panel textarea:focus, .koopo-live-chat input:focus { border-color: #74747c; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.koopo-live-field-note { margin: 10px 0 15px; color: var(--kl-muted); font-size: 11px; line-height: 1.45; }
.koopo-live-thumbnail-field { margin-bottom: 15px; }
.koopo-live-thumbnail-field > label { margin-bottom: 8px; }
.koopo-live-thumbnail-field input[type="file"] { height: auto; padding: 9px 10px; cursor: pointer; }
.koopo-live-thumbnail-field input[type="file"]::file-selector-button { margin-right: 10px; padding: 7px 10px; color: #111; background: #fff; border: 0; border-radius: 6px; font-weight: 700; cursor: pointer; }
.koopo-live-thumbnail-preview { position: relative; overflow: hidden; aspect-ratio: 16 / 9; margin: 0 0 10px; background: #080809; border: 1px solid #303034; border-radius: 9px; }
.koopo-live-thumbnail-preview[hidden] { display: none; }
.koopo-live-thumbnail-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.koopo-live-thumbnail-preview button { position: absolute; right: 8px; bottom: 8px; padding: 6px 9px; color: #fff; background: rgba(9,9,10,.82); border: 1px solid rgba(255,255,255,.28); border-radius: 6px; font-size: 11px; font-weight: 700; }
.koopo-live-thumbnail-field .koopo-live-field-note { margin: 0; }
.koopo-live-choice-field { min-width: 0; margin: 0 0 15px; padding: 0; border: 0; }
.koopo-live-choice-field > legend { margin-bottom: 7px; color: #b9b9bd; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.koopo-live-source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.koopo-live-source-choice { position: relative; min-width: 0; min-height: 116px; display: flex; align-items: flex-start; justify-content: flex-end; flex-direction: column; gap: 10px; padding: 13px; color: #d1d1d5; text-align: left; background: #000 !important; border: 1px solid #303034; border-radius: 11px; transition: color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.koopo-live-source-choice:hover:not(:disabled) { color: #fff; background: #000 !important; border-color: #55555c; transform: translateY(-1px); }
.koopo-live-source-choice:focus-visible { outline: 2px solid var(--kl-accent); outline-offset: 3px; }
.koopo-live-source-choice.is-selected,
.koopo-live-source-choice.is-selected:hover:not(:disabled) { color: #fff; background: #000 !important; border-color: #5e543c; box-shadow: none;border-style:solid; }
.koopo-live-source-choice > span:nth-child(2) { max-width: 112px; font-size: 12px; font-weight: 750; line-height: 1.3; }
.koopo-live-source-choice > i { position: absolute; top: 10px; right: 10px; display: grid; width: 20px; height: 20px; place-items: center; color: #0b0b0c; background: var(--kl-accent); border-radius: 50%; opacity: 0; transform: scale(.72); transition: opacity 160ms ease, transform 160ms ease; }
.koopo-live-source-choice.is-selected > i { opacity: 1; transform: scale(1); }
.koopo-live-source-choice > i svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.koopo-live-source-logo { display: grid; width: 82px; height: 46px; place-items: center start; background: transparent; }
.koopo-live-source-logo.is-koopo img { width: 82px; height: 46px; display: block; background: transparent; border-radius: 0; object-fit: contain; object-position: left center; box-shadow: none; }
.koopo-live-source-logo.is-youtube svg { width: 42px; height: auto; }
.koopo-live-format-picker > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.koopo-live-format-picker button { min-height: 62px; display: flex; align-items: center; gap: 10px; padding: 10px 11px; color: #a8a8ad; text-align: left; background: #000 !important; border: 1px solid #303034; border-radius: 9px; transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
.koopo-live-format-picker button:hover:not(:disabled) { color: #fff; background: #000 !important; border-color: #55555c; }
.koopo-live-format-picker button:focus-visible { outline: 2px solid var(--kl-accent); outline-offset: 2px; }
.koopo-live-format-picker button.is-selected,
.koopo-live-format-picker button.is-selected:hover:not(:disabled) { color: #fff; background: #000 !important; border-color: #fff; box-shadow: none; }
.koopo-live-format-picker button > svg { flex: 0 0 29px; width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.koopo-live-format-picker button > span { min-width: 0; font-size: 11px; font-weight: 750; line-height: 1.2; }
.koopo-live-format-picker button small { display: block; margin-top: 3px; color: var(--kl-muted); font-size: 9px; font-weight: 600; }
.koopo-live-destinations-panel { padding: 16px 18px 22px; border-bottom: 1px solid var(--kl-line); }
.koopo-live-destination-intro { padding: 2px 2px 12px; color: var(--kl-muted); font-size: 12px; line-height: 1.5; }
.koopo-live-destination-intro p { margin: 0; }
.koopo-live-destination-card { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 10px 12px; margin-bottom: 9px; border: 1px solid #303034; border-radius: 10px; background: #0c0c0e; }
.koopo-live-destination-card > div { display: flex; align-items: center; min-width: 0; gap: 10px; }
.koopo-live-destination-card strong, .koopo-live-destination-card small { display: block; }
.koopo-live-destination-card strong { color: #f5f5f5; font-size: 13px; }
.koopo-live-destination-card small { overflow: hidden; max-width: 190px; margin-top: 2px; color: var(--kl-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.koopo-live-destination-mark { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: #252529; color: #fff; font-size: 12px; font-weight: 800; }
.koopo-live-destination-card.is-primary { border-color: #3a493d; background: #101512; }
.koopo-live-destination-card.is-primary .koopo-live-destination-mark { color: #080808; background: #fff; }
.koopo-live-destination-card button, .koopo-live-destination-form button:not(.koopo-live-button) { padding: 7px 10px; color: #e7e7e9; border: 1px solid #3a3a3f; border-radius: 7px; background: #18181b; font-size: 11px; }
.koopo-live-destination-state { color: var(--kl-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.koopo-live-destination-state.is-ready { color: #8fe3a6; }
.koopo-live-destination-form { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--kl-line); }
.koopo-live-destination-guide { margin: 0 0 14px; padding: 11px 12px; border-left: 2px solid #707078; background: rgba(255,255,255,.04); }
.koopo-live-destination-guide[hidden] { display: none !important; }
.koopo-live-destination-guide p { margin: 0; color: #c8c8ce; font-size: 11px; line-height: 1.45; }
.koopo-live-destination-guide a { display: inline-block; margin-top: 7px; color: #c7a8ff; font-size: 10px; font-weight: 700; text-decoration: none; }
.koopo-live-destination-guide a:hover, .koopo-live-destination-guide a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.koopo-live-destination-form[data-provider="facebook"] .koopo-live-destination-guide { border-left-color: #1877f2; background: rgba(24,119,242,.08); }
.koopo-live-destination-form[data-provider="facebook"] .koopo-live-destination-guide a { color: #8abfff; }
.koopo-live-destination-form[data-provider="twitch"] .koopo-live-destination-guide { border-left-color: #9147ff; background: rgba(145,71,255,.08); }
.koopo-live-destination-form[data-provider="twitch"] .koopo-live-destination-guide a { color: #c7a8ff; }
.koopo-live-destination-form[data-provider="rumble"] .koopo-live-destination-guide { border-left-color: #85c742; background: rgba(133,199,66,.08); }
.koopo-live-destination-form[data-provider="rumble"] .koopo-live-destination-guide a { color: #a9dc75; }
.koopo-live-destination-card[data-destination-card="facebook"] .koopo-live-destination-mark { background: #1877f2; }
.koopo-live-destination-card[data-destination-card="twitch"] .koopo-live-destination-mark { background: #9147ff; }
.koopo-live-destination-card[data-destination-card="rumble"] .koopo-live-destination-mark { color: #071000; background: #85c742; }
.koopo-live-destination-form .koopo-live-section-heading { padding: 0 0 12px; }
.koopo-live-destination-form label { display: block; margin-bottom: 13px; color: #b9b9bd; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.koopo-live-destination-form input { width: 100%; height: 42px; margin-top: 7px; padding: 0 11px; color: #f5f5f5; background: #08080a; border: 1px solid #303034; border-radius: 8px; font-size: 13px; text-transform: none; letter-spacing: normal; }
.koopo-live-destination-form label small { display: block; margin-top: 6px; color: var(--kl-muted); font-size: 10px; font-weight: 400; line-height: 1.4; text-transform: none; letter-spacing: normal; }
.koopo-live-destination-actions { display: flex; align-items: center; gap: 9px; }
.koopo-live-destination-actions .koopo-live-button { flex: 1; }
.koopo-live-destination-form [data-destination-feedback] { min-height: 18px; color: var(--kl-muted); font-size: 11px; }
.koopo-live-destination-form [data-destination-feedback].is-error { color: #ff7479; }
.koopo-live-link-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: rgba(0, 0, 0, 0.045); border-radius: 10px; }
.koopo-live-link-row div { min-width: 0; }
.koopo-live-link-row span, .koopo-live-link-row strong { display: block; }
.koopo-live-link-row .koopo-live-viewer-link-copy > span { display: flex; align-items: center; gap: 6px; color: #d5b55f; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.koopo-live-viewer-link-copy > span svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.koopo-live-link-row strong { max-width: 230px; margin-top: 4px; overflow: hidden; color: #e6e6e8; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.koopo-live-share-control { position: relative; flex: 0 0 auto; }
.koopo-live-share-trigger { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; color: #111; background: var(--kl-accent); border: 1px solid var(--kl-accent); border-radius: 8px;  font-weight: 800; }
.koopo-live-share-trigger svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.koopo-live-share-trigger span { color: inherit; font-size: inherit; text-transform: none; letter-spacing: 0; }
.koopo-live-share-trigger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.koopo-live-share-menu { position: absolute; z-index: 20; right: 0; bottom: calc(100% + 8px); width: 218px; padding: 7px; background: #18181b; border: 1px solid #3a3a3f; border-radius: 11px; box-shadow: 0 18px 45px rgba(0,0,0,.46); }
.koopo-live-share-menu[hidden] { display: none; }
.koopo-live-share-menu button { width: 100%; min-height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 10px; color: #e8e8ea; text-align: left; background: transparent; border: 0; border-radius: 7px;  }
.koopo-live-share-menu button:hover, .koopo-live-share-menu button:focus-visible { color: #fff; background: #29292d; outline: none; }
.koopo-live-share-menu button svg, .koopo-live-share-letter { flex: 0 0 18px; width: 18px;  }
.koopo-live-share-menu button svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.koopo-live-share-menu button span:last-child { color: inherit; font-size: inherit; text-transform: none; letter-spacing: 0; }
.koopo-live-share-letter { display: grid !important; place-items: center; color: #fff !important; background: #34343a; border-radius: 5px; font-size: 11px !important; font-weight: 850; text-transform: none !important; letter-spacing: 0 !important; }
.koopo-live-share-menu [data-share-action="facebook"] .koopo-live-share-letter { background: #1877f2; }
.koopo-live-message-share { position: fixed; z-index: 999999; inset: 0; display: grid; place-items: center; padding: 18px; }
.koopo-live-message-share[hidden] { display: none; }
.koopo-live-message-share-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.koopo-live-message-share-box { position: relative; width: min(100%, 480px); max-height: min(720px, calc(100vh - 36px)); display: flex; flex-direction: column; padding: 22px; overflow: hidden; color: var(--kl-text); background: #131315; border: 1px solid #3a3a3f; border-radius: 14px; box-shadow: 0 28px 80px rgba(0,0,0,.56); }
.koopo-live-message-share-box header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.koopo-live-message-share-box header small { color: var(--kl-accent); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.koopo-live-message-share-box h2 { margin: 3px 0 0; color: #fff; font-size: 21px; letter-spacing: -.03em; }
.koopo-live-message-share-box header > button { width: 34px; height: 34px; color: #bbb; background: #202023; border: 1px solid #343438; border-radius: 8px; font-size: 22px; line-height: 1; }
.koopo-live-message-share-box > p { margin: 9px 0 14px; color: var(--kl-muted); font-size: 12px; line-height: 1.5; }
.koopo-live-message-recipient-list { max-height: 286px; display: grid; gap: 6px; padding-right: 3px; overflow-y: auto; }
.koopo-live-message-recipient-list label { min-height: 52px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 22px; align-items: center; gap: 10px; padding: 8px 10px; color: #dddde0; background: #0b0b0d; border: 1px solid #29292d; border-radius: 9px; cursor: pointer; }
.koopo-live-message-recipient-list label:has(input:checked) { color: #fff; border-color: var(--kl-accent); background: #19160e; }
.koopo-live-message-recipient-list label:has(input:focus-visible) { outline: 2px solid var(--kl-accent); outline-offset: 2px; }
.koopo-live-message-recipient-list input { position: absolute; opacity: 0; pointer-events: none; }
.koopo-live-message-recipient-list img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.koopo-live-message-recipient-list label > span { min-width: 0; overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.koopo-live-message-recipient-list label > i { display: grid; width: 20px; height: 20px; place-items: center; color: #101011; background: var(--kl-accent); border-radius: 50%; opacity: 0; }
.koopo-live-message-recipient-list label:has(input:checked) > i { opacity: 1; }
.koopo-live-message-recipient-list label > i svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.koopo-live-message-empty { padding: 20px; color: var(--kl-muted); text-align: center; background: #0b0b0d; border: 1px dashed #343438; border-radius: 9px; font-size: 12px; line-height: 1.5; }
.koopo-live-message-note { display: block; margin-top: 15px; color: #b9b9bd; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.koopo-live-message-note textarea { width: 100%; margin-top: 7px; padding: 10px 11px; color: #fff; background: #0b0b0d; border: 1px solid #303034; border-radius: 9px; outline: none; resize: vertical; font-size: 12px; line-height: 1.45; text-transform: none; letter-spacing: 0; }
.koopo-live-message-note textarea:focus { border-color: var(--kl-accent); box-shadow: 0 0 0 3px rgba(255,186,18,.1); }
.koopo-live-message-share-box footer { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; }
.koopo-live-message-share-box footer > span { color: var(--kl-muted); font-size: 11px; line-height: 1.35; }
body.koopo-live-modal-open { overflow: hidden; }

.koopo-live-publish-panel { border-bottom: 1px solid var(--kl-line); }
.koopo-live-publish-panel[hidden] { display: none; }
.koopo-live-publish-panel .koopo-live-section-heading { height: auto; min-height: 64px; }
.koopo-live-publish-panel .koopo-live-section-heading p { margin: 0 0 3px; color: #6fd4a5; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.koopo-live-publish-panel .koopo-live-section-heading span { padding: 4px 7px; border: 1px solid #343438; border-radius: 999px; }
.koopo-live-post-choice { padding: 24px 18px 22px; }
.koopo-live-post-choice[hidden], .koopo-live-publish-body[hidden] { display: none; }
.koopo-live-post-choice h4 { margin: 0; color: #fff; font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.koopo-live-post-choice p { margin: 7px 0 18px; color: var(--kl-muted); font-size: 12px; line-height: 1.5; }
.koopo-live-post-choice .koopo-live-button { width: 100%; display: grid; place-items: center; margin-top: 8px; text-decoration: none; }
.koopo-live-post-choice .koopo-live-download { color: #f5f5f5; background: transparent; }
.koopo-live-download-status { min-height: 15px; margin: 9px 0 0 !important; font-size: 10px !important; }
.koopo-live-publish-body { padding: 16px 18px 19px; }
.koopo-live-publish-body > label { display: block; margin-top: 13px; color: #b9b9bd; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.koopo-live-publish-body input[type="text"], .koopo-live-publish-body input[type="datetime-local"], .koopo-live-publish-body select, .koopo-live-publish-body textarea { width: 100%; margin-top: 7px; padding: 10px 11px; color: #f5f5f5; background: #0c0c0e; border: 1px solid #303034; border-radius: 8px; outline: none; font-size: 12px; text-transform: none; letter-spacing: normal; }
.koopo-live-publish-body input[type="text"], .koopo-live-publish-body input[type="datetime-local"], .koopo-live-publish-body select { height: 40px; padding-block: 0; }
.koopo-live-publish-body textarea { resize: vertical; line-height: 1.45; }
.koopo-live-publish-body label > small { display: block; margin-top: 5px; color: #77777d; font-size: 10px; font-weight: 400; line-height: 1.35; text-transform: none; letter-spacing: normal; }
.koopo-live-publish-body input:focus, .koopo-live-publish-body select:focus, .koopo-live-publish-body textarea:focus { border-color: #74747c; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.koopo-live-category-picker { min-width: 0; margin: 13px 0 0; padding: 0; border: 0; }
.koopo-live-category-picker legend { padding: 0; color: #b9b9bd; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.koopo-live-category-options { max-height: 156px; margin-top: 7px; padding: 4px 10px; overflow-y: auto; background: #0c0c0e; border: 1px solid #303034; border-radius: 8px; }
.koopo-live-category-options:focus-within { border-color: #74747c; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.koopo-live-category-options label { display: flex; align-items: center; gap: 9px; min-height: 36px; margin: 2px 0; padding: 0 8px; color: #dedee1; border: 1px solid transparent; border-radius: 7px; font-size: 11px; cursor: pointer; transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease; }
.koopo-live-category-options label:last-child { border-bottom: 0; }
.koopo-live-category-options input { width: 17px; height: 17px; flex: 0 0 auto; display: grid; place-items: center; margin: 0; appearance: none !important; -webkit-appearance: none !important; background: #111114 !important; border: 2px solid #777780 !important; border-radius: 50% !important; box-shadow: none; }
.koopo-live-category-options input::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: 0; transform: scale(.4); transition: opacity 140ms ease, transform 140ms ease; }
.koopo-live-category-options input:checked { background: var(--kl-live) !important; border-color: var(--kl-live) !important; box-shadow: 0 0 0 3px rgba(240,68,68,.22) !important; }
.koopo-live-category-options input:checked::after { opacity: 1; transform: scale(1); }
.koopo-live-category-options label:has(input:checked) { color: #fff; background: rgba(240,68,68,.16); border-color: rgba(240,68,68,.58); }
.koopo-live-category-options label:hover { background-color: rgba(255,255,255,.045); }
.koopo-live-category-options label:has(input:checked):hover { background-color: rgba(240,68,68,.2); }
.koopo-live-category-options input:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.koopo-live-category-picker > small { display: block; margin-top: 5px; color: #77777d; font-size: 10px; line-height: 1.35; }
.koopo-live-publish-back { margin: 0 0 13px; padding: 5px; color: #aaaab0; background: transparent; border: 0; font-size: 10px; }
.koopo-live-origin-row { margin-top: 14px; padding: 11px 12px; background: #0c0c0e; border-left: 2px solid #6fd4a5; }
.koopo-live-origin-row span, .koopo-live-origin-row strong, .koopo-live-origin-row small { display: block; }
.koopo-live-origin-row span { color: #77777d; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.koopo-live-origin-row strong { margin-top: 3px; color: #fff; font-size: 12px; }
.koopo-live-origin-row small { margin-top: 4px; color: var(--kl-muted); font-size: 10px; line-height: 1.35; }
.koopo-live-tier-row { margin-top: 13px; padding: 11px 12px; background: #0c0c0e; border: 1px solid #303034; border-radius: 8px; }
.koopo-live-tier-row[hidden] { display: none; }
.koopo-live-tier-row > span { display: block; margin-bottom: 8px; color: #b9b9bd; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.koopo-live-tier-row label { display: flex; align-items: center; gap: 7px; margin-top: 7px; color: #dedee1; font-size: 11px; text-transform: none; letter-spacing: normal; }
.koopo-live-tier-row input { width: 15px; height: 15px; margin: 0; accent-color: #fff; }
.koopo-live-tier-row small { color: var(--kl-muted); font-size: 10px; line-height: 1.4; }
.koopo-live-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; color: #77777d; background: #09090b; border: 1px dashed #36363b; border-radius: 9px; font-size: 11px; }
.koopo-live-cover img { width: 100%; height: 100%; object-fit: cover; }
.koopo-live-cover-actions { display: flex; gap: 8px; margin-top: 8px; }
.koopo-live-cover-actions button, .koopo-live-cover-actions label { min-height: 32px; flex: 1; display: grid; place-items: center; margin: 0; color: #d3d3d6; background: #18181b; border: 1px solid #303034; border-radius: 7px; font-size: 10px; font-weight: 650; cursor: pointer; }
.koopo-live-cover-actions button:disabled { cursor: not-allowed; opacity: .42; }
.koopo-live-cover-actions input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.koopo-live-publish-submit { width: 100%; margin-top: 2px; color: #101011; background: #f3f3f4; border-color: #f3f3f4; }
.koopo-live-publish-feedback { margin: 10px 0 0; color: var(--kl-muted); font-size: 11px; line-height: 1.4; }
.koopo-live-publish-feedback.is-error { color: #ff9b9b; }
.koopo-live-transfer-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--kl-border); border-radius: 8px; background: rgba(255,255,255,.025); color: var(--kl-muted); font-size: 11px; line-height: 1.4; }
.koopo-live-transfer-status.is-error { border-color: rgba(255,92,92,.45); color: #ff9b9b; }
.koopo-live-transfer-status button { flex: 0 0 auto; border: 0; padding: 0; background: transparent; color: #fff; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.koopo-live-published-link { display: inline-block; margin-top: 9px; color: #fff; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.koopo-live-publish-panel a[data-processing-channel],
.koopo-live-publish-panel a[data-processing-channel]:visited,
.koopo-live-publish-panel a[data-processing-channel]:hover,
.koopo-live-publish-panel a[data-processing-channel]:focus { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.koopo-live-chat { min-height: 280px; flex: 1; display: flex; flex-direction: column; }
.koopo-live-chat[hidden] { display: none; }
.koopo-live-chat-panel { min-height: 602px; }
.koopo-live-chat-panel .koopo-live-section-heading { min-height: 64px; height: auto; }
.koopo-live-chat-panel .koopo-live-section-heading p { margin: 0 0 2px; color: #8f8f96; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.koopo-live-chat-panel .koopo-live-messages { min-height: 430px; max-height: none; }
.koopo-live-chat-speed { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--kl-line); }
.koopo-live-chat-speed label { display: grid; gap: 5px; color: #a8a8ae; font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.koopo-live-chat-speed select { width: 100%; height: 36px; padding: 0 30px 0 10px; color: #f4f4f5; background: #0c0c0e; border: 1px solid #303034; border-radius: 7px; font-size: 12px; font-weight: 650; text-transform: none; }
.koopo-live-chat-speed button { height: 36px; padding: 0 13px; color: #111; background: #f2f2f3; border: 0; border-radius: 7px; font-size: 11px; font-weight: 750; }
.koopo-live-chat-speed > span { min-height: 14px; grid-column: 1 / -1; color: var(--kl-muted); font-size: 10px; }
.koopo-live-section-heading { height: 55px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--kl-line); }
.koopo-live-section-heading h3 { margin: 0; color: #fff; font-size: 13px; font-weight: 650; }
.koopo-live-section-heading span { color: var(--kl-muted); font-size: 10px; }
.koopo-live-chat-heading-status { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.koopo-live-host-reactions { display: flex; align-items: center; gap: 5px; }
.koopo-live-host-reactions[hidden] { display: none !important; }
.koopo-live-host-reactions > span { display: inline-flex; align-items: center; gap: 2px; color: #d9d9dc; font-size: 10px; font-variant-numeric: tabular-nums; }
.koopo-live-host-reactions i { font-size: 13px; font-style: normal; line-height: 1; }
.koopo-live-host-reactions b { min-width: 8px; font-size: 9px; font-weight: 700; text-align: left; }
.koopo-live-host-reactions > span.is-updated { animation: koopo-live-reaction-count 300ms ease-out; }
.koopo-live-messages { flex: 1; min-height: 190px; max-height: 330px; padding: 14px 18px; overflow-y: auto; scrollbar-color: #424247 transparent; }
.koopo-live-chat-empty { margin: 18px 0; color: #707076; font-size: 12px; text-align: center; }
.koopo-live-message { position: relative; z-index: 1; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 9px; min-height: 32px; margin-bottom: 14px; padding-right: 30px; animation: koopo-live-message-in 180ms ease-out both; }
.koopo-live-message:has(.koopo-live-message-actions[open]) { z-index: 10000; }
.koopo-live-message-avatar { width: 30px; height: 30px; display: grid; place-items: center; overflow: hidden; color: #fff !important; background: #33333a; border: 1px solid #4b4b53; border-radius: 50%; font-size: 11px !important; font-weight: 800; line-height: 1 !important; }
.koopo-live-message-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.koopo-live-message-copy { min-width: 0; display: block; padding-top: 1px; }
.koopo-live-message-copy strong { display: inline; margin-right: 6px; color: #fff; font-size: 12px; font-weight: 750; }
.koopo-live-message-copy > span:not(.koopo-live-message-avatar) { color: #c2c2c6; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.koopo-live-chat form { position: relative; display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--kl-line); }
.koopo-live-chat form input { min-width: 0; flex: 1; height: 40px; padding: 0 12px; color: #fff; background: #0a0a0c; border: 1px solid #303034; border-radius: 8px; outline: none; font-size: 12px; }
.koopo-live-chat form button { display: grid; place-items: center; color: #111; background: #f1f1f2; border: 0; border-radius: 8px; }
.koopo-live-chat form .koopo-live-emoji-toggle { flex: 0 0 40px; color: #d7d7da; background: #18181b; border: 1px solid #303034; }
.koopo-live-emoji-toggle svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.koopo-live-chat form .koopo-live-emoji-picker { position: absolute; left: 12px; bottom: 64px; z-index: 12; width: min(320px, calc(100vw - 40px)); padding: 12px; grid-template-columns: repeat(4, 1fr); gap: 6px; background: #161619; border: 1px solid #45454b; border-radius: 12px; box-shadow: 0 18px 42px rgba(0,0,0,.5); }
.koopo-live-chat form .koopo-live-emoji-picker:not([hidden]) { display: grid; }
.koopo-live-chat form .koopo-live-emoji-picker button { width: 100%; height: 54px; color: inherit; background: #1d1d20; border: 1px solid transparent; border-radius: 9px; font-size: 28px !important; line-height: 1; }
.koopo-live-chat form .koopo-live-emoji-picker button .emoji, .koopo-live-chat form .koopo-live-emoji-picker button img.emoji { width: 28px !important; height: 28px !important; margin: 0 !important; font-size: 28px !important; }
.koopo-live-chat form .koopo-live-emoji-picker button:hover, .koopo-live-chat form .koopo-live-emoji-picker button:focus-visible { background: #2a2a2e; outline: none; }
.koopo-live-safety-panel { overflow-y: auto; }
.koopo-live-safety-panel .koopo-live-section-heading { height: auto; margin: -4px 0 14px; padding: 0 0 12px; }
.koopo-live-check-row { display: flex !important; align-items: center; gap: 9px; text-transform: none !important; letter-spacing: normal !important; }
.koopo-live-check-row input { width: 17px; height: 17px; margin: 0; accent-color: var(--kl-live); }
.koopo-live-moderator-form { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--kl-line); }
.koopo-live-moderator-form h4 { margin: 0 0 12px; color: #fff; font-size: 13px; }
.koopo-live-moderator-form > button { width: 100%; }
.koopo-live-moderator-form p, [data-chat-policy-feedback] { min-height: 17px; margin: 8px 0 0; color: var(--kl-muted); font-size: 10px; }
.koopo-live-moderator-results { position: relative; z-index: 30; display: grid; gap: 4px; max-height: 220px; margin: -7px 0 10px; padding: 5px; overflow-y: auto; list-style: none; background: #18181b; border: 1px solid #3b3b42; border-radius: 10px; box-shadow: 0 12px 28px rgba(0, 0, 0, .32); }
.koopo-live-moderator-results[hidden] { display: none; }
.koopo-live-moderator-results button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px; color: #f5f5f7; text-align: left; background: transparent; border: 0; border-radius: 7px; }
.koopo-live-moderator-results button:hover, .koopo-live-moderator-results button:focus-visible { background: #29292f; outline: none; }
.koopo-live-moderator-results img { width: 32px; height: 32px; object-fit: cover; background: #2b2b30; border-radius: 50%; }
.koopo-live-moderator-results button > span { display: grid; min-width: 0; }
.koopo-live-moderator-results strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.koopo-live-moderator-results small { overflow: hidden; color: var(--kl-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.koopo-live-moderator-results .is-empty { padding: 10px; color: var(--kl-muted); font-size: 10px; text-align: center; }
.koopo-live-moderator-list { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.koopo-live-moderator-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; color: #cfcfd3; background: #111113; border: 1px solid #2d2d31; border-radius: 8px; font-size: 10px; }
.koopo-live-moderator-list button { color: #f29a9f; background: transparent; border: 0; font-size: 10px; }
.koopo-live-message-actions { position: absolute; top: -2px; right: 0; z-index: 5; }
.koopo-live-message-actions[open] { z-index: 10001; }
.koopo-live-message-actions summary { width: 28px; height: 28px; display: grid; place-items: center; color: #a9a9b0; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 800; list-style: none; }
.koopo-live-message-actions summary::-webkit-details-marker { display: none; }
.koopo-live-message-actions summary:hover, .koopo-live-message-actions summary:focus-visible, .koopo-live-message-actions[open] summary { color: #fff; background: #29292e; outline: none; }
.koopo-live-message-actions > div { position: absolute; z-index: 10002; top: 31px; right: 0; width: 206px; padding: 6px; overflow: hidden; background: #18181b; border: 1px solid #39393f; border-radius: 10px; box-shadow: none; }
.koopo-live-message-actions button { width: 100%; min-height: 38px; display: block; padding: 10px 12px; color: #ededf0; background: transparent; border: 0; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 650; line-height: 1.2; text-align: left; }
.koopo-live-message-actions button:hover, .koopo-live-message-actions button:focus-visible { color: #fff; background: #29292e; outline: none; }
.koopo-live-message-actions button[data-chat-action="channel_ban"] { margin-top: 4px; color: #ff9b9f; border-top: 1px solid #34343a; border-radius: 0 0 6px 6px; }
.koopo-live-message-actions button[data-chat-action="channel_ban"]:hover, .koopo-live-message-actions button[data-chat-action="channel_ban"]:focus-visible { color: #fff; background: #8f232a; }
.koopo-live-message-actions button[data-chat-action="feature_message"] { color: #fff; background: #25252a; }

.koopo-live-featured-chat { position: absolute; z-index: 20; left: 50%; bottom: clamp(18px,4%,42px); width: fit-content; min-width: min(320px,calc(100% - 36px)); max-width: min(680px,calc(100% - 36px)); display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 13px 14px; color: #fff; background: rgba(13,13,16,.9); border: 1px solid rgba(255,255,255,.28); border-radius: 15px; box-shadow: 0 18px 45px rgba(0,0,0,.3); backdrop-filter: blur(16px); transform: translateX(-50%); pointer-events: none; }
.koopo-live-featured-chat[hidden] { display: none; }
.koopo-live-shell.is-youtube-source .koopo-live-featured-chat { position: relative; left: auto; bottom: auto; transform: none; margin: 12px auto; pointer-events: auto; animation: none; }
.koopo-live-shell[data-koopo-live-studio].is-youtube-source .koopo-live-featured-chat { position: relative; left: auto; right: auto; bottom: auto; display: grid; grid-template-columns: 54px minmax(0,1fr) auto; padding: 13px 14px; width: auto; border-radius: 15px; background: #000; border: 1px solid #fff; }
.koopo-live-shell[data-koopo-live-studio].is-youtube-source .koopo-live-featured-chat[hidden] { display: none; }
.koopo-live-shell[data-koopo-live-studio].is-youtube-source .koopo-live-featured-chat-avatar { display: grid; }
.koopo-live-shell[data-koopo-live-studio].is-youtube-source .koopo-live-featured-chat-copy { display: block; }
.is-youtube-source .kl-overlay-tools, .is-youtube-source .kl-overlay-handle, .is-youtube-source .kl-camera-tools, .is-youtube-source [data-guest-toolbar] { display: none; }
.koopo-live-featured-chat.is-entering { animation: koopo-live-featured-in 260ms cubic-bezier(.2,.8,.2,1) both; }
.koopo-live-featured-chat-avatar { width: 54px; height: 54px; display: grid; place-items: center; overflow: hidden; color: #111; background: #fff; border: 2px solid rgba(255,255,255,.82); border-radius: 50%; font-size: 17px; font-weight: 850; }
.koopo-live-featured-chat-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.koopo-live-featured-chat-avatar [hidden] { display: none; }
.koopo-live-featured-chat-copy { min-width: 0; display: grid; gap: 3px; }
.koopo-live-featured-chat-copy strong { overflow: hidden; color: #fff; font-size: clamp(12px,1.5vw,16px); font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.koopo-live-featured-chat-copy > span { display: block; overflow: visible; color: #ededf0; font-size: clamp(12px,1.45vw,16px); font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; white-space: normal; }
.koopo-live-featured-chat > button { color: #d6d6da; background: rgba(255,255,255,.08); border-radius: 50%; font-size: 21px; line-height: 1; pointer-events: auto; padding: 2px 3px; position: absolute; top: 5px; right: 5px;}
.koopo-live-featured-chat > button:hover, .koopo-live-featured-chat > button:focus-visible { color: #fff; background: rgba(255,255,255,.16); outline: none; }
.koopo-live-watch-stage .koopo-live-featured-chat { bottom: 22px; }
.koopo-live-watch-stage .koopo-live-featured-chat > button { display: none; }
.koopo-live-shell[data-koopo-live-studio] .koopo-live-featured-chat { left: auto; right: 18px; bottom: 18px; width: auto; min-width: 0; max-width: none; display: block; padding: 0; background: transparent; border: 0; border-radius: 50%; box-shadow: none; backdrop-filter: none; transform: none; }
.koopo-live-shell[data-koopo-live-studio] .koopo-live-featured-chat[hidden] { display: none; }
.koopo-live-shell[data-koopo-live-studio] .koopo-live-featured-chat-avatar, .koopo-live-shell[data-koopo-live-studio] .koopo-live-featured-chat-copy { display: none; }
.koopo-live-shell[data-koopo-live-studio] .koopo-live-featured-chat > button { position: static; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.32); background: rgba(13,13,16,.82); }
.koopo-live-chat-eligibility { margin: 0 12px 10px; padding: 9px 11px; color: #fff; background: #15203d; border-radius: 8px; font-size: 11px; font-weight: 750; text-align: center; text-decoration: none; }
.koopo-live-chat-eligibility[hidden] { display: none; }

.koopo-live-viewer-shell { width: auto; min-height: 0; margin: 18px; color: #202741; background: #fff; border-color: #e3e7f1; border-radius: 14px; box-shadow: 0 20px 45px rgba(25,34,66,.16); }
.koopo-live-viewer-nav { display: flex; align-items: center; justify-content: center; gap: 6px; }
.koopo-live-viewer-nav a { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; color: #4f5a76; border-radius: 9px; font-size: 11px; font-weight: 750; letter-spacing: .02em; text-decoration: none; text-transform: uppercase; transition: color 150ms ease, background-color 150ms ease, transform 150ms ease; }
.koopo-live-viewer-nav a:hover, .koopo-live-viewer-nav a:focus-visible { color: #15203d; background: #f2f5fa; outline: none; transform: translateY(-1px); }
.koopo-live-viewer-nav svg, .koopo-live-viewer-share svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.koopo-live-subscriptions { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 18px; overflow: hidden; border-bottom: 1px solid #edf0f6; background: radial-gradient(circle at left top, rgba(255,186,18,.17), transparent 28%), linear-gradient(180deg,#fcfdff,#f5f8ff); }
.koopo-live-up-next header p, .koopo-live-viewer-sidebar .koopo-live-section-heading p { margin: 0 0 2px; color: #7584a8; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.koopo-live-subscriptions-list { min-width: 58px; flex: 1 1 auto; display: flex; align-items: center; padding: 3px 8px 3px 0; overflow-x: auto; scrollbar-width: thin; }
.koopo-live-subscriptions-list a { position: relative; flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; margin-left: -7px; overflow: visible; color: #485a80; background: #d7dff0; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 8px 18px rgba(27,40,77,.14); text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.koopo-live-subscriptions-list a:first-child { margin-left: 0; }
.koopo-live-subscriptions-list a:hover, .koopo-live-subscriptions-list a:focus-visible { z-index: 2; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(27,40,77,.22); outline: none; }
.koopo-live-subscriptions-list a.is-current { z-index: 1; border-color: #ffba12; box-shadow: 0 0 0 2px #15203d; }
.koopo-live-subscriptions-list img, .koopo-live-subscriptions-list a > span { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; border-radius: inherit; font-weight: 800; }
.koopo-live-subscriptions-list i { position: absolute; left: 50%; bottom: -4px; display: none; padding: 1px 4px; color: #fff; background: var(--kl-live); border: 1px solid #fff; border-radius: 4px; font-size: 6px; font-style: normal; font-weight: 900; letter-spacing: .05em; transform: translateX(-50%); }
.koopo-live-subscriptions-list a.is-current i { display: block; }
.koopo-live-subscriptions .koopo-live-viewer-nav { flex: 0 0 auto; justify-content: flex-end; }
.koopo-live-viewer-self-avatar { width: 38px; min-width: 38px; height: 38px; padding: 2px !important; overflow: hidden; background: #fff !important; border: 1px solid #d7dfef; border-radius: 50% !important; }
.koopo-live-viewer-self-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.koopo-live-state-runtime { display: none !important; }
.koopo-live-viewer-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(350px,390px); gap: 16px; max-width: 2350px; margin: auto; padding: 16px; }
.koopo-live-viewer-main { min-width: 0; }
.koopo-live-watch-stage { position: relative; display: block; aspect-ratio: 16 / 9; background-position: center; background-size: cover; border: 1px solid #d6dfef; border-radius: 12px; }
.koopo-live-viewer-main .koopo-live-stage.is-portrait { width: min(100%,520px); max-height: none; }
.koopo-live-player { position: relative; }
.koopo-live-player, .koopo-live-player iframe, .koopo-live-player video { width: 100%; height: 100%; border: 0; }
.koopo-live-player video { object-fit: contain; }
.koopo-live-enable-sound { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background-color:transparent !important;gap: 10px; color: #fff !important; background: rgba(5,5,6,.46); border: 0; cursor: pointer; font-size: 15px; backdrop-filter: blur(2px); }
.koopo-live-enable-sound[hidden] { display: none; }
.koopo-live-enable-sound span { display: grid; place-items: center; width: 44px; height: 44px; background: rgba(0,0,0,.72); border: 1px solid rgba(255,255,255,.24); border-radius: 50%; font-size: 21px; }
.koopo-live-enable-sound strong { padding: 11px 15px; background: rgba(0,0,0,.72); border: 1px solid rgba(255,255,255,.24); border-radius: 999px; font-size: 13px; }
.koopo-live-player-wait { height: 100%; display: grid; align-content: center; justify-items: center; color: #fff; background: rgba(5,5,6,.38); font-size: 13px; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.koopo-live-player-wait span { width: 28px; height: 28px; border: 2px solid #343438; border-top-color: #eee; border-radius: 50%; animation: koopo-live-spin .8s linear infinite; }
.koopo-live-viewer-copy { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 4px 12px; border-bottom: 1px solid #edf0f6; }
.koopo-live-viewer-copy h1 { margin: 2px 0 0; color: #15203d; font-size: clamp(20px,2.5vw,30px); letter-spacing: -.035em; }
.koopo-live-eyebrow { display: flex; align-items: center; gap: 6px; margin: 0; color: #b4232a; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.koopo-live-eyebrow > span { width: 7px; height: 7px; background: var(--kl-live); border-radius: 50%; animation: koopo-live-pulse 1.8s ease-out infinite; }
.koopo-live-viewer-share { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; color: #1f355f; background: #f7f9fc; border: 1px solid #d7dfef; border-radius: 999px; font-size: 11px; font-weight: 750; }
.koopo-live-viewer-share:hover, .koopo-live-viewer-share:focus-visible { background: #eef2f8; border-color: #b8c4da; outline: none; }
.koopo-live-creator-bar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 4px; }
.koopo-live-creator-link { min-width: 0; display: inline-flex; align-items: center; gap: 11px; color: #15203d; text-decoration: none; }
.koopo-live-creator-link:hover strong, .koopo-live-creator-link:focus-visible strong { text-decoration: underline; text-underline-offset: 3px; }
.koopo-live-creator-link.is-disabled { pointer-events: none; }
.koopo-live-creator-link > span:last-child { min-width: 0; display: grid; gap: 2px; }
.koopo-live-creator-link strong { max-width: 280px; overflow: hidden; color: #15203d; font-size: 14px; text-overflow: ellipsis; text-transform: capitalize; white-space: nowrap; }
.koopo-live-creator-link small { display: inline-flex; align-items: baseline; gap: 3px; color: #6a7897; font-size: 10px; }
.koopo-live-creator-link small b { color: #415171; font-size: inherit; font-variant-numeric: tabular-nums; }
.koopo-live-creator-avatar { position: relative; flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; padding: 2px; color: #fff; background: #202741; border: 2px solid var(--kl-live); border-radius: 50%; font-size: 13px; font-weight: 750; }
.koopo-live-creator-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.koopo-live-creator-avatar i { position: absolute; right: -1px; bottom: 0; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: var(--kl-live); animation: koopo-live-pulse 1.8s infinite; }
.koopo-live-reactions { display: flex; align-items: center; gap: 7px; }
.koopo-live-reactions button { min-width: 54px; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 10px; color: #4f5a76; background: #f7f9fc; border: 1px solid #d7dfef; border-radius: 999px; cursor: pointer; }
.koopo-live-reactions button:hover, .koopo-live-reactions button:focus-visible { color: #15203d; background: #eef2f8; border-color: #b8c4da; outline: none; }
.koopo-live-reactions button:disabled { cursor: default; opacity: .52; }
.koopo-live-reactions button > span { font-size: 17px; line-height: 1; }
.koopo-live-reactions button b { font-size: 11px; font-variant-numeric: tabular-nums; }
.koopo-live-reactions button.is-reacting { animation: koopo-live-reaction-pop 360ms ease-out; }
.koopo-live-reaction-bursts { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; }
.koopo-live-reaction-bursts > span { position: absolute; left: var(--reaction-x); bottom: 28px; font-size: 30px; filter: drop-shadow(0 5px 9px rgba(0,0,0,.55)); animation: koopo-live-reaction-float 1.45s ease-out forwards; }
.koopo-live-viewer-sidebar { min-width: 0; align-self: start; overflow: hidden; background: #fff; border: 1px solid #e3e7f1; border-radius: 12px; }
.koopo-live-viewer-sidebar .koopo-live-chat { height: min(52vw,510px); min-height: 380px; color: #202741; background: #fff; border-bottom: 1px solid #e3e7f1; }
.koopo-live-viewer-sidebar .koopo-live-section-heading { min-height: 58px; height: auto; border-color: #edf0f6; }
.koopo-live-viewer-sidebar .koopo-live-section-heading h3 { color: #15203d; font-size: 15px; }
.koopo-live-viewer-sidebar .koopo-live-section-heading > span { color: #b4232a; font-weight: 750; }
.koopo-live-viewer-sidebar .koopo-live-messages { max-height: none; }
.koopo-live-viewer-sidebar .koopo-live-message strong { color: #15203d; }
.koopo-live-viewer-sidebar .koopo-live-message span { color: #4f5a76; }
.koopo-live-viewer-sidebar .koopo-live-message-actions > div { background: #fff; border-color: #d7dfef; box-shadow: none; }
.koopo-live-viewer-sidebar .koopo-live-message-actions button { color: #27344f; }
.koopo-live-viewer-sidebar .koopo-live-message-actions button:hover, .koopo-live-viewer-sidebar .koopo-live-message-actions button:focus-visible { color: #15203d; background: #edf2f8; }
.koopo-live-viewer-sidebar .koopo-live-message-actions button[data-chat-action="feature_message"] { color: #fff; background: #15203d; }
.koopo-live-viewer-sidebar .koopo-live-message-actions button[data-chat-action="feature_message"]:hover, .koopo-live-viewer-sidebar .koopo-live-message-actions button[data-chat-action="feature_message"]:focus-visible { color: #fff; background: #24365c; }
.koopo-live-viewer-sidebar .koopo-live-chat form { border-color: #edf0f6; }
.koopo-live-viewer-sidebar .koopo-live-chat form input { color: #202741; background: #f7f9fc; border-color: #d7dfef; }
.koopo-live-viewer-sidebar .koopo-live-chat form button { color: #fff; background: #15203d; }
.koopo-live-viewer-sidebar .koopo-live-chat form .koopo-live-emoji-toggle { color: #4f5a76; background: #f7f9fc; border-color: #d7dfef; }
.koopo-live-viewer-sidebar .koopo-live-chat form .koopo-live-emoji-picker { background: #fff; border-color: #d7dfef; box-shadow: 0 18px 42px rgba(25,34,66,.2); }
.koopo-live-viewer-sidebar .koopo-live-chat form .koopo-live-emoji-picker button { color: #202741; background: #f7f9fc; }
.koopo-live-viewer-sidebar .koopo-live-chat form .koopo-live-emoji-picker button:hover, .koopo-live-viewer-sidebar .koopo-live-chat form .koopo-live-emoji-picker button:focus-visible { background: #edf2f8; }
.koopo-live-up-next { padding: 16px; }
.koopo-live-up-next > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.koopo-live-up-next h2 { margin: 0; color: #15203d; font-size: 16px; }
.koopo-live-up-next header a { color: #53678e; font-size: 10px; font-weight: 750; text-decoration: none; text-transform: uppercase; }
.koopo-live-up-next ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.koopo-live-up-next li { margin: 0; }
.koopo-live-up-next li > a { display: grid; grid-template-columns: 142px minmax(0,1fr); gap: 10px; color: inherit; text-decoration: none; }
.koopo-live-recommendation-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #101423; border-radius: 8px; }
.koopo-live-recommendation-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 220ms ease; }
.koopo-live-up-next a:hover .koopo-live-recommendation-thumb img { transform: scale(1.035); }
.koopo-live-recommendation-thumb em { position: absolute; right: 5px; bottom: 5px; padding: 2px 4px; color: #fff; background: rgba(8,10,18,.82); border-radius: 3px; font-size: 9px; font-style: normal; font-weight: 750; }
.koopo-live-recommendation-copy { min-width: 0; display: flex; flex-direction: column; padding-top: 1px; }
.koopo-live-recommendation-copy strong { display: -webkit-box; overflow: hidden; color: #202741; font-size: 12px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.koopo-live-recommendation-copy small { margin-top: 4px; color: #6a7897; font-size: 10px; line-height: 1.25; }
.koopo-live-recommendation-copy small + small { margin-top: 2px; }
.koopo-live-up-next-empty { margin: 0; color: #6a7897; font-size: 12px; line-height: 1.5; }
.koopo-live-notice { margin: 30px auto; padding: 24px; max-width: 620px; border: 1px solid #ddd; border-radius: 12px; }

@keyframes koopo-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(240,68,68,.55); } 70% { box-shadow: 0 0 0 7px rgba(240,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(240,68,68,0); } }
@keyframes koopo-live-spin { to { transform: rotate(360deg); } }
@keyframes koopo-live-message-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes koopo-live-featured-in { from { opacity: 0; transform: translate(-50%,12px) scale(.97); } to { opacity: 1; transform: translate(-50%,0) scale(1); } }
@keyframes koopo-live-reaction-pop { 40% { transform: scale(1.14); border-color: rgba(240,68,68,.72); } }
@keyframes koopo-live-reaction-float { 0% { opacity: 0; transform: translate3d(0,12px,0) scale(.7); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate3d(var(--reaction-drift),-180px,0) scale(1.18) rotate(8deg); } }
@keyframes koopo-live-reaction-count { 45% { transform: scale(1.16); color: #fff; } }

@media (max-width: 960px) {
  .koopo-live-shell:not(.koopo-live-viewer-shell) { width: min(100% - 20px, 760px); }
  .koopo-live-layout { grid-template-columns: 1fr; }
  .koopo-live-rail { border-top: 1px solid var(--kl-line); border-left: 0; }
  .koopo-live-messages { max-height: 280px; }
  .koopo-live-chat-panel .koopo-live-messages { max-height: none; }
  .koopo-live-viewer-layout { grid-template-columns: 1fr; }
  .koopo-live-viewer-sidebar { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px, .8fr); }
  .koopo-live-viewer-sidebar .koopo-live-chat { height: 460px; border-right: 1px solid #e3e7f1; border-bottom: 0; }
}

@media (max-width: 720px) {
  .koopo-live-viewer-sidebar { display: block; }
  .koopo-live-viewer-sidebar .koopo-live-chat { border-right: 0; border-bottom: 1px solid #e3e7f1; }
}

@media (max-width: 560px) {
  .koopo-live-shell { width: 100%; margin: 0; border-width: 1px 0; border-radius: 0; }
  .koopo-live-viewer-shell { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
  .koopo-live-workspace { padding: 12px; }
  .koopo-live-stage { border-radius: 10px; }
  .koopo-live-empty { padding: 20px; }
  .koopo-live-empty p { margin-bottom: 15px; }
  .koopo-live-controls { gap: 7px; }
  .koopo-live-scene-picker > div { grid-template-columns: repeat(5, 74px); overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .koopo-live-go-live { min-width: 96px; }
  .koopo-live-subscriptions { min-height: 68px; gap: 8px; padding-inline: 12px; }
  .koopo-live-subscriptions .koopo-live-viewer-nav { gap: 0; }
  .koopo-live-subscriptions .koopo-live-viewer-nav a { padding: 0 7px; font-size: 9px; }
  .koopo-live-subscriptions .koopo-live-viewer-nav a:first-child span { display: none; }
  .koopo-live-viewer-self-avatar { width: 34px !important; min-width: 34px !important; height: 34px; padding: 2px !important; }
  .koopo-live-viewer-layout { gap: 12px; padding: 10px 0 0; }
  .koopo-live-watch-stage { border-radius: 0; border-width: 1px 0; }
  .koopo-live-featured-chat { grid-template-columns: 40px minmax(0,1fr) auto; gap: 9px; min-width: min(280px,calc(100% - 20px)); max-width: calc(100% - 20px); bottom: 10px; padding: 9px 10px; border-radius: 11px; }
  .koopo-live-featured-chat-avatar { width: 40px; height: 40px; font-size: 14px; }
  .koopo-live-viewer-copy { gap: 12px; padding-inline: 12px; }
  .koopo-live-creator-bar { align-items: flex-start; flex-direction: column; }
  .koopo-live-creator-bar { padding-inline: 12px; }
  .koopo-live-reactions { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .koopo-live-reactions button { min-width: 0; padding: 0 6px; }
  .koopo-live-viewer-sidebar { display: block; border-width: 1px 0; border-radius: 0; }
  .koopo-live-viewer-sidebar .koopo-live-chat { height: 430px; min-height: 360px; border-right: 0; border-bottom: 1px solid #e3e7f1; }
  .koopo-live-up-next li > a { grid-template-columns: minmax(118px,42%) minmax(0,1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .koopo-live-shell *, .koopo-live-shell *::before, .koopo-live-shell *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
.koopo-live-youtube-connection {
  padding: 12px;
  border: 1px solid var(--kl-border, #d9dde5);
  border-radius: 10px;
}
.koopo-live-youtube-connection p { margin: 0 0 10px; }
.koopo-live-youtube-connection .koopo-live-button,
.koopo-live-youtube-connection button { width: auto; margin-right: 8px; }
.koopo-live-youtube-source [hidden] { display: none !important; }

/* Keep viewer actions compact; paid support belongs to the chat composer. */
.koopo-live-viewer-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; flex-shrink: 0; }
.koopo-live-support-cta { max-width: none; }
.koopo-live-support-cta > .koopo-creator-support__actions { display: flex; align-items: center; }
.koopo-live-support-cta > .koopo-creator-support__actions > .koopo-creator-support__status:empty { display: none; }
.koopo-live-support-cta [data-kcs-open] { min-height: 38px; padding: 0 13px; color: #15203d; background: #ffba12; border-color: #ffba12; font-size: 12px; font-weight: 750; }
.koopo-live-support-cta [data-kcs-open]:hover { background: #ffd166; }
.koopo-live-support-cta [data-kcs-open]:focus-visible { outline: 2px solid #15203d; outline-offset: 3px; }
@media (max-width: 600px) {
  .koopo-live-viewer-copy { flex-wrap: wrap; }
  .koopo-live-viewer-actions { justify-content: flex-start; }
}

.koopo-live-chat-support { padding: 12px 16px; border-top: 1px solid #edf0f6; }
.koopo-live-chat-support:empty { display: none; }
.koopo-live-message--support { background: #ffd829; border: 1px solid #ffba12; border-radius: 12px; padding: 12px; margin: 8px 0; }
.koopo-live-message--support .koopo-live-message-copy > span { color: #090909; font-weight: 700; }

/* Stream shopping keeps playback visible and uses the existing store checkout. */
.koopo-live-shop { margin-top:24px; padding:20px 0; border-top:1px solid #e5e7eb; min-width:0; }
.koopo-live-shop[hidden] { display:none; }
.koopo-live-shop h3 { margin:0 0 8px; font-size:20px; }
.koopo-live-shop > p { font-size:13px; color:#64748b; }
.koopo-live-product-list { display:grid; gap:12px; }
.koopo-live-product { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid #e5e7eb; min-width:0; }
.koopo-live-product img { width:64px; height:64px; object-fit:cover; border-radius:8px; flex-shrink:0; }
.koopo-live-product-info { display:flex; flex:1; min-width:0; flex-direction:column; gap:4px; overflow-wrap:anywhere; }
.koopo-live-product-info strong { font-size:14px; }
.koopo-live-product-info span,.koopo-live-product-info small { font-size:12px; }
.koopo-live-product > a,.koopo-live-product > button { font-size:12px; font-weight:600; padding:8px 10px; border:1px solid #d1d5db; border-radius:8px; background:#fff; color:#172033; text-decoration:none; flex-shrink:0; }
.koopo-live-shop summary { cursor:pointer; font-weight:600; padding:12px 0; }
.koopo-live-shop form { display:flex; flex-wrap:wrap; align-items:end; gap:8px; }
.koopo-live-shop form label { flex:1; min-width:120px; }
.koopo-live-product-pagination { display:flex; justify-content:space-between; margin-top:12px; }
@media(max-width:480px) { .koopo-live-product { flex-wrap:wrap; } .koopo-live-product-info { flex-basis:calc(100% - 80px); } .koopo-live-product > a,.koopo-live-product > button { margin-left:76px; } }

/* Products are a peer workspace; tabs remain one scrollable line. */
.koopo-live-rail-tabs { overflow-x:auto; overflow-y:hidden; white-space:nowrap; scrollbar-width:thin; overscroll-behavior-x:contain; }
.koopo-live-shell .koopo-live-rail-tabs button { flex:0 0 auto; min-width:88px; padding:16px 18px; }
.koopo-live-rail-tabs button:focus-visible { outline:2px solid #e4b620 !important; outline-offset:-4px; }
[data-products-panel] .koopo-live-shop { margin-top:0; border-top:0; padding-top:0; }
.is-viewer-shop .koopo-live-product-list { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.is-viewer-shop .koopo-live-product { display:flex; flex-direction:column; align-items:stretch; gap:10px; padding:0 0 16px; min-width:0; }
.is-viewer-shop .koopo-live-product img { width:100%; height:auto; aspect-ratio:1; object-fit:cover; border-radius:10px; }
.is-viewer-shop .koopo-live-product-info { flex:1; gap:6px; }
.is-viewer-shop .koopo-live-product > button { margin:0; width:100%; min-height:42px; cursor:pointer; transition:background .15s ease,transform .15s ease; }
.is-viewer-shop .koopo-live-product > button:hover { background:#f5f5f5; transform:translateY(-1px); }
.koopo-live-purchase { width:min(880px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); padding:0; border:0; border-radius:16px; background:#fff; color:#182032; box-shadow:0 24px 80px #0005; }
.koopo-live-purchase::backdrop { background:#101320a8; }
.koopo-live-purchase[open] { animation:kl-shop-enter .18s ease-out; }
.koopo-live-purchase > header { position:sticky; top:0; z-index:5; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 24px; border-bottom:1px solid #e7e7eb; background:#fff; }
.koopo-live-purchase h2 { margin:0; font-size:20px; flex:1; }
.koopo-live-purchase h3 { font-size:24px; margin:0 0 16px; }
.koopo-live-purchase button { cursor:pointer; border-radius:8px; min-height:42px; padding:9px 14px; }
.koopo-live-purchase button:focus-visible,.koopo-live-purchase a:focus-visible { outline:2px solid #906a00; outline-offset:3px; }
.koopo-live-purchase-steps,.koopo-live-purchase-status { margin:16px 24px; font-size:13px; }
.koopo-live-purchase-status:empty { display:none; }
.koopo-live-purchase-steps { color:#626977; font-weight:600; }
.koopo-live-purchase-content { padding:8px 24px 28px; }
.koopo-live-quick-view { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.koopo-live-quick-view > img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:12px; }
.koopo-live-quick-view .price { font-size:22px; margin-bottom:16px; }
.koopo-live-quick-view form.cart { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.koopo-live-quick-view form.cart .single_variation_wrap,.koopo-live-quick-view .variations { width:100%; }
.koopo-live-quick-view .quantity input { width:76px; }
.koopo-live-quick-view .koopo-live-checkout-now { background:#191c26; color:white; }
.koopo-live-cart-item { display:flex; flex-wrap:wrap; gap:12px; align-items:center; border-bottom:1px solid #e8e8eb; padding:16px 0; }
.koopo-live-cart-item strong { flex:1; }
.koopo-live-native-checkout .col2-set,.koopo-live-native-checkout #order_review,.koopo-live-native-checkout #customer_details { float:none!important; width:100%!important; }
.koopo-live-native-checkout .col-1,.koopo-live-native-checkout .col-2 { float:none!important; width:100%!important; }
.koopo-live-native-checkout .form-row input.input-text,.koopo-live-native-checkout .form-row select,.koopo-live-native-checkout textarea { width:100%; box-sizing:border-box; min-height:42px; }
.koopo-live-native-checkout .form-row { display:block; margin:0 0 16px; }
.koopo-live-native-checkout .form-row-first,.koopo-live-native-checkout .form-row-last { width:48%; float:left; }
.koopo-live-native-checkout .form-row-last { float:right; }
.koopo-live-native-checkout .form-row-wide { clear:both; }
.koopo-live-native-checkout .woocommerce-checkout-review-order-table { width:100%; }
.koopo-live-card-element { padding:16px; border:1px solid #b9bec8; border-radius:8px; background:#fff; min-height:54px; }
.koopo-live-purchase-open { overflow:hidden; }
@keyframes kl-shop-enter { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:700px) { .is-viewer-shop .koopo-live-product-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .koopo-live-quick-view { grid-template-columns:1fr; } .koopo-live-quick-view > img { max-height:230px; object-fit:contain; } }
@media(max-width:480px) { .koopo-live-purchase { width:calc(100vw - 16px); max-height:calc(100dvh - 16px); } .koopo-live-purchase-content { padding:8px 16px 20px; } .koopo-live-purchase > header { padding:14px 16px; } .koopo-live-purchase h2 { font-size:17px; } .is-viewer-shop .koopo-live-product-info { flex-basis:auto; } }
@media(prefers-reduced-motion:reduce) { .koopo-live-purchase[open] { animation:none; } .is-viewer-shop .koopo-live-product > button { transition:none; } }

.koopo-live-payment-shade { position:fixed; inset:0; z-index:99998; background:#101320a8; }
.koopo-live-purchase.is-confirming-payment { position:fixed; inset:16px; margin:auto; z-index:99999; }
[data-products-panel] .koopo-live-shop h3,[data-products-panel] .koopo-live-product-info strong { color:#f4f4f5; }
[data-products-panel] .koopo-live-product-info span,[data-products-panel] .koopo-live-product-info small { color:#b7bbc5; }

.koopo-live-purchase-stepbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-right:24px; }

.koopo-live-tab-nav { display:flex; align-items:stretch; min-width:0; border-bottom:1px solid var(--kl-line); }
.koopo-live-tab-nav .koopo-live-rail-tabs { flex:1; min-width:0; border-bottom:0; scrollbar-width:none; }
.koopo-live-tab-nav .koopo-live-rail-tabs::-webkit-scrollbar { display:none; }
.koopo-live-shell .koopo-live-tab-arrow { display:flex; align-items:center; justify-content:center; flex:0 0 34px; width:34px; padding:0; border:0; border-radius:0; color:#f4f4f5; background:#202024; cursor:pointer; }
.koopo-live-shell .koopo-live-tab-arrow[hidden] { display:none; }
.koopo-live-shell .koopo-live-tab-arrow:disabled { opacity:.25; cursor:default; }
.koopo-live-shell .koopo-live-tab-arrow:not(:disabled):hover { background:#34343b; }
.koopo-live-shell .koopo-live-tab-arrow:focus-visible { outline:2px solid #e4b620; outline-offset:-3px; }

.koopo-live-product-loading { min-height:260px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px; color:#626977; font-size:14px; }
.koopo-live-product-spinner { display:block; width:38px; height:38px; box-sizing:border-box; border:3px solid #e5e7eb; border-top-color:#232936; border-radius:50%; animation:koopo-live-product-spin .75s linear infinite; }
.koopo-live-purchase-status.koopo-live-loading-status { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.koopo-live-quick-view .woocommerce-variation-add-to-cart.variations_button { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.koopo-live-quick-view .woocommerce-variation-add-to-cart.variations_button .quantity,.koopo-live-quick-view .woocommerce-variation-add-to-cart.variations_button button { margin:0; }
@keyframes koopo-live-product-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .koopo-live-product-spinner { animation:none; } }
.koopo-live-quick-view .single_add_to_cart_button:not(:disabled):not(.disabled):hover { background:#000 !important; color:#fff !important; border-color:#000 !important; }

.koopo-live-purchase .koopo-live-cart-checkout { display:flex; align-items:center; justify-content:center; width:100%; min-height:48px; margin-top:20px; padding:14px 24px; border:1px solid #191c26 !important; border-radius:10px; background:#191c26 !important; color:#fff !important; font-size:15px; font-weight:700; line-height:1.3; transition:background .15s ease,border-color .15s ease; }
.koopo-live-purchase .koopo-live-cart-checkout:not(:disabled):hover { background:#000 !important; border-color:#000 !important; }
.koopo-live-purchase .koopo-live-cart-checkout:focus-visible { outline:2px solid #906a00; outline-offset:3px; }
.koopo-live-purchase .koopo-live-cart-checkout:disabled { opacity:.45; cursor:not-allowed; }
@media(prefers-reduced-motion:reduce) { .koopo-live-purchase .koopo-live-cart-checkout { transition:none; } }

/* Shared feedback for every asynchronous modal action. */
.koopo-live-action-progress { position:sticky; top:var(--koopo-live-modal-header-height,77px); z-index:6; display:flex; align-items:center; gap:10px; margin:8px 24px 16px; padding:12px 14px; border:1px solid #dfe3e9; border-radius:10px; background:#f3f5f8; color:#242936; font-size:14px; font-weight:600; box-shadow:0 2px 8px #00000008; }
.koopo-live-action-progress[hidden] { display:none; }
.koopo-live-action-spinner { display:inline-block; vertical-align:middle; flex:0 0 17px; width:17px; height:17px; box-sizing:border-box; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:koopo-live-product-spin .75s linear infinite; }
.koopo-live-purchase .is-loading { display:inline-flex; align-items:center; justify-content:center; gap:8px; background:#191c26!important; color:#fff!important; border-color:#191c26!important; opacity:1!important; cursor:wait!important; filter:brightness(.85); }
.koopo-live-purchase button:disabled:not(.is-loading) { opacity:.5; cursor:not-allowed; }
.koopo-live-purchase button:not(:disabled):active { transform:translateY(1px); filter:brightness(.85); }
.koopo-live-purchase button { transition:background-color .15s ease, transform .1s ease, filter .15s ease; }
@media(max-width:480px) { .koopo-live-action-progress { margin-inline:16px; } .koopo-live-purchase > header { flex-wrap:wrap; } }
@media(prefers-reduced-motion:reduce) { .koopo-live-action-spinner { animation:none; } .koopo-live-purchase button { transition:none; } .koopo-live-purchase button:not(:disabled):active { transform:none; } }

/* Non-media issues stay beside their control, without alarm styling. */
.koopo-live-chat-feedback { margin: 8px 0 0; color: var(--kl-muted, #b4b4bb); font-size: 12px; line-height: 1.5; font-weight: 400; }
.koopo-live-chat-feedback[hidden] { display: none; }

/* Publishing controls must honor state visibility despite theme button/link styles. */
.koopo-live-publish-panel [hidden] { display: none !important; }
/* Elapsed broadcast time remains separate from transient connection status. */
.koopo-live-elapsed{margin-left:auto;margin-right:16px;font:600 16px ui-monospace,SFMono-Regular,monospace;font-variant-numeric:tabular-nums;color:#fff}.koopo-live-elapsed[hidden]{display:none}
/* Never cover the native timeline, play or volume controls while seeking. */
.koopo-live-enable-sound{inset:14px auto auto 14px;width:auto;height:auto;max-width:calc(100% - 28px);padding:0;backdrop-filter:none;border-radius:24px}
.koopo-live-return-live{position:absolute;right:14px;top:14px;z-index:5;background:#111d!important;color:#fff!important;border:1px solid #ffffff50!important;border-radius:20px!important;padding:9px 14px!important;font-size:13px!important}.koopo-live-return-live[hidden]{display:none!important}

[data-toggle-mic]{position:relative}[data-toggle-mic].is-off::after{content:"";position:absolute;left:50%;top:50%;width:26px;height:2px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg);pointer-events:none}

/* Studio navigation and signed-out introduction share the workspace visual language. */
.koopo-live-topbar{height:auto;min-height:64px;gap:16px;flex-wrap:wrap;padding-block:12px}
.koopo-live-header-nav{display:flex;gap:4px;flex-wrap:wrap;margin-left:auto}
.koopo-live-header-nav a{color:#bbbcc3;font-size:12px;font-weight:600;padding:9px 10px;border-radius:6px;text-decoration:none;white-space:nowrap}
.koopo-live-header-nav a:hover,.koopo-live-header-nav a:focus-visible{color:#fff;background:#252529}
.koopo-live-welcome{min-height:0}
.koopo-live-welcome-body{padding:clamp(24px,5vw,64px);max-width:1000px}
.koopo-live-welcome-eyebrow{color:#ffba12;font-size:12px;letter-spacing:.12em;font-weight:700;margin:0 0 18px}
.koopo-live-welcome-body h1{color:#fff;font-size:clamp(32px,4.5vw,54px);line-height:1.1;letter-spacing:-.035em;margin:0 0 20px}
.koopo-live-welcome-intro{color:#bbbcc3;font-size:18px;line-height:1.6;max-width:540px;margin:0 0 28px}
.koopo-live-welcome .koopo-live-button{display:inline-flex;align-items:center;gap:24px;text-decoration:none;color:#080809;background:#ffba12;border:0;padding:15px 22px;height:auto}
.koopo-live-welcome-note{color:#a4a4ad;font-size:13px;line-height:1.6;max-width:520px;margin:18px 0 0}
.koopo-live-welcome-steps{list-style:none;margin:40px 0 0;padding:28px 0;border-top:1px solid #29292d;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.koopo-live-welcome-steps li>span{font-size:12px;color:#a4a4ad;font-variant-numeric:tabular-nums}
.koopo-live-welcome-steps h2{color:#f4f4f5;font-size:16px;margin:12px 0 8px;line-height:1.4}
.koopo-live-welcome-steps p{color:#a4a4ad;font-size:13px;line-height:1.65;margin:0}
@media(max-width:600px){.koopo-live-header-nav{order:3;flex-basis:100%;margin:0}.koopo-live-header-nav a{padding:8px}.koopo-live-welcome-steps{grid-template-columns:1fr;gap:22px}.koopo-live-welcome-steps li{display:flex;gap:16px}.koopo-live-welcome-steps h2{margin-top:0}}

/* Keep interruption feedback visible above the player without destroying buffered media. */
.koopo-live-recovery-notice { position: absolute; z-index: 6; top: 16px; left: 16px; right: 16px; padding: 12px 16px; border-radius: 10px; background: rgba(15, 18, 24, .94); color: #fff; font-size: 14px; line-height: 1.5; text-align: center; pointer-events: none; }
.koopo-live-recovery-notice[hidden] { display: none; }

.koopo-live-join-chat { display: inline-block; margin: 6px 0; padding: 8px 12px; border: 1px solid #151515; border-radius: 8px; background: #151515; color: #fff !important; font-size: 13px; font-weight: 700; line-height: 1.4; text-decoration: none !important; }
.koopo-live-join-chat:hover { background: #333; }
.koopo-live-join-chat:focus-visible { outline: 3px solid #e3ae20; outline-offset: 3px; }
