@charset "UTF-8";
:root {
  /* Theme: whiteprint-blue */
  --theme-name: whiteprint-blue;
  /* Whiteprint (white/gray frame + neutral shadows) */
  --frame-bg: var(--theme-color-ffffff);
  --frame-bg-soft: color-mix(in srgb, var(--frame-bg) 98%, black);
  --frame-bg-light: color-mix(in srgb, var(--frame-bg) 94%, black);
  --frame-bg-muted: color-mix(in srgb, var(--frame-bg) 93%, black);
  --frame-bg-subtle: color-mix(in srgb, var(--frame-bg) 89%, black);
  --frame-bg-raised: color-mix(in srgb, var(--frame-bg) 85%, white);
  --frame-border: color-mix(in srgb, var(--frame-bg) 83%, black);
  --frame-shadow-base: color-mix(in srgb, var(--frame-bg) 20%, black);
  --frame-shadow-strong: color-mix(in srgb, var(--frame-shadow-base) 50%, transparent);
  --frame-shadow-soft: color-mix(in srgb, var(--frame-shadow-base) 20%, transparent);
  --frame-shadow-hover: color-mix(in srgb, var(--frame-shadow-base) 35%, transparent);
  --frame-shadow-fine: color-mix(in srgb, var(--frame-shadow-base) 71%, transparent);
  --frame-text-soft: color-mix(in srgb, var(--frame-bg) 15%, white);
  --frame-text-shadow: color-mix(in srgb, black 85%, var(--frame-bg));
  --font-color: #2e2e2e;
  --message-font-color: #2e2e2e;
  --message-font-color-soft: color-mix(in srgb, var(--message-font-color) 70%, white);
  --menu-button-bg: var(--theme-color-fafafa);
  --menu-button-border: color-mix(in srgb, var(--menu-button-bg) 80%, black);
  --menu-button-border-bottom: color-mix(in srgb, var(--menu-button-border) 80%, black);
  --menu-button-shadow: color-mix(in srgb, var(--menu-button-border-bottom) 80%, black);
  --menu-button-shadow-soft: color-mix(in srgb, var(--menu-button-bg) 72%, black);
  --theme-color-000000: #000000;
  --theme-color-111111: #111111;
  --theme-color-1c1c1c: #1c1c1c;
  --theme-color-1e1e1e: #1e1e1e;
  --theme-color-1e1e1e3f: #1e1e1e3f;
  --theme-color-222222: #222222;
  --theme-color-2a2a2a: #2a2a2a;
  --theme-color-333333: #333333;
  --theme-color-444444: #444444;
  --theme-color-888888: #888888;
  --theme-color-999999: #999999;
  --theme-color-9e9e9e: #9e9e9e;
  --theme-color-a0a0a0: #a0a0a0;
  --theme-color-aaaaaa: #aaaaaa;
  --theme-color-afafaf: #afafaf;
  --theme-color-b4b4b4: #b4b4b4;
  --theme-color-b8b8b8: #b8b8b8;
  --theme-color-bcbcbc: #bcbcbc;
  --theme-color-bdbdbd: #bdbdbd;
  --theme-color-c0c0c0: #c0c0c0;
  --theme-color-c2c2c2: #c2c2c2;
  --theme-color-cccccc: #cccccc;
  --theme-color-d0d0d0: #d0d0d0;
  --theme-color-d0d0d8: #d0d0d8;
  --theme-color-d4d4d4: #d4d4d4;
  --theme-color-d6d4ceae: #d6d4ceae;
  --theme-color-dcdcdc: #dcdcdc;
  --theme-color-dddddd: #dddddd;
  --theme-color-e0e0e0: #e0e0e0;
  --theme-color-e0e0e6: #e0e0e6;
  --theme-color-e2e2e2: #e2e2e2;
  --theme-color-e5e7eb: #e5e7eb;
  --theme-color-e6e6e6: #e6e6e6;
  --theme-color-ededed: #ededed;
  --theme-color-eeeeee: #eeeeee;
  --theme-color-f0f0f0: #f0f0f0;
  --theme-color-f0f1f6: #f0f1f6;
  --theme-color-f5f5f5: #f5f5f5;
  --theme-color-f5f5f8: #f5f5f8;
  --theme-color-fafafa: #fafafa;
  --theme-color-fefefe: #fefefe;
  --theme-color-ffffff: #ffffff;
  --theme-rgba-0-0-0-0: rgba(0, 0, 0, 0);
  --theme-rgba-0-0-0-0_04: rgba(0, 0, 0, 0.04);
  --theme-rgba-0-0-0-0_05: rgba(0, 0, 0, 0.05);
  --theme-rgba-0-0-0-0_08: rgba(0, 0, 0, 0.08);
  --theme-rgba-0-0-0-0_1: rgba(0, 0, 0, 0.1);
  --theme-rgba-0-0-0-0_12: rgba(0, 0, 0, 0.12);
  --theme-rgba-0-0-0-0_15: rgba(0, 0, 0, 0.15);
  --theme-rgba-0-0-0-0_2: rgba(0, 0, 0, 0.2);
  --theme-rgba-0-0-0-0_25: rgba(0, 0, 0, 0.25);
  --theme-rgba-0-0-0-0_3: rgba(0, 0, 0, 0.3);
  --theme-rgba-0-0-0-0_35: rgba(0, 0, 0, 0.35);
  --theme-rgba-0-0-0-0_4: rgba(0, 0, 0, 0.4);
  --theme-rgba-0-0-0-0_45: rgba(0, 0, 0, 0.45);
  --theme-rgba-0-0-0-0_5: rgba(0, 0, 0, 0.5);
  --theme-rgba-0-0-0-0_7: rgba(0, 0, 0, 0.7);
  --theme-rgba-0-0-0-0_71: rgba(0, 0, 0, 0.71);
  --theme-rgba-0-0-0-0_8: rgba(0, 0, 0, 0.8);
  --theme-rgba-132-132-132-0_8: rgba(132, 132, 132, 0.8);
  --theme-rgba-158-158-158-0_54: rgba(158, 158, 158, 0.54);
  --theme-rgba-158-158-158-0_8: rgba(158, 158, 158, 0.8);
  --theme-rgba-198-198-198-0_7: rgba(198, 198, 198, 0.7);
  --theme-rgba-212-212-212-0_8: rgba(212, 212, 212, 0.8);
  --theme-rgba-249-249-249-0_55: rgba(249, 249, 249, 0.55);
  --theme-rgba-250-250-250-0_5: rgba(250, 250, 250, 0.5);
  --theme-rgba-255-255-255-0: rgba(255, 255, 255, 0);
  --theme-rgba-255-255-255-0_05: rgba(255, 255, 255, 0.05);
  --theme-rgba-255-255-255-0_2: rgba(255, 255, 255, 0.2);
  --theme-rgba-255-255-255-0_3: rgba(255, 255, 255, 0.3);
  --theme-rgba-255-255-255-0_4: rgba(255, 255, 255, 0.4);
  --theme-rgba-255-255-255-0_5: rgba(255, 255, 255, 0.5);
  --theme-rgba-255-255-255-0_75: rgba(255, 255, 255, 0.75);
  --theme-rgba-255-255-255-0_8: rgba(255, 255, 255, 0.8);
  --theme-rgba-255-255-255-1: rgba(255, 255, 255, 1);
  --theme-rgba-30-30-30-0_247059: rgba(30, 30, 30, 0.247059);
  --theme-rgba-30-30-30-0_533: rgba(30, 30, 30, 0.533);
  --theme-rgba-59-59-59-0_1: rgba(59, 59, 59, 0.1);
  --theme-rgba-59-59-59-0_4: rgba(59, 59, 59, 0.4);
  --theme-rgba-8-8-8-0_9: rgba(8, 8, 8, 0.9);
  /* Blueprint accents (swap these to change the theme hue) */
  --highlight: #3a96dd;
  --highlight-bright: color-mix(in srgb, var(--highlight) 85%, white);
  --highlight-soft: color-mix(in srgb, var(--highlight) 70%, white);
  --highlight-pale: color-mix(in srgb, var(--highlight) 25%, white);
  --highlight-ultra: color-mix(in srgb, var(--highlight) 10%, white);
  --highlight-strong: color-mix(in srgb, var(--highlight) 85%, black);
  --highlight-deep: color-mix(in srgb, var(--highlight) 70%, black);
  --highlight-ink-1: color-mix(in srgb, var(--highlight) 20%, black);
  --highlight-ink-2: color-mix(in srgb, var(--highlight) 30%, black);
  --highlight-ink-3: color-mix(in srgb, var(--highlight) 40%, black);
  --highlight-ink-4: color-mix(in srgb, var(--highlight) 55%, black);
  --theme-color-0072ff: var(--highlight-strong);
  --theme-color-007bff: var(--highlight-strong);
  --theme-color-0088cc: var(--highlight-strong);
  --theme-color-00aaff: var(--highlight-bright);
  --theme-color-00c6ff: var(--highlight-bright);
  --theme-color-08e6ff: var(--highlight-bright);
  --theme-color-0f0f1a: var(--highlight-ink-1);
  --theme-color-155cc1: var(--highlight-deep);
  --theme-color-1c42603f: color-mix(in srgb, var(--highlight) 25%, transparent);
  --theme-color-1f1f2a: var(--highlight-ink-2);
  --theme-color-1f2233: var(--highlight-ink-2);
  --theme-color-2a2f4a: var(--highlight-ink-3);
  --theme-color-2b3048: var(--highlight-ink-3);
  --theme-color-2bd4a3: var(--highlight-soft);
  --theme-color-356bff: var(--highlight);
  --theme-color-3a96dd: var(--highlight);
  --theme-color-46a9f5: var(--highlight-bright);
  --theme-color-4f46e5: var(--highlight-deep);
  --theme-color-64748b: var(--highlight-ink-4);
  --theme-color-6ea8ff: var(--highlight-soft);
  --theme-color-6ecfff: var(--highlight-soft);
  --theme-color-75bef8: var(--highlight-soft);
  --theme-color-c8d6ff: var(--highlight-pale);
  --theme-color-c9d6ff: var(--highlight-pale);
  --theme-color-eef3ff: var(--highlight-ultra);
  --theme-rgba-0-114-255-0_3: color-mix(in srgb, var(--highlight) 30%, transparent);
  --theme-rgba-0-114-255-0_4: color-mix(in srgb, var(--highlight) 40%, transparent);
  --theme-rgba-0-114-255-0_45: color-mix(in srgb, var(--highlight) 45%, transparent);
  --theme-rgba-0-114-255-0_5: color-mix(in srgb, var(--highlight) 50%, transparent);
  --theme-rgba-0-120-255-0_05: color-mix(in srgb, var(--highlight) 5%, transparent);
  --theme-rgba-0-120-255-0_08: color-mix(in srgb, var(--highlight) 8%, transparent);
  --theme-rgba-0-120-255-0_4: color-mix(in srgb, var(--highlight) 40%, transparent);
  --theme-rgba-0-120-255-0_6: color-mix(in srgb, var(--highlight) 60%, transparent);
  --theme-rgba-0-120-255-0_7: color-mix(in srgb, var(--highlight) 70%, transparent);
  --theme-rgba-0-150-255-0_2: color-mix(in srgb, var(--highlight) 20%, transparent);
  --theme-rgba-0-198-255-0_5: color-mix(in srgb, var(--highlight) 50%, transparent);
  --theme-rgba-0-198-255-0_6: color-mix(in srgb, var(--highlight) 60%, transparent);
  --theme-rgba-0-198-255-0_7: color-mix(in srgb, var(--highlight) 70%, transparent);
  --theme-rgba-0-198-255-0_8: color-mix(in srgb, var(--highlight) 80%, transparent);
  --theme-rgba-0-200-255-0_06: color-mix(in srgb, var(--highlight) 6%, transparent);
  --theme-rgba-0-200-255-0_12: color-mix(in srgb, var(--highlight) 12%, transparent);
  --theme-rgba-0-200-255-0_4: color-mix(in srgb, var(--highlight) 40%, transparent);
  --theme-rgba-0-200-255-0_5: color-mix(in srgb, var(--highlight) 50%, transparent);
  --theme-rgba-0-208-255-0_7: color-mix(in srgb, var(--highlight) 70%, transparent);
  --theme-rgba-0-213-255-0_395: color-mix(in srgb, var(--highlight) 39.5%, transparent);
  --theme-rgba-0-240-255-0_06: color-mix(in srgb, var(--highlight) 6%, transparent);
  --theme-rgba-0-240-255-0_9: color-mix(in srgb, var(--highlight) 90%, transparent);
  --theme-rgba-0-255-255-0_1: color-mix(in srgb, var(--highlight) 10%, transparent);
  --theme-rgba-0-255-255-0_2: color-mix(in srgb, var(--highlight) 20%, transparent);
  --theme-rgba-0-255-255-0_4: color-mix(in srgb, var(--highlight) 40%, transparent);
  --theme-rgba-0-255-255-0_5: color-mix(in srgb, var(--highlight) 50%, transparent);
  --theme-rgba-0-255-255-0_6: color-mix(in srgb, var(--highlight) 60%, transparent);
  --theme-rgba-0-255-255-0_9: color-mix(in srgb, var(--highlight) 90%, transparent);
  --theme-rgba-126-243-255-0_15: color-mix(in srgb, var(--highlight) 15%, transparent);
  --theme-rgba-126-243-255-0_25: color-mix(in srgb, var(--highlight) 25%, transparent);
  --theme-rgba-126-243-255-0_35: color-mix(in srgb, var(--highlight) 35%, transparent);
  --theme-rgba-126-243-255-0_45: color-mix(in srgb, var(--highlight) 45%, transparent);
  --theme-rgba-126-243-255-0_8: color-mix(in srgb, var(--highlight) 80%, transparent);
  --theme-rgba-68-233-255-0_3: color-mix(in srgb, var(--highlight) 30%, transparent);
  --theme-rgba-68-255-224-0_2: color-mix(in srgb, var(--highlight) 20%, transparent);
  --theme-rgba-68-255-243-0_4: color-mix(in srgb, var(--highlight) 40%, transparent);
  --theme-rgba-79-70-229-0_3: color-mix(in srgb, var(--highlight) 30%, transparent);
  /* Other accents (status/brand) */
  --theme-color-0f5132: #0f5132;
  --theme-color-2cff0559: #2cff0559;
  --theme-color-2ecc71: #2ecc71;
  --theme-color-35e182: #35e182;
  --theme-color-3fffaf: #3fffaf;
  --theme-color-59a35b: #59a35b;
  --theme-color-6441a5: #6441a5;
  --theme-color-9146ff: #9146ff;
  --theme-color-a53333: #a53333;
  --theme-color-b2f2d3: #b2f2d3;
  --theme-color-b37aff: #b37aff;
  --theme-color-b983ff: #b983ff;
  --theme-color-c53030: #c53030;
  --theme-color-d14343: #d14343;
  --theme-color-f0fff4: #f0fff4;
  --theme-color-fcff46: #fcff46;
  --theme-color-ff0000: #ff0000;
  --theme-color-ff0055: #ff0055;
  --theme-color-ff4444: #ff4444;
  --theme-color-ff4646: #ff4646;
  --theme-color-ff4684: #ff4684;
  --theme-color-ff9d00: #ff9d00;
  --theme-color-ffe600: #ffe600;
  --theme-rgba-145-70-255-0_3: rgba(145, 70, 255, 0.3);
  --theme-rgba-145-70-255-0_6: rgba(145, 70, 255, 0.6);
  --theme-rgba-255-68-68-0_4: rgba(255, 68, 68, 0.4);
  --theme-rgba-58-138-65-0: rgba(58, 138, 65, 0);
  --theme-rgba-58-138-65-0_5: rgba(58, 138, 65, 0.5);
  --theme-rgba-68-255-162-0_6: rgba(68, 255, 162, 0.6);
  --theme-rgba-76-175-80-0_8: rgba(76, 175, 80, 0.8);
  /* End theme: whiteprint-blue */
  --green: #66b05c;
  --greenLight: #84ff73;
  --green40: rgba(102, 176, 92, 0.4);
  --orange: #ee7f00;
  --white: #ffffff;
  --whiteLight: #fafafa;
  --black: #000000;
  --black40: rgba(0, 0, 0, 0.4);
  --blackLight: #1e1e1e;
  --greyLight: #9e9e9e;
  --greyDark: #393738;
  --boxShadowInst: rgba(0, 0, 0, 0.5);
  --link: #3a8a41;
  --linkhighlight: #35aa40;
  --after-height: 80%;
  --after-width: 77.2%;
  --meter-color-idle: var(--theme-color-00c6ff);
  --meter-color-active: var(--theme-color-0072ff);
  --meter-bar-bg: var(--frame-border);
  --meter-height: 10px;
  --meter-width: 60px;
  --bg: #e2e2e2;
  --grid-line: #d4d4d4;
  --accent: #d4d4d4;
  --grid-size: 160px;
  --small-grid-size: 20px;
  --particle-color: #d4d4d4;
  /* Emote group accents (used for group borders + scroll indicator) */
  --emote-accent-0: #3a96dd;
  --emote-accent-1: #5cb85c;
  --emote-accent-2: #f39c12;
  --emote-accent-3: #d74cf4;
  --emote-accent-4: #ff5f6d;
  --emote-accent-5: #00b8d9;
  --emote-accent-6: #ff9f43;
  --emote-accent-7: #6c5ce7;
}

::-webkit-scrollbar {
  width: 0.5em;
  height: 0.5em;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--highlight);
}

::-webkit-scrollbar-track {
  background: var(--frame-bg-muted);
  box-shadow: inset 0px 0px 4px var(--frame-shadow-soft);
}

::-webkit-scrollbar-thumb:horizontal {
  background-color: color-mix(in srgb, var(--highlight) 50%, transparent);
  border-radius: 10px;
  border: 1px solid var(--frame-border);
  background-clip: content-box;
  box-shadow: inset 0 0 4px var(--frame-shadow-strong);
}

::-webkit-scrollbar-thumb:vertical {
  background-color: color-mix(in srgb, var(--highlight) 50%, transparent);
  border-radius: 10px;
  border: 1px solid var(--frame-border);
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--highlight);
}

* {
  scrollbar-color: color-mix(in srgb, var(--highlight) 50%, transparent) var(--frame-bg-muted);
  scrollbar-width: thin;
}

::-webkit-scrollbar-button {
  display: none;
  opacity: 0;
  height: 0;
  width: 0;
}

@font-face {
  font-family: "CurrentMain";
  src: url("../fonts/JetBrainsMono[wght].ttf") format("truetype");
  font-weight: 100 800;
  font-style: normal;
}
html {
  font-size: 1.1875em;
  pointer-events: none;
  overflow: hidden;
}

body {
  pointer-events: none;
  background-color: var(--theme-color-ffffff);
  font-family: "CurrentMain", sans-serif;
  font-weight: 700;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
}

h1 {
  font-size: 1.2em;
  color: var(--highlight);
}

h2, button {
  font-size: 1em;
}

p {
  padding: 0;
  margin: 0;
}

a {
  all: unset;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

a:hover,
a:focus {
  text-decoration: none;
  color: inherit;
  outline: none;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

ul,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.activeUi {
  background-color: var(--highlight) !important;
  box-shadow: inset 0px 0px 5px var(--theme-rgba-0-0-0-0_1) !important;
  color: #fafafa !important;
}

.videoCompensator {
  width: 100%;
}

.bracket {
  display: flex;
  flex-direction: row;
  gap: 0.9375em;
  height: 5vh;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--theme-color-d4d4d4);
  background-color: var(--theme-color-e2e2e2);
}

.alignCenterContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1.25em;
}

#frame {
  box-sizing: border-box;
  pointer-events: none;
  position: relative;
  z-index: 8000;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  height: 100%;
  border: solid 1.5625em var(--frame-bg);
  background-color: var(--frame-bg);
}
#frame::before {
  content: "";
  position: absolute;
  inset: -1.5em;
  border: solid 1.5625em var(--frame-bg);
  border-radius: 3.4375em;
  pointer-events: none;
  z-index: -1;
}
#frame #display {
  pointer-events: none;
  position: relative;
  display: flex;
  flex-direction: column;
  height: calc(100% - 4px);
  border: 2px solid var(--frame-border);
  box-shadow: inset 0px 0px 20px var(--frame-shadow-strong);
  background-color: transparent;
  border-radius: 1.5625em;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  -webkit-transition: 0.4s ease-in-out;
  transition: 0.4s ease-in-out;
}
#frame #display #contentframe {
  pointer-events: all;
  position: relative;
  z-index: -1;
  display: flex;
  flex-direction: row;
  width: 100%;
  box-sizing: border-box;
  height: 100%;
  border-top-left-radius: 1.5625em;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top;
  overflow-x: hidden;
  overflow-y: hidden;
  scroll-behavior: smooth;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
#frame #display #contentframe::after {
  content: "";
  pointer-events: none;
  position: fixed;
  opacity: 0.4;
  z-index: -1;
  width: var(--after-width);
  height: calc(10px + var(--after-height));
  margin-bottom: auto;
  background: linear-gradient(to bottom, var(--theme-rgba-0-0-0-0) 0%, var(--frame-bg-muted) 100%);
}
#frame #display #contentframe #content {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 3.125em;
  width: 100%;
  height: 100%;
  overflow-y: hidden;
  overflow-x: scroll;
  scroll-behavior: smooth;
  opacity: 1;
  transform: translateY(0);
  filter: none;
  will-change: opacity, transform, filter;
  transition: opacity 140ms ease, transform 180ms ease, filter 180ms ease;
}
#frame #display #contentframe #content.route-content-exit {
  opacity: 0;
  transform: translateY(6px) scale(0.995);
  filter: blur(1px);
}
#frame #display #contentframe #content.route-content-enter {
  opacity: 0;
  transform: translateY(8px) scale(0.996);
  filter: blur(1.5px);
}
#frame #display #contentframe #content.route-content-enter.route-content-enter-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: none;
}
#frame #display #adtoolbar {
  border-top-left-radius: 1.5625em;
}
#frame #display #toolbar {
  pointer-events: all;
  position: relative;
  z-index: -1;
  display: flex;
  gap: 1.25em;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 6.25em;
  border-top: 1px solid var(--frame-border);
  background-color: var(--frame-bg-muted);
  border-bottom-left-radius: 1.5625em;
}
#frame #display #toolbar .toolbarElement:first-child {
  margin-left: 2vw;
}
#frame #display #toolbar .toolbarElement:last-child {
  margin-right: 2vw;
}
#frame #navigation {
  box-sizing: border-box;
  pointer-events: all;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.5em;
  height: 100%;
  padding: 0 1.25em;
  border-left: solid 1.25em var(--frame-bg);
  box-shadow: inset 0px 0px 20px var(--frame-shadow-soft);
  background-color: var(--frame-bg-muted);
  border-top-right-radius: 1.5625em;
  border-bottom-right-radius: 1.5625em;
}
#frame #navigation #accesspanel {
  pointer-events: all;
  width: 100%;
  min-height: 5vh;
  border-top-right-radius: 3vh;
  border: 1px solid var(--frame-border);
  border-bottom: 5px solid var(--frame-border);
  background-color: var(--frame-bg);
  margin-top: 1.25em;
  display: flex;
  flex-wrap: wrap;
  padding: 0.625em 0;
  align-items: center;
  gap: 1.25em;
  flex-direction: row;
  box-shadow: 0px 0px 25px var(--frame-shadow-soft);
  overflow: hidden;
}
#frame #navigation #menu {
  display: flex;
  flex-direction: column;
  gap: 1.375em;
  width: auto;
  height: max-content;
  padding: 1.25em 0.8125em 0.9375em 0.625em;
  border: 1px solid var(--frame-border);
  background-color: var(--frame-bg-subtle);
}
#frame #navigation #submenu {
  display: flex;
  flex-direction: column;
  gap: 0.625em;
  width: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.625em 0.625em 0;
  border: 1px solid var(--frame-border);
  background-color: var(--frame-bg-subtle);
  overflow-x: hidden;
  overflow-y: auto;
}
#frame #navigation #submenu.lab-gap {
  gap: 1.5625em;
}
#frame footer {
  display: flex;
  flex-direction: row;
  height: auto;
  min-height: auto;
  gap: 2px;
  justify-self: flex-end;
  margin-bottom: 0.625em;
  justify-content: center;
  align-items: center;
  color: #848484;
  border: 1px solid var(--frame-border);
  background-color: var(--frame-bg-subtle);
  flex-wrap: nowrap;
  overflow-y: hidden;
  overflow-x: hidden;
  padding: 4px 10px;
}
#frame socialmedia {
  display: flex;
  flex-direction: row;
  min-height: 5.1vh;
  gap: 0.5em;
  justify-self: flex-end;
  margin-top: auto;
  margin-bottom: 1px;
  justify-content: center;
  align-items: center;
  color: #848484;
  border: 1px solid var(--frame-border);
  background-color: var(--frame-bg-subtle);
  flex-wrap: wrap;
  overflow-y: auto;
  padding: 2px 0.9375em;
}
#frame socialmedia a {
  border: 1px solid var(--frame-border);
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px;
  box-shadow: inset 0px 0px 4px var(--frame-shadow-soft);
}
#frame socialmedia a img {
  opacity: 0.2;
}
#frame socialmedia a img:hover {
  opacity: 1;
}
#frame[data-layout=stacked] {
  flex-direction: column;
  border-radius: 0;
}
#frame[data-layout=stacked]::before {
  display: none;
}
#frame[data-layout=stacked] #display {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  height: var(--stack-display-h, 67%);
  overflow: hidden;
  border-radius: 0;
}
#frame[data-layout=stacked] #display #contentframe {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  border-radius: 0;
}
#frame[data-layout=stacked] #display #contentframe .sci-fi-os-bg .line-drop {
  animation: none;
}
#frame[data-layout=stacked] #display #contentframe .sci-fi-os-bg .scanline {
  animation: none;
}
#frame[data-layout=stacked] #display #contentframe .sci-fi-os-bg .hud {
  display: none;
}
#frame[data-layout=stacked] #display #toolbar {
  flex: 0 0 auto;
  height: auto;
  border-radius: 0;
}
#frame[data-layout=stacked] #navigation {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  height: var(--stack-nav-h, 31%);
  overflow-x: hidden;
  overflow-y: auto;
  border-left: none;
  border-radius: 0;
  padding: 0 10px 0 5px;
}
#frame[data-layout=stacked] #navigation #accesspanel {
  display: none;
}
#frame[data-layout=stacked] #navigation #menu {
  box-sizing: border-box;
  flex: 0 0 auto;
  flex-direction: row;
  gap: 5px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  padding: 2px;
  margin-top: 5px;
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--frame-bg-muted);
}
#frame[data-layout=stacked] #navigation #menu p {
  display: none;
}
#frame[data-layout=stacked] #navigation #menu .btnContainer {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
}
#frame[data-layout=stacked] #navigation #menu .btnContainer .button {
  min-width: 0;
  min-height: 0;
}
#frame[data-layout=stacked] #navigation #pagination {
  display: none;
}
#frame[data-layout=stacked] #navigation socialmedia {
  display: none;
}
#frame[data-layout=stacked] #submenu {
  flex: 1 1 auto;
  height: auto;
  overflow: visible;
}
#frame[data-layout=stacked] footer {
  overflow: hidden;
  margin-bottom: 5px;
  padding-left: 2px;
}

body:not(.website-mode):not(.streaming-view):not(.chatpanel-view) #frame[data-route-section=default][data-layout=stacked] #display {
  box-sizing: content-box;
  width: calc(100% - 5px);
  max-width: none;
  min-width: auto;
}
body:not(.website-mode):not(.streaming-view):not(.chatpanel-view) #frame[data-route-section=default][data-layout=stacked] #navigation {
  max-width: none;
  min-width: auto;
}
body:not(.website-mode):not(.streaming-view):not(.chatpanel-view) #frame[data-route-section=default][data-layout=stacked] #navigation #menu {
  box-sizing: content-box;
  max-width: none;
  min-width: auto;
}

#navigation.streaming-nav-layout #menu {
  flex: 0 0 var(--streaming-menu-height, 30%);
  height: auto;
}
#navigation.streaming-nav-layout #submenu {
  flex: 1 1 auto;
  min-height: 0;
}
#navigation.streaming-nav-layout socialmedia {
  margin-top: 0;
}

#frame #navigation.streaming-menu-hidden #menu {
  flex: 0 0 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  padding: 0;
  border-width: 0;
}

#navigation.streaming-menu-below #menu {
  order: 2;
}
#navigation.streaming-menu-below #submenu {
  order: 1;
}

#frame[data-nav-side=left] {
  flex-direction: row-reverse;
}
#frame[data-nav-side=left] #display {
  border-top-right-radius: 1.5625em;
  border-bottom-right-radius: 1.5625em;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
#frame[data-nav-side=left] #navigation {
  border-left: none;
  border-right: solid 1.25em var(--frame-bg);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: 1.5625em;
  border-bottom-left-radius: 1.5625em;
}
#frame[data-nav-side=left] #navigation #accesspanel {
  border-top-right-radius: 0;
  border-top-left-radius: 3vh;
}
#frame[data-nav-side=left] #display #toolbar,
#frame[data-nav-side=left] #display #adtoolbar {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

body.streaming-view #toolbar {
  flex: 0 0 auto;
  height: auto;
  min-height: 6.875em;
  max-height: 8.125em;
  justify-content: space-around;
}

body.website-mode #frame[data-content-template][data-layout=stacked],
body.website-mode #frame[data-content-template][data-layout=split][data-tier=compact],
body.website-mode #frame[data-content-template][data-layout=split][data-tier=minimal] {
  padding: 0;
  border: 2px solid var(--frame-bg);
}
body.website-mode #frame[data-content-template][data-layout=stacked] #submenu,
body.website-mode #frame[data-content-template][data-layout=stacked] footer,
body.website-mode #frame[data-content-template][data-layout=split][data-tier=compact] #submenu,
body.website-mode #frame[data-content-template][data-layout=split][data-tier=compact] footer,
body.website-mode #frame[data-content-template][data-layout=split][data-tier=minimal] #submenu,
body.website-mode #frame[data-content-template][data-layout=split][data-tier=minimal] footer {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.website-mode #frame[data-content-template][data-layout=stacked] #submenu {
  overflow-x: hidden;
  overflow-y: auto;
}

body.website-mode #frame[data-content-template][data-layout=split][data-tier=compact],
body.website-mode #frame[data-content-template][data-layout=split][data-tier=minimal] {
  padding: 0;
  gap: 10px;
}
body.website-mode #frame[data-content-template][data-layout=split][data-tier=compact]::before,
body.website-mode #frame[data-content-template][data-layout=split][data-tier=minimal]::before {
  inset: 0;
  border: 2px solid var(--frame-bg);
}
body.website-mode #frame[data-content-template][data-layout=split][data-tier=compact] #display,
body.website-mode #frame[data-content-template][data-layout=split][data-tier=minimal] #display {
  border-radius: 0;
}
body.website-mode #frame[data-content-template][data-layout=split][data-tier=compact] #display #contentframe,
body.website-mode #frame[data-content-template][data-layout=split][data-tier=minimal] #display #contentframe {
  border-radius: 0;
}
body.website-mode #frame[data-content-template][data-layout=split][data-tier=compact] #display #toolbar,
body.website-mode #frame[data-content-template][data-layout=split][data-tier=minimal] #display #toolbar {
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: flex-start;
  height: fit-content;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom-left-radius: 0;
}
body.website-mode #frame[data-content-template][data-layout=split][data-tier=compact] #navigation,
body.website-mode #frame[data-content-template][data-layout=split][data-tier=minimal] #navigation {
  padding: 0 10px 0 5px;
  border-radius: 0;
  border-left: none;
}
body.website-mode #frame[data-content-template][data-layout=split][data-tier=compact] #navigation #accesspanel,
body.website-mode #frame[data-content-template][data-layout=split][data-tier=minimal] #navigation #accesspanel {
  display: none;
}
body.website-mode #frame[data-content-template][data-layout=split][data-tier=compact] #navigation #menu,
body.website-mode #frame[data-content-template][data-layout=split][data-tier=minimal] #navigation #menu {
  gap: 5px;
  width: 100%;
  height: auto;
  padding: 2px;
}
body.website-mode #frame[data-content-template][data-layout=split][data-tier=compact] #navigation #menu .btnContainer,
body.website-mode #frame[data-content-template][data-layout=split][data-tier=minimal] #navigation #menu .btnContainer {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
}
body.website-mode #frame[data-content-template][data-layout=split][data-tier=compact] #navigation #menu .btnContainer .button,
body.website-mode #frame[data-content-template][data-layout=split][data-tier=minimal] #navigation #menu .btnContainer .button {
  min-width: 0;
  min-height: 0;
  padding-bottom: 0;
}
body.website-mode #frame[data-content-template][data-layout=split][data-tier=compact] #navigation #menu .btnContainer .button.active,
body.website-mode #frame[data-content-template][data-layout=split][data-tier=minimal] #navigation #menu .btnContainer .button.active {
  padding-bottom: 1em;
}
body.website-mode #frame[data-content-template][data-layout=split][data-tier=compact] #navigation #pagination,
body.website-mode #frame[data-content-template][data-layout=split][data-tier=minimal] #navigation #pagination {
  display: none;
}
body.website-mode #frame[data-content-template][data-layout=split][data-tier=compact] #navigation #submenu,
body.website-mode #frame[data-content-template][data-layout=split][data-tier=minimal] #navigation #submenu {
  padding: 2px;
}
body.website-mode #frame[data-content-template][data-layout=split][data-tier=compact] #navigation #submenu p,
body.website-mode #frame[data-content-template][data-layout=split][data-tier=minimal] #navigation #submenu p {
  display: flex;
  flex-wrap: wrap;
  white-space: break-spaces !important;
}
body.website-mode #frame[data-content-template][data-layout=split][data-tier=compact] #navigation socialmedia,
body.website-mode #frame[data-content-template][data-layout=split][data-tier=minimal] #navigation socialmedia {
  display: none;
}
body.website-mode #frame[data-content-template][data-layout=split][data-tier=compact] footer,
body.website-mode #frame[data-content-template][data-layout=split][data-tier=minimal] footer {
  overflow: hidden;
  margin-bottom: 5px;
  padding-left: 2px;
}

#frame[data-nav-tier=compact] #accesspanel,
#frame[data-nav-tier=compact] #pagination,
#frame[data-nav-tier=compact] socialmedia,
#frame[data-nav-tier=hidden-extras] #accesspanel,
#frame[data-nav-tier=hidden-extras] #pagination,
#frame[data-nav-tier=hidden-extras] socialmedia {
  display: none;
}

#frame[data-nav-tier=hidden-extras] #footer {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  #frame #display #contentframe #content {
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
}
#frame {
  font-size: calc(19px * var(--il-scale, 1));
}

#display {
  font-size: calc(19px * var(--il-scale, 1));
}

#navigation {
  font-size: calc(17px * var(--il-scale, 1));
}

:root {
  --il-spacing-xs: 4px;
  --il-spacing-sm: 8px;
  --il-spacing-md: 12px;
  --il-spacing-lg: 16px;
  --il-spacing-xl: 24px;
  --il-radius-sm: 4px;
  --il-radius-md: 6px;
  --il-radius-lg: 8px;
  --il-transition-fast: 0.15s ease;
  --il-transition-normal: 0.25s ease;
  --il-btn-bg: var(--menu-button-bg);
  --il-btn-border: var(--menu-button-border);
  --il-btn-text: var(--font-color);
  --il-btn-primary-bg: var(--highlight);
  --il-btn-primary-text: var(--theme-color-ffffff);
  --il-input-bg: var(--frame-bg);
  --il-input-border: var(--frame-border);
  --il-input-focus-border: var(--highlight);
  --il-toggle-bg: var(--frame-bg-muted);
  --il-toggle-active-bg: var(--highlight);
  --il-toggle-indicator: var(--theme-color-ffffff);
  --il-section-header-color: var(--font-color);
  --il-section-help-color: var(--message-font-color-soft);
  --il-row-border: var(--frame-border);
  --il-label-color: var(--font-color);
}

.il-hover-highlight {
  transition: background 0.2s ease;
}
.il-hover-highlight:hover {
  background: color-mix(in srgb, var(--highlight) 5%, transparent);
}

.il-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2em;
  padding: 0 0.75em;
  border-radius: 0.5em;
  border: 1px solid var(--frame-border);
  background: var(--frame-bg);
  color: var(--theme-color-333333);
  font-size: 0.75em;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.il-btn:hover {
  background: var(--frame-bg-raised, var(--frame-bg));
  box-shadow: 0 6px 12px var(--frame-shadow-soft);
}
.il-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.il-btn--primary {
  background: var(--highlight);
  border-color: var(--highlight);
  color: #ffffff;
}
.il-btn--primary:hover {
  box-shadow: 0 6px 16px color-mix(in srgb, var(--highlight) 30%, transparent);
}
.il-btn--secondary {
  background: transparent;
  border-color: var(--frame-border);
  color: var(--theme-color-333333);
}
.il-btn--secondary:hover {
  background: var(--frame-bg-raised, var(--frame-bg));
}
.il-btn--danger {
  background: var(--theme-color-ff4444);
  border-color: var(--theme-color-ff4444);
  color: #ffffff;
}
.il-btn--danger:hover {
  box-shadow: 0 6px 16px color-mix(in srgb, var(--theme-color-ff4444) 30%, transparent);
}
.il-btn--sm {
  height: 1.625em;
  padding: 0 0.5em;
  font-size: 0.6875em;
}
.il-btn--lg {
  height: 2.375em;
  padding: 0 1em;
  font-size: 0.875em;
}

.il-input {
  flex: 1 1 16.25em;
  height: 2.125em;
  padding: 0 0.625em;
  border-radius: 0.5em;
  border: 1px solid var(--frame-border);
  background: var(--frame-bg);
  color: var(--theme-color-333333);
  font-size: 0.75em;
  font-family: inherit;
}
.il-input::placeholder {
  color: var(--message-font-color-soft);
}
.il-input:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}
.il-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.il-input--inline {
  flex: 0 0 auto;
  width: auto;
}

.il-select {
  flex: 1 1 16.25em;
  height: 2.125em;
  padding: 0 0.625em;
  border-radius: 0.5em;
  border: 1px solid var(--frame-border);
  background: var(--frame-bg);
  color: var(--theme-color-333333);
  font-size: 0.75em;
  font-family: inherit;
  cursor: pointer;
}
.il-select:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}
.il-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.il-select--inline {
  flex: 0 0 auto;
  width: auto;
}

.il-input-file {
  position: absolute;
  left: -9999px;
}

.il-textarea {
  flex: 1 1 16.25em;
  min-height: 3.75em;
  padding: 0.5em 0.625em;
  border-radius: 0.5em;
  border: 1px solid var(--frame-border);
  background: var(--frame-bg);
  color: var(--theme-color-333333);
  font-size: 0.75em;
  font-family: inherit;
  resize: vertical;
}
.il-textarea::placeholder {
  color: var(--message-font-color-soft);
}
.il-textarea:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

.il-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 8px;
  border-radius: 0.5vw;
  min-width: 5em;
  border: 1px solid var(--frame-border);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.3s ease;
}
.il-toggle input[type=checkbox] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.il-toggle.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.il-toggle:hover {
  border-color: var(--highlight);
  transition: border-color 0.3s ease;
}

.il-toggle-label {
  font-size: 0.6875em;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--font-color);
  text-transform: uppercase;
  opacity: 0.85;
}

.il-toggle-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 56px;
  height: 22px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--theme-color-ededed);
  border: 1px solid var(--frame-border);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, border-radius 0.4s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}
.il-toggle-track::before, .il-toggle-track::after {
  content: "";
  position: absolute;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  z-index: 1;
  transition: color 0.3s ease, opacity 0.3s ease;
}
.il-toggle-track::before {
  content: "ON";
  left: 15px;
  color: rgba(0, 0, 0, 0.3);
}
.il-toggle-track::after {
  content: "OFF";
  right: 10px;
  color: rgba(0, 0, 0, 0.8);
}
.is-active .il-toggle-track {
  background: var(--theme-color-2ecc71);
  border-color: color-mix(in srgb, var(--theme-color-2ecc71) 80%, black);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-color-2ecc71) 30%, transparent), 0 4px 12px color-mix(in srgb, var(--theme-color-2ecc71) 35%, transparent);
}
.is-active .il-toggle-track::before {
  color: #fff;
}
.is-active .il-toggle-track::after {
  color: rgba(15, 81, 50, 0.3);
}

.il-toggle-slider {
  position: absolute;
  top: 1px;
  left: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 18px;
  border-radius: 999px;
  background: var(--frame-bg);
  border: 1px solid var(--frame-border);
  z-index: 2;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), top 0.4s cubic-bezier(0.4, 0, 0.2, 1), right 0.4s cubic-bezier(0.4, 0, 0.2, 1), bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}
.is-active .il-toggle-slider {
  left: calc(100% - 29px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.il-toggle-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--highlight);
  flex-shrink: 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
}
.is-active .il-toggle-indicator {
  background: var(--highlight);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--highlight) 30%, transparent), 0 0 8px color-mix(in srgb, var(--highlight) 60%, transparent);
}

#frame[data-tier=compact] .il-toggle,
#frame[data-tier=minimal] .il-toggle {
  min-width: 0;
  align-items: center;
}
#frame[data-tier=compact] .il-toggle-track,
#frame[data-tier=minimal] .il-toggle-track {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
  overflow: visible;
  border-top: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-right: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-bottom: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-left: 1px solid var(--theme-rgba-59-59-59-0_4);
  box-shadow: 0px 4px 4px var(--theme-rgba-0-0-0-0_2);
}
#frame[data-tier=compact] .il-toggle-track::before, #frame[data-tier=compact] .il-toggle-track::after,
#frame[data-tier=minimal] .il-toggle-track::before,
#frame[data-tier=minimal] .il-toggle-track::after {
  opacity: 0;
  pointer-events: none;
}
#frame[data-tier=compact] .is-active .il-toggle-track,
#frame[data-tier=minimal] .is-active .il-toggle-track {
  background: var(--theme-color-2ecc71);
  border-color: color-mix(in srgb, var(--theme-color-2ecc71) 80%, black);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-color-2ecc71) 30%, transparent), 0 4px 12px color-mix(in srgb, var(--theme-color-2ecc71) 35%, transparent);
}
#frame[data-tier=compact] .il-toggle-slider,
#frame[data-tier=minimal] .il-toggle-slider {
  top: -6px;
  left: 50%;
  right: auto;
  bottom: auto;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  background: var(--theme-color-ffffff, #fff);
  border: 1px solid var(--menu-button-border, var(--frame-border));
  border-bottom: 1px solid var(--menu-button-border-bottom, var(--frame-border));
  box-shadow: 0px 6px 0px 0px var(--menu-button-shadow-soft, rgba(0, 0, 0, 0.15));
  transition: top 0.14s ease-in-out, box-shadow 0.14s ease-in-out, background-color 0.14s ease-in-out, border-color 0.14s ease-in-out;
}
#frame[data-tier=compact] .is-active .il-toggle-slider,
#frame[data-tier=minimal] .is-active .il-toggle-slider {
  top: 3px;
  left: 50%;
  right: auto;
  margin-left: -10px;
  box-shadow: none;
  background: var(--theme-color-ffffff, #fff);
  border: solid 0px transparent;
}
#frame[data-tier=compact] .il-toggle-indicator,
#frame[data-tier=minimal] .il-toggle-indicator {
  opacity: 0.5;
}
#frame[data-tier=compact] .is-active .il-toggle-indicator,
#frame[data-tier=minimal] .is-active .il-toggle-indicator {
  opacity: 1;
  background: var(--highlight);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--highlight) 30%, transparent), 0 0 8px color-mix(in srgb, var(--highlight) 60%, transparent);
}

.il-audio-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.il-audio-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 4px;
  height: 22px;
  background: var(--frame-border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.il-audio-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--theme-color-ededed);
  border: 1px solid var(--frame-border);
  cursor: pointer;
}
.il-audio-volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--theme-color-ededed);
  border: 1px solid var(--frame-border);
  cursor: pointer;
}

.il-range-slider {
  accent-color: var(--highlight);
}

.il-audio-volume-text {
  font-size: 9px;
  font-weight: 700;
  color: var(--font-color);
  opacity: 0.6;
  cursor: pointer;
  user-select: none;
  min-width: 28px;
  text-align: center;
}

.il-save-button {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 0.5em;
  min-width: 7.5em;
  border: 1px solid var(--frame-border);
  background: var(--theme-color-ededed);
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background-color 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}
.il-save-button:hover {
  background: var(--theme-color-2ecc71);
  border-color: color-mix(in srgb, var(--theme-color-2ecc71) 80%, black);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-color-2ecc71) 30%, transparent), 0 4px 12px color-mix(in srgb, var(--theme-color-2ecc71) 35%, transparent);
}
.il-save-button.is-saved {
  background: var(--theme-color-2ecc71);
  border-color: color-mix(in srgb, var(--theme-color-2ecc71) 80%, black);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-color-2ecc71) 30%, transparent), 0 4px 12px color-mix(in srgb, var(--theme-color-2ecc71) 35%, transparent);
  animation: fade-green-glow 2s ease forwards;
}
.il-save-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes fade-green-glow {
  from {
    background: var(--theme-color-2ecc71);
    border-color: color-mix(in srgb, var(--theme-color-2ecc71) 80%, black);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-color-2ecc71) 30%, transparent), 0 4px 12px color-mix(in srgb, var(--theme-color-2ecc71) 35%, transparent);
  }
  to {
    background: var(--theme-color-ededed);
    border-color: var(--frame-border);
    box-shadow: 0 0 0 2px transparent, 0 4px 12px transparent;
  }
}
.il-save-button-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border-radius: calc(0.5vw - 1px);
  background: var(--frame-bg);
  border: 1px solid var(--frame-border);
  position: relative;
}

.il-save-button-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--highlight);
  flex-shrink: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  display: flex;
}
.il-save-button.is-saved .il-save-button-indicator, .il-save-button.has-saved .il-save-button-indicator {
  background: var(--theme-color-2ecc71);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-color-2ecc71) 30%, transparent), 0 0 8px color-mix(in srgb, var(--theme-color-2ecc71) 60%, transparent);
}

.il-save-button-text {
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--font-color);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
}
.il-save-button-text.typewriter {
  animation: typewriter 0.8s steps(20) forwards;
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
.il-row {
  display: grid;
  gap: 0.625em;
  align-items: center;
  grid-template-columns: minmax(10.625em, 1fr) minmax(16.25em, 4fr);
  border-bottom: 1px solid #e2e2e2;
  padding-top: 0.9375em;
  padding-bottom: 0.9375em;
}
.il-row:first-child {
  padding-top: 0;
}
.il-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.il-row--top {
  align-items: flex-start;
}
.il-row--borderless {
  border-bottom: none;
}
.il-row--compact {
  padding-bottom: 0.625em;
}

.il-label {
  font-size: 0.8125em;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--theme-color-444444);
  align-self: flex-start;
  padding-top: 4px;
}
.il-label--sm {
  font-size: 0.75em;
  min-width: 80px;
}
.il-label--lg {
  font-size: 0.9375em;
  min-width: 200px;
}

.il-controls {
  display: grid;
  gap: 0.5em;
}
.il-controls--wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.il-controls--stack {
  display: grid;
  gap: 0.5em;
}

.il-group {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
}

.il-meta {
  font-size: 0.625em;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--theme-color-888888);
  min-width: 3.25em;
  align-self: flex-start;
  padding-top: 4px;
}

.il-lab-section:last-child {
  margin-bottom: 0;
}

.il-section-header {
  font-size: 0.875em;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--theme-color-333333);
  margin-bottom: 0.5em;
}
.il-section-header--bordered {
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--frame-border);
}
.il-section-header--sm {
  font-size: 0.75em;
  font-weight: 600;
}

.il-section-help {
  font-size: 0.75em;
  color: var(--theme-color-666666, var(--theme-color-888888));
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.il-section-collapsible .il-section-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.il-section-collapsible .il-section-header::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid var(--theme-color-333333);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 0.2s ease;
}
.il-section-collapsible.is-expanded .il-section-header::before {
  transform: rotate(90deg);
}
.il-section-collapsible .il-section-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.il-section-collapsible.is-expanded .il-section-content {
  max-height: 2000px;
}

.il-lab {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.il-lab.bg-text {
  position: relative;
  height: calc(80vh - 80px);
}

#frame[data-layout=stacked] .il-lab.bg-text {
  height: 100%;
  max-height: 100%;
}

#frame[data-layout=stacked] .il-lab.bg-text .line1 {
  font-size: 1em;
  letter-spacing: 0.5px;
}

#frame[data-layout=stacked] .il-lab.bg-text .line2 {
  font-size: 0.75em;
}

#frame[data-layout=stacked] .theme-editor,
#frame[data-layout=stacked] .event-lab,
#frame[data-layout=stacked] .ad-lab,
#frame[data-layout=stacked] .alert-lab {
  padding-top: clamp(32px, 3vw, 44px);
}

.il-lab-body {
  flex: 1 1 auto;
  display: flex;
  gap: var(--il-spacing-lg);
  overflow: hidden;
  min-height: 0;
  padding: 0vw 2vw clamp(40px, 2vw, 48px) 2vw;
}

.il-lab-topbar {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--il-spacing-md);
  margin-bottom: var(--il-spacing-md);
  min-width: 0;
}
.il-lab-topbar > * {
  min-width: 0;
}

.il-lab-topbar-help,
.il-lab-topbar .il-simple-help {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  max-width: none;
}

.il-lab-topbar-controls-host {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--il-spacing-sm);
}

.il-lab-topbar-controls {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  align-content: flex-start;
  justify-content: flex-start;
  gap: var(--il-spacing-sm);
}
.il-lab-topbar-controls > * {
  min-width: 0;
}
.il-lab-topbar-controls .il-toggle,
.il-lab-topbar-controls .il-save-button,
.il-lab-topbar-controls .il-btn {
  flex: 0 1 auto;
}

.il-lab-body--pending {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: none;
  filter: none;
}

.il-lab-body--revealed {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: il-lab-body-reveal 150ms ease-out both;
}

@keyframes il-lab-body-reveal {
  0% {
    opacity: 0;
    transform: none;
    filter: none;
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .il-lab-body--revealed {
    animation: none !important;
  }
}
.il-lab-header {
  flex: 0 0 auto;
  padding: var(--il-spacing-lg);
}
.il-lab-header .line1 {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--font-color);
}
.il-lab-header .line2 {
  font-size: 0.9em;
  color: var(--message-font-color-soft);
  margin-top: var(--il-spacing-xs);
}
.il-lab-header--compact {
  padding: var(--il-spacing-md);
}
.il-lab-header--compact .line1 {
  font-size: 1.25em;
}

.il-lab-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1.125em 1em 1.125em 1.125em;
  overflow: hidden;
  min-height: 0;
  border: 1px solid var(--frame-border);
  background: var(--frame-bg-soft);
  border-radius: 0.75em;
  box-shadow: 0 12px 24px var(--frame-shadow-soft);
}
.il-lab-panel--flush {
  padding: 0;
}

.il-list {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  border: 1px solid #d4d4d4;
  border-left: 0;
  border-right: 0;
  padding: 8px;
  box-shadow: inset 0 0 4px var(--frame-shadow-soft);
}

.il-lab-actions {
  flex: 0 0 auto;
  display: flex;
  gap: var(--il-spacing-sm);
  padding: var(--il-spacing-md) 0;
  border-top: 1px solid var(--il-row-border);
}
.il-lab-actions--right {
  justify-content: flex-end;
}
.il-lab-actions--between {
  justify-content: space-between;
}

.il-lab-status {
  display: none;
  font-size: 0.85em;
  color: var(--message-font-color-soft);
  padding: var(--il-spacing-sm) 0;
}
.il-lab-status--success {
  color: var(--theme-color-44ff44);
}
.il-lab-status--error {
  color: var(--theme-color-ff4444);
}

.il-lab-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  text-align: center;
  color: var(--message-font-color-soft);
  padding: var(--il-spacing-xl);
}
.il-lab-empty .il-lab-empty-icon {
  font-size: 3em;
  margin-bottom: var(--il-spacing-md);
  opacity: 0.5;
}
.il-lab-empty .il-lab-empty-text {
  font-size: 1.1em;
}

.il-video-card {
  --il-video-card-width: clamp(240px, 18vw, 340px);
  position: relative;
  flex: 0 0 var(--il-video-card-width);
  width: var(--il-video-card-width);
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  border: 1px solid var(--frame-border);
  background: var(--frame-bg-muted);
  border-radius: 0.75em;
  box-shadow: 0 12px 24px var(--frame-shadow-soft);
  min-height: 0;
}
.il-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: inherit;
}

.il-modal-overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--frame-bg) 75%, var(--theme-rgba-0-0-0-0_7));
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 10;
  padding: 0.75em;
  cursor: pointer;
}
.il-modal-overlay.is-visible {
  display: flex;
}
.il-modal-overlay--fullscreen {
  padding: 1.5em;
}

.il-modal {
  background: var(--frame-bg-raised);
  border: 1px solid var(--frame-border);
  border-radius: 0.625em;
  padding: 0.875em;
  width: min(480px, 95%);
  max-height: min(80vh, 540px);
  display: flex;
  flex-direction: column;
  gap: 0.625em;
  box-shadow: 0 6px 18px var(--frame-shadow-soft);
  color: var(--font-color);
  cursor: default;
}
.il-modal--full {
  max-height: calc(100vh - 96px);
  overflow: hidden;
  height: auto;
}

.il-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.il-modal-title {
  font-weight: 700;
  color: var(--font-color);
}

.il-modal-actions-header {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.il-modal-close {
  background: transparent;
  border: none;
  color: var(--frame-text-soft);
  font-size: 1.25em;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.il-modal-close:hover {
  color: var(--font-color);
}

.il-modal-body {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.il-modal--full .il-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.il-modal-footer {
  display: flex;
  gap: 0.5em;
  justify-content: flex-end;
  margin-top: 0.375em;
}
.il-modal-footer--single {
  justify-content: stretch;
}
.il-modal-footer--single .il-btn {
  width: 100%;
  flex: 1;
}

.il-form-field {
  margin-bottom: 0.75em;
  flex-direction: column;
}

.il-form-label {
  display: flex;
  font-size: 0.75em;
  color: var(--frame-text-soft);
  margin-bottom: 0.25em;
}

.il-form-input {
  width: calc(100% - 18px);
  padding: 0.5em;
  border-radius: 0.375em;
  border: 1px solid var(--frame-border);
  background: var(--frame-bg-subtle);
  color: var(--font-color);
  box-shadow: inset 0px 0px 5px var(--theme-rgba-0-0-0-0_1);
  font-size: 0.75em;
}
.il-form-input:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

.il-suggestions {
  position: fixed;
  background: var(--frame-bg);
  border: 1px solid var(--theme-color-333333);
  border-radius: 0.375em;
  margin-top: 0;
  max-height: 10em;
  overflow-y: auto;
  z-index: 1000;
}

.il-suggestion {
  padding: 0.375em 0.5em;
  cursor: pointer;
  color: var(--font-color);
}
.il-suggestion:hover {
  background: var(--frame-bg-raised);
}

.il-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75em;
  padding: 2px 0.5em;
  border-radius: 5px;
  background: var(--theme-color-356bff);
  color: #fff;
  font-size: 0.75em;
  font-weight: 800;
  white-space: nowrap;
}
.il-pill--danger {
  background: var(--theme-color-d14343);
  cursor: pointer;
}
.il-pill--success {
  background: var(--theme-color-2ecc71);
}
.il-pill--muted {
  background: var(--frame-bg-muted);
  color: var(--font-color);
}
.il-pill--sm {
  min-width: 2em;
  padding: 1px 0.375em;
  font-size: 0.6875em;
}
.il-pill--lg {
  min-width: 3.5em;
  padding: 4px 0.75em;
  font-size: 0.8125em;
}

.il-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375em;
  padding: 0.375em 0.625em;
  background: var(--theme-color-eef3ff);
  border: 1px solid var(--theme-color-c9d6ff);
  border-radius: 999px;
  color: #1a2a4f;
  font-weight: 700;
  font-size: 0.8125em;
  min-height: 1.75em;
}

.il-chip-timer {
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.il-quick-actions {
  display: flex;
  gap: 0.5em;
  width: 100%;
  height: auto;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  margin-bottom: 0.625em;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 0;
}

.il-qa-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: var(--frame-bg-raised);
  border: 1px solid var(--frame-border);
  outline: none;
  transition: all 0.8s ease-in-out;
  box-shadow: 0px 0px 4px var(--theme-rgba-0-0-0-0_1);
  opacity: 0.8;
  height: auto;
  flex: 1 0 auto;
  padding: 0.625em 0.75em;
  border-radius: 0.375em;
  color: var(--font-color);
  font-weight: 700;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.il-qa-btn:hover {
  background-color: var(--theme-color-3a96dd);
  opacity: 1;
  box-shadow: 0 4px 12px var(--theme-rgba-0-0-0-0_15);
}
.il-qa-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.il-qa-btn--has-pill {
  justify-content: space-between;
  gap: 0.5em;
}
.il-qa-btn--stream {
  flex-direction: column;
  justify-content: center;
  gap: 0.375em;
  line-height: 1.2;
  align-items: flex-start;
  text-align: center;
}
.il-qa-btn--raid {
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 0.375em;
  line-height: 1.2;
}

.il-qa-btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5em;
  min-width: 0;
}

.il-qa-stream-title {
  font-size: 0.75em;
  font-weight: 600;
  color: var(--frame-text-soft);
  text-align: left;
  opacity: 0.85;
  word-break: break-word;
}

.il-qa-stream-category {
  font-size: 0.6875em;
  font-weight: 600;
  color: var(--frame-text-soft);
  opacity: 0.8;
  word-break: break-word;
}

.il-qa-stream-uptime {
  font-size: 0.6875em;
  font-weight: 700;
  color: var(--font-color);
  opacity: 0.85;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.il-qa-stream-uptime.is-offline {
  color: var(--frame-text-soft);
  opacity: 0.7;
}

.il-qa-raid-status {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.il-qa-btn--raid.is-raiding .il-qa-raid-status {
  display: flex;
}

.il-qa-raid-target {
  font-size: 0.75em;
  font-weight: 600;
  color: var(--font-color);
}

.il-raid-history {
  display: flex;
  flex-direction: column;
  gap: 0.375em;
  max-height: 11.25em;
  overflow: auto;
}

.il-raid-history-item {
  padding: 0.375em 0.5em;
  border-radius: 0.375em;
  background: var(--theme-color-1f2233);
  border: 1px solid var(--theme-color-2b3048);
  color: #e2e8f0;
  font-size: 0.8125em;
}

.il-raid-history-empty {
  color: var(--frame-text-soft);
  font-size: 0.75em;
  padding: 0.375em;
}

.il-options-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  width: 100%;
  max-height: 50vh;
  overflow: auto;
  align-content: flex-start;
  box-sizing: border-box;
  font-size: 0.8125em;
}
.il-options-list--full {
  max-height: none;
  overflow: visible;
  padding-right: 0.625em;
}

.il-option-btn {
  flex: 1 0 calc(50% - 8px);
}

.il-qa-btn.qa-btn.qa-btn-test-events {
  display: none !important;
  order: 999;
  justify-content: flex-end;
}

.il-cooldown-panel {
  display: flex;
  flex-direction: column;
  gap: var(--il-spacing-sm);
  padding: var(--il-spacing-md);
  background: var(--theme-color-ededed);
  border: 1px solid var(--frame-border);
  border-radius: 0.5vw;
  color: var(--font-color);
  font-size: 0.8125em;
  box-shadow: inset 0 0 4px var(--frame-shadow-soft);
  min-height: 0;
  transition: all 0.3s ease;
}
.il-cooldown-panel.is-expanded {
  background: var(--frame-bg-soft);
  box-shadow: 0 2px 8px var(--frame-shadow-soft);
}

.il-cooldown-header {
  font-weight: 700;
  font-size: 0.875em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--il-spacing-md);
  cursor: pointer;
  user-select: none;
  padding: var(--il-spacing-xs);
  border-radius: 0.3vw;
  transition: background 0.2s ease;
}

.il-cooldown-title {
  display: inline-flex;
  align-items: center;
  gap: var(--il-spacing-sm);
  font-weight: 700;
  color: var(--font-color);
}

.il-cooldown-general {
  font-weight: 600;
  color: var(--font-color);
  font-size: 12px;
}

.il-cooldown-list {
  display: flex;
  flex-direction: column;
  gap: var(--il-spacing-xs);
  margin-top: var(--il-spacing-xs);
}
.il-cooldown-panel:not(.is-expanded) .il-cooldown-list {
  display: none;
}
.il-cooldown-list:empty {
  display: none;
}

.il-cooldown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--il-spacing-sm);
  background: var(--frame-bg);
  border: 1px solid var(--frame-border);
  border-radius: 0.3vw;
  transition: all 0.2s ease;
}
.il-cooldown-row:hover {
  border-color: var(--highlight);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--highlight) 30%, transparent);
}
.il-cooldown-row.is-blinking {
  animation: ilCooldownBlink 1s ease-in-out;
}

@keyframes ilCooldownBlink {
  0% {
    border-color: var(--frame-border);
    box-shadow: none;
  }
  40%, 60% {
    border-color: var(--highlight);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--highlight) 50%, transparent), 0 0 12px color-mix(in srgb, var(--highlight) 30%, transparent);
  }
  100% {
    border-color: var(--frame-border);
    box-shadow: none;
  }
}
.il-cooldown-user {
  font-weight: 700;
  color: var(--font-color);
}

.il-cooldown-timer {
  font-family: "Inter", Arial, sans-serif;
  color: var(--message-font-color-soft);
  font-variant-numeric: tabular-nums;
  min-width: 50px;
  text-align: right;
  display: inline-block;
  font-weight: 600;
}

.il-cooldown-empty {
  color: var(--message-font-color-soft);
  font-style: italic;
  padding: var(--il-spacing-sm);
  text-align: center;
}

.il-queue-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--message-font-color-soft);
  padding: var(--il-spacing-xs) 0;
}

.il-global-timer {
  font-size: 12px;
  font-weight: 700;
  color: var(--font-color);
  padding: var(--il-spacing-xs) 0;
}

.il-ad-cooldown-info {
  margin-top: 4px;
  font-size: 0.75em;
  color: #333;
  padding-left: 4px;
  font-weight: 600;
}

.il-room-sign {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--il-spacing-sm);
  padding: var(--il-spacing-lg) var(--il-spacing-xl);
  background: color-mix(in srgb, var(--frame-bg-soft) 50%, transparent);
  border: 1px solid var(--frame-border);
  border-left: 3px solid var(--highlight);
  border-radius: var(--il-radius-md);
  backdrop-filter: blur(6px);
  box-shadow: inset 4px 0 20px -6px color-mix(in srgb, var(--highlight) 25%, transparent), 0 6px 24px color-mix(in srgb, var(--frame-bg) 50%, transparent);
}

.il-room-sign-name {
  font-weight: 800;
  font-size: 1.75em;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--font-color);
  line-height: 1;
}

.il-room-sign-officer-name {
  display: flex;
  align-items: center;
  gap: var(--il-spacing-xs);
  font-weight: 600;
  font-size: 1.8em;
  color: var(--font-color);
  letter-spacing: 0.5px;
}

.il-room-sign-pip {
  width: 2px;
  height: 40px;
  background: var(--highlight);
  box-shadow: 0 0 10px color-mix(in srgb, var(--highlight) 80%, transparent);
  flex-shrink: 0;
}

.il-room-sign-officer-rank {
  font-family: ui-monospace, monospace;
  font-size: 0.8em;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--message-font-color-soft);
  margin-top: -10px;
  margin-left: 10px;
}

.il-room-sign-desc {
  font-size: 0.6875em;
  letter-spacing: 0.3px;
  color: var(--message-font-color-soft);
  opacity: 0.6;
  margin-top: var(--il-spacing-xs);
}

.il-room-sign--panel {
  flex: 0 0 auto;
  width: 100%;
  position: relative;
  padding: var(--il-spacing-lg) 1vw;
  background: none;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
}
.il-room-sign--panel::before {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--highlight);
  opacity: 0.7;
  pointer-events: none;
  top: 0;
  left: 1vw;
  border-right: none;
  border-bottom: none;
  box-shadow: none;
}
.il-room-sign--panel .il-room-sign-name {
  position: relative;
  padding-left: 1vw;
  font-size: 2em;
  font-weight: 900;
  letter-spacing: 8px;
  background: linear-gradient(296deg, #434343 0%, color-mix(in srgb, var(--highlight) 90%, #040404) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--frame-bg) 60%, transparent));
}
.il-room-sign--panel .il-room-sign-desc {
  padding-left: 1vw;
  margin-top: -0.5vh;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--highlight);
  opacity: 0.8;
  text-shadow: 0 0 8px color-mix(in srgb, #ffffff 30%, transparent);
}

#frame[data-layout=stacked] .il-room-sign--panel {
  flex-direction: row;
  align-items: baseline;
  gap: 0.5em;
  padding-top: var(--il-spacing-sm);
  padding-bottom: var(--il-spacing-sm);
}

#frame[data-layout=stacked] .il-room-sign--panel .il-room-sign-name {
  font-size: 1em;
  letter-spacing: 1px;
}

#frame[data-layout=stacked] .il-room-sign--panel .il-room-sign-desc {
  font-size: 1em;
  letter-spacing: 1px;
  margin-top: 0;
  padding-left: 0;
}

@keyframes glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--highlight) 15%, transparent));
  }
  50% {
    filter: drop-shadow(0 0 20px color-mix(in srgb, var(--highlight) 30%, transparent));
  }
}
.il-room-sign--video {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  height: 8vh;
  gap: clamp(1px, 0.2vh, 4px);
  background: linear-gradient(to top, color-mix(in srgb, var(--frame-bg) 85%, transparent) 0%, color-mix(in srgb, var(--frame-bg) 60%, transparent) 50%, color-mix(in srgb, var(--frame-bg) 20%, transparent) 100%);
  backdrop-filter: blur(12px) saturate(180%);
  border: none;
  border-top: 1px solid color-mix(in srgb, var(--frame-border) 40%, transparent);
  border-left: none;
  border-radius: 0;
  box-shadow: 0 -8px 32px color-mix(in srgb, var(--frame-bg) 80%, transparent), inset 0 1px 0 color-mix(in srgb, var(--font-color) 10%, transparent);
}
.il-room-sign--video .il-room-sign-officer-rank {
  margin-top: -6px;
  margin-bottom: 0;
}
.il-room-sign--video .il-ticker--embedded {
  padding-top: 0;
  gap: 0;
}

.il-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  overflow: hidden;
  z-index: 1000;
  background: color-mix(in srgb, var(--frame-bg) 90%, transparent);
  border-top: 1px solid var(--frame-border);
  backdrop-filter: blur(8px) saturate(150%);
  box-shadow: 0 -4px 16px color-mix(in srgb, var(--frame-bg) 60%, transparent);
}

.il-ticker--embedded {
  position: relative;
  height: auto;
  background: none;
  border: none;
  backdrop-filter: none;
  box-shadow: none;
  padding: var(--il-spacing-xs) 0 0;
  display: block;
}

.il-ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  padding-left: 100%;
}

.il-ticker--embedded .il-ticker-track {
  padding-left: 0;
  animation: ticker-scroll 40s linear infinite;
  height: auto;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
.il-ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--il-spacing-xl);
  font-size: 0.6875em;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--font-color);
}
.il-ticker-item::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--highlight);
  margin-right: var(--il-spacing-md);
  box-shadow: 0 0 8px color-mix(in srgb, var(--highlight) 70%, transparent);
}

.il-ticker--embedded .il-ticker-item {
  font-size: 0.7em;
  padding: 0 var(--il-spacing-md);
  color: var(--message-font-color-soft);
  opacity: 0.9;
}
.il-ticker--embedded .il-ticker-item::before {
  width: 3px;
  height: 3px;
  margin-right: var(--il-spacing-sm);
}

.il-answer-mode-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--highlight);
  color: var(--highlight) !important;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
  background: color-mix(in srgb, var(--frame-bg) 60%, transparent);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}
.il-answer-mode-btn:hover, .il-answer-mode-btn.is-active {
  background: color-mix(in srgb, var(--highlight) 20%, transparent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--highlight) 50%, transparent);
}

.il-video-card.il-answer-mode-active {
  border-color: var(--highlight);
  animation: il-answer-border-pulse 2s ease-in-out infinite;
}

@keyframes il-answer-border-pulse {
  0%, 100% {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--highlight) 20%, transparent);
  }
  50% {
    box-shadow: 0 0 12px 2px color-mix(in srgb, var(--highlight) 40%, transparent);
  }
}
.il-video-card .il-room-sign--video {
  transition: height 0.3s ease;
}

.il-video-card.il-answer-mode-active .il-room-sign--video {
  height: 50%;
}

.il-answer-text {
  font-size: 0.85em;
  color: var(--font-color);
  opacity: 0;
  transition: opacity 0.15s ease;
  padding: 0 var(--il-spacing-sm);
  margin-top: var(--il-spacing-sm);
  line-height: 1.4;
}
.il-answer-text.visible {
  opacity: 1;
}
.il-answer-text a {
  color: var(--highlight);
  text-decoration: underline;
}

#accesspanel[data-il-home-nav=true] {
  cursor: pointer;
}
#accesspanel[data-il-home-nav=true]:focus-visible {
  outline: none;
}
#accesspanel[data-il-home-nav=true]:is(:focus-visible, :focus-within) {
  border-color: color-mix(in srgb, var(--highlight) 45%, var(--frame-border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--highlight) 30%, transparent), 0px 0px 25px var(--frame-shadow-soft);
}

.company {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0.625em;
  gap: 0.5em;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.company .companyName {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.125em;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: 1.05vw;
}
.company .companyName h3 {
  margin: 0;
  font-size: 0.875em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.company .companyName .tier-badge {
  font-size: 0.625em;
  color: var(--message-font-color-soft, #888);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  line-height: 1.2;
}
.company .companyName .accesspanel-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.company .companyName .accesspanel-back-hint {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 0;
  margin-left: 0;
  padding: 0;
  border: 0 solid transparent;
  border-radius: 0;
  background: none;
  color: var(--highlight);
  font-size: 0.625em;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  opacity: 0;
  flex: 0 1 auto;
  transform: translateX(-0.2em);
  transition: opacity 0.18s ease, max-width 0.18s ease, margin-left 0.18s ease, padding 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

body.streaming-view #accesspanel[data-il-home-nav=true]:is(:focus-visible, :focus-within) .accesspanel-back-hint {
  opacity: 1;
  max-width: 9.5em;
  margin-left: 0.45em;
  padding: 0.05em 0.35em;
  border-width: 1px;
  border-style: solid;
  border-color: var(--frame-border);
  background-color: var(--frame-bg-muted);
  transform: translateX(0);
}

body.streaming-view #accesspanel[data-il-home-nav=true]:hover .accesspanel-back-hint {
  opacity: 1;
  max-width: 9.5em;
  margin-left: 0.45em;
  padding: 0.05em 0.35em;
  border-width: 1px;
  border-style: solid;
  border-color: var(--frame-border);
  background-color: var(--frame-bg-muted);
  transform: translateX(0);
}

body.chatpanel-view #accesspanel .tier-badge {
  display: none;
}

body.chatpanel-view #accesspanel[data-il-home-nav=true] .accesspanel-back-hint {
  opacity: 1;
  max-width: 9.5em;
  margin-left: 0.45em;
  padding: 0.05em 0.35em;
  border-width: 1px;
  border-style: solid;
  border-color: var(--frame-border);
  background-color: var(--frame-bg-muted);
  transform: translateX(0);
  margin-left: 0;
}

logo {
  display: flex;
  border-radius: 100%;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
logo img {
  height: 2.5vw;
  width: auto;
  max-width: 100%;
  display: flex;
}

#submenu ul {
  display: flex;
  gap: 0.5em;
  width: 100%;
  height: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.625em;
}
#submenu ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--frame-bg-soft);
  border: 1px solid var(--frame-border);
  outline: none;
  transition: all 0.8s ease-in-out;
  box-shadow: 0px 0px 4px var(--frame-shadow-soft);
  opacity: 0.8;
  height: auto;
  width: fit-content;
  flex: 1 0 48%;
}
#submenu ul li p {
  display: flex;
  flex-wrap: wrap;
  white-space: pre;
  cursor: default;
}
#submenu ul li:hover {
  background-color: var(--frame-bg);
  -webkit-transition: all 0.14s ease-in-out;
  transition: all 0.14s ease-in-out;
  box-shadow: 0px 0px 2px var(--frame-shadow-hover);
  scale: 1.02;
  opacity: 1;
}
#submenu ul li p {
  padding: 0.625em;
}

#pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  /* fixed width */
  padding: 0.3125em;
  border: 1px solid var(--frame-border);
  background-color: var(--frame-bg-subtle);
  box-sizing: border-box;
}

.toolbarElement.Page {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.3125em;
}

.pagination {
  flex: 1 1 0%;
  overflow-x: auto;
  scrollbar-width: none;
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  gap: 0.625em;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Buttons on edges */
#scrollLeftBtn,
#scrollRightBtn {
  flex: 0 0 auto;
  height: 2.375em;
  font-size: 0.875em;
  background-color: var(--frame-bg-muted);
  border: 1px solid var(--frame-border);
  padding: 0 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#scrollLeftBtn:hover {
  background-color: var(--frame-bg);
  transition: all 0.2s ease-in-out;
}

#scrollRightBtn:hover {
  background-color: var(--frame-bg);
  transition: all 0.2s ease-in-out;
}

/* Scrollable pagination container */
.pagination-container {
  display: flex;
  gap: 0.3125em;
  overflow-x: auto;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
  flex: 1;
}

.pagination-container::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari/Edge */
}

/* Radio button styling */
.pageBar {
  flex: 0 0 auto;
  height: 100%;
  margin-bottom: 0;
}

.pageBar input[type=radio] {
  display: none;
}

.pageBar span {
  display: inline-block;
  width: 1.25em;
  height: 2.375em;
  background-color: var(--frame-bg-light);
  border: 1px solid var(--frame-border);
  position: relative;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.pageBar span:hover {
  background-color: var(--frame-bg);
}

.pageBar input[type=radio]:checked + span {
  background-color: var(--theme-color-9e9e9e);
  box-shadow: inset 0px 0px 5px var(--frame-shadow-soft);
  transition: all 1s;
}

.pageBar input[type=radio]:checked + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5em;
  height: 1.75em;
  background-color: var(--frame-bg-light);
  transform: translate(-50%, -50%);
  border: 1px solid var(--frame-border);
  transition: all 0.2s;
}

.dummyRadio {
  pointer-events: none;
  opacity: 0;
}

.companyContact {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  gap: 0.5em;
}

.contact {
  margin-left: auto;
  margin-right: 1.5625em;
  opacity: 0.4;
}

.menuBrick {
  height: 3.125em;
  width: 100%;
  background-color: transparent;
  margin-left: 3.125em;
}

.brickButton {
  width: 100%;
  height: 100%;
  background-color: var(--theme-color-fafafa);
  border-radius: 1.5625em;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
}

.brickIndicator {
  border-radius: 100%;
  width: 2.5em;
  height: 2.5em;
  min-width: 2.5em;
  background-color: var(--theme-color-fafafa);
  border: 1px solid var(--theme-color-e2e2e2);
  margin-left: 0.625em;
  margin-right: 0.625em;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: auto;
}

.inputSearch {
  border: none;
  background-color: var(--theme-color-ffffff);
  height: 1.875em;
  width: 95%;
  display: flex;
  border-top-right-radius: 1.5625em;
  border-bottom-right-radius: 1.5625em;
  padding: 0.5em;
}

.menuSection {
  padding: 1.875em 1.25em 1.25em 1.25em;
  display: flex;
  flex-direction: column;
  gap: 1.5625em;
  border: 1px solid var(--theme-color-d4d4d4);
  height: 25vh;
  background-color: var(--theme-color-e2e2e2);
}

.btnContainer {
  pointer-events: all;
  width: 100%;
  height: min-content;
  border-top: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-right: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-bottom: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-left: 1px solid var(--theme-rgba-59-59-59-0_4);
  box-shadow: 0px 4px 4px var(--theme-rgba-0-0-0-0_2);
}

.btnContainer .button {
  padding: 1em;
  font-size: 0.875em;
  text-decoration: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 0.2em;
  width: 100%;
  height: 2.5em;
  overflow: hidden;
  min-width: 0;
  color: rgb(0, 0, 0);
  font-weight: 600;
  text-transform: uppercase;
  background-color: var(--menu-button-bg);
  position: relative;
  top: -10px;
  border-left: solid 1px var(--menu-button-border);
  border-right: solid 1px var(--menu-button-border);
  border-top: solid 1px var(--menu-button-border);
  border-bottom: solid 1px var(--menu-button-border-bottom);
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-shadow: 0px 10px 0px 0px var(--menu-button-shadow-soft);
  -webkit-transition: 0.14s ease-in-out;
  transition: 0.14s ease-in-out;
}

.btnContainer .button:hover {
  border-left: solid 1px var(--menu-button-border);
  border-right: solid 1px var(--menu-button-border);
  border-top: solid 1px var(--menu-button-border);
  border-bottom: solid 1px var(--menu-button-border-bottom);
  color: #2e2e2e;
  cursor: pointer;
  -webkit-transition: 0.14s ease-in-out;
  transition: 0.14s ease-in-out;
  background-color: var(--theme-color-ffffff);
}

.btnContainer:has(.button.active) {
  border-top: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-right: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-bottom: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-left: 1px solid var(--theme-rgba-59-59-59-0_4);
  box-shadow: 0px 4px 4px var(--theme-rgba-0-0-0-0);
}

.btnContainer:has(.button.idle) {
  border-top: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-right: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-bottom: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-left: 1px solid var(--theme-rgba-59-59-59-0_4);
  box-shadow: 0px 4px 4px var(--theme-rgba-0-0-0-0);
}

.btnContainer .button.active {
  top: 0px;
  box-shadow: 0px 0px 10px 0px var(--theme-rgba-0-0-0-0_1);
  background-color: var(--theme-color-ffffff);
  -webkit-transition: 0.14s ease-in-out;
  transition: 0.14s ease-in-out;
  border: solid 0px transparent;
  color: #fafafa;
  background-color: var(--theme-color-3a96dd);
}

.btnContainer .button.idle {
  top: 0px;
  box-shadow: 0px 0px 10px 0px var(--theme-rgba-0-0-0-0_1);
  border: solid 0px transparent;
  color: rgb(0, 0, 0);
  background-color: var(--menu-button-bg);
  -webkit-transition: 0.14s ease-in-out;
  transition: 0.14s ease-in-out;
}

.btnContainer .button:hover {
  background-color: var(--theme-color-3a96dd);
}

.btnContainer .button.active:hover {
  background-color: var(--theme-color-3a96dd);
}

.btnContainer .button.idle:hover {
  background-color: var(--theme-color-3a96dd);
}

.btnContainer.is-disabled {
  border-top: 1px solid var(--theme-rgba-0-0-0-0_1);
  border-right: 1px solid var(--theme-rgba-0-0-0-0_1);
  border-bottom: 1px solid var(--theme-rgba-0-0-0-0_1);
  border-left: 1px solid var(--theme-rgba-59-59-59-0_1);
  box-shadow: none;
}

.btnContainer .button.is-disabled {
  top: 0px;
  box-shadow: none;
  background-color: var(--theme-color-dddddd);
  border: solid 0px transparent;
  color: #6b6b6b;
  cursor: not-allowed;
  pointer-events: none;
}

.btnContainer .button.is-disabled:hover {
  background-color: var(--theme-color-dddddd);
}

.btnContainer .enabled {
  box-shadow: none !important;
  -webkit-box-shadow: none;
  top: 1px;
  border: none;
  color: var(--whiteLight);
  background-color: var(--green);
  -webkit-transition: 0.14s ease-in-out;
  transition: 0.14s ease-in-out;
}

.btnContainer .active {
  color: var(--whiteLight);
  text-transform: uppercase;
  background-color: var(--green);
  top: 0px;
  -webkit-box-shadow: 0px 4px 0px 5px var(--theme-rgba-58-138-65-0_5);
  box-shadow: 0px 0px 0px 0px var(--theme-rgba-58-138-65-0);
  background-color: var(--green);
  -webkit-transition: 0.14s ease-in-out;
  transition: 0.14s ease-in-out;
}

.loginSection {
  pointer-events: all;
  width: 100%;
  min-height: 6.25em;
  border-top-right-radius: 3vh;
  border: 1px solid var(--theme-color-d4d4d4);
  background-color: var(--theme-color-e2e2e2);
  margin-top: 1.25em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25em;
  flex-direction: row;
}

.inputContainer {
  display: flex;
  flex-direction: column;
  display: flex;
}

.loginInput {
  display: flex;
  height: 1.875em;
  width: 100%;
  border: none;
  margin-top: 0.3125em;
  border: 1px solid var(--theme-color-d4d4d4);
  /* border-bottom: 1px solid #d4d4d4; */
  background-color: var(--theme-color-f5f5f5);
  padding: 0.3125em 0 0.3125em 0.5em;
  box-shadow: inset 0px 0px 5px var(--theme-rgba-0-0-0-0_1);
}

.broadcaster-settings {
  display: flex;
  flex-direction: column;
  gap: 0.625em;
  padding: 0.625em;
  border: 1px solid var(--theme-color-d4d4d4);
  background-color: var(--theme-color-ededed);
}

.broadcaster-settings-title {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75em;
  color: #4a4a4a;
}

.broadcaster-settings-help {
  font-size: 0.75em;
  color: #6b6b6b;
}

.broadcaster-settings-actions {
  display: flex;
  gap: 0.5em;
}

.broadcaster-settings-btn {
  flex: 1 0;
  border: 1px solid var(--theme-color-d4d4d4);
  background-color: var(--theme-color-ededed);
  padding: 0.5em 0.625em;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
}

.broadcaster-settings-btn:hover {
  background-color: var(--theme-color-ffffff);
}

.broadcaster-settings-status {
  min-height: 1em;
  font-size: 0.75em;
  color: #6b6b6b;
}

.il-footer-link {
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  width: 100%;
  min-width: fit-content;
  min-height: 1.75em;
  padding: 0.375em 1em;
  border: 1px solid var(--frame-border);
  border-radius: 0px;
  background: linear-gradient(180deg, var(--frame-bg-soft) 0%, var(--frame-bg-subtle) 100%);
  color: var(--font-color);
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.il-footer-link:hover {
  color: var(--highlight);
  border-color: var(--highlight);
  background: linear-gradient(180deg, var(--frame-bg) 0%, var(--frame-bg-soft) 100%);
  box-shadow: 0 0 10px var(--frame-shadow-hover);
}
.il-footer-link:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

.loginButton {
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  height: 90%;
  border: 1px solid var(--theme-color-d4d4d4);
  background-color: var(--theme-color-ededed);
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  flex: 1 0;
  font-size: 12px;
}
.loginButton:hover {
  background-color: var(--theme-color-ffffff);
}

.loginBlocker {
  position: absolute;
  width: var(--after-width);
  height: var(--after-height);
  z-index: 8000;
  background-image: url("/img/heroImage2.jpg");
  background-repeat: no-repeat;
  background-size: contain;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.cartContainer {
  width: 3.125em;
  height: 3.125em;
  /* background-color: #e2e2e2; */
  display: flex;
  justify-content: center;
  align-items: center;
  /* border: 1px solid #d4d4d4; */
  cursor: pointer;
}

.cartIcon {
  height: 1.875em;
  width: 1.875em;
}

.cartItem {
  width: 3.125em;
  height: 3.125em;
  background-color: var(--theme-color-fafafa);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 1px solid var(--theme-color-d4d4d4);
}

.loginPanel {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
  width: 100%;
  height: calc(60% - 10px);
  padding: 0 10px 0 10px;
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

label {
  font-size: 0.875em;
  margin-bottom: 0.3125em;
  display: flex;
}

.input-field {
  display: flex;
  background-color: transparent;
  width: calc(100% - 20px);
  height: 3.4vh;
  font-size: 0.875em;
  padding: 0 0 0 1.25em;
  border-top: 1px solid var(--theme-color-cccccc);
  border-right: 1px solid var(--theme-color-cccccc);
  border-bottom: 2px solid var(--theme-color-cccccc);
  border-left: 1px solid var(--theme-color-cccccc);
  outline: none;
  transition: all 0.8s ease-in-out;
  margin-bottom: 5px;
  box-shadow: inset 0px 0px 20px var(--theme-rgba-0-0-0-0_1);
}

.input-field:focus {
  background-color: var(--theme-color-ededed);
  border-top: 1px solid var(--theme-color-ffffff);
  border-right: 1px solid var(--theme-color-ffffff);
  border-bottom: 2px solid var(--theme-rgba-76-175-80-0_8);
  border-left: 1px solid var(--theme-color-ffffff);
  box-shadow: 0px 0px 28px var(--theme-rgba-0-0-0-0_1);
  transition: all 0.4s ease-in-out;
}

.input-field::placeholder {
  color: #1e1e1e;
}

.mainImage {
  cursor: pointer;
}

.flexRow {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.productContainer {
  display: flex;
  flex-direction: row;
  height: fit-content;
  align-self: end;
  margin-bottom: 9vh;
  margin-left: 1vw;
  opacity: 1;
  transition: all 0.5s ease-in-out;
}

.productOptions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 10px;
}

.optionItem {
  width: 100px;
  height: 100px;
  border: 1px solid var(--theme-color-1e1e1e);
  border-radius: 1rem;
  background-color: var(--theme-color-fafafa);
}

.optionImg {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  object-fit: cover;
  transition: all 0.5s ease-in-out;
}

.categoryContainer {
  display: flex;
  flex-direction: row;
  height: fit-content;
  align-self: end;
  margin-bottom: 20px;
  opacity: 0;
}

.categoryCard {
  display: flex;
  flex-direction: column;
  height: 500px;
  width: 22vw;
  max-width: 60vw;
  background: white;
  border-radius: 1rem;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  border: 1px solid var(--theme-rgba-30-30-30-0_533);
  box-shadow: 20px 20px 15px var(--theme-rgba-0-0-0-0_25);
  overflow: hidden;
  transition: transform 0.8s ease-in-out;
  scroll-snap-type: x mandatory;
  z-index: 20;
}

/* Product Card */
.productCard {
  display: flex;
  flex-direction: column;
  height: fit-content;
  width: 350px;
  max-width: 350px;
  background: white;
  border-radius: 1rem;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  border: 1px solid var(--theme-rgba-30-30-30-0_533);
  box-shadow: 20px 20px 15px var(--theme-rgba-0-0-0-0_25);
  overflow: hidden;
  transition: transform 0.8s ease-in-out;
  scroll-snap-type: x mandatory;
  z-index: 20;
}

.productCard:hover {
  /* transform: translateY(-4px); */
}

/* Header with responsive image */
.cardHeader img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: all 0.2s ease-in-out;
}

/* Body content */
.cardBody {
  padding: 0 1.5rem 0 1.5rem;
  display: flex;
  flex-direction: column;
}

.cardContent {
  display: flex;
  flex-direction: column;
}

.cardRating {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  justify-content: center;
}

.rating {
  width: 25px;
  height: 25px;
}

.productName {
  font-size: 1.5rem;
  margin: 1rem 0rem 0.5rem 0rem;
  color: #222;
}

.productClaim {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.productDescription {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

/* Footer */
.cardFooter {
  padding: 1rem 0 1rem 0;
  border-top: 1px solid var(--theme-color-eeeeee);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.priceStock {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.price {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111;
}

.stock {
  font-size: 0.8rem;
  /* padding: 0.25rem 0.5rem; */
  border-radius: 4px;
}

.inStock {
  /* background-color: #e6f4ea; */
  color: #2a7c3b;
}

.outOfStock {
  /* background-color: #fdecea; */
  color: #a94442;
}

/* Buy Button */
.cartButton {
  display: flex;
  padding: 0.75rem;
  background-color: var(--theme-color-ededed);
  color: #000000;
  font-size: 1rem;
  border: 1px solid var(--theme-color-ededed);
  border-left: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom-right-radius: 25px;
  border-top-right-radius: 25px;
}

.cartButton:hover {
  background-color: var(--theme-color-3fffaf);
}

.buyButton {
  display: flex;
  padding: 0.75rem;
  background-color: var(--theme-color-ededed);
  color: #000000;
  font-size: 1rem;
  border: 1px solid var(--theme-color-e2e2e2);
  border-right: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom-left-radius: 25px;
  border-top-left-radius: 25px;
}

.buyButton:hover {
  background-color: var(--theme-color-155cc1);
}

.visible {
  opacity: 1;
  transition: all 1s ease-in-out;
}

.mutaded {
  /* width: 400px;
  height: 600px; */
  transition: all 1s ease-in-out;
}

unterkante {
  height: 100%;
  width: 25vw;
  position: relative;
  right: 0;
  /* background-color: red; */
}

.is-centered {
  transform: translateY(-100px);
  transition: transform 0.8s ease-in-out;
}

.gallery-container {
  width: min(40vw, 100% - 2em);
  aspect-ratio: 8/5;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  z-index: 10;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
}
.gallery-container .top-row,
.gallery-container .bottom-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  width: 100%;
}
.gallery-container .top-row {
  height: 60%;
}
.gallery-container .top-row .big {
  flex: 2;
  aspect-ratio: 1/1;
}
.gallery-container .top-row .medium {
  flex: 1;
  aspect-ratio: 1/1;
}
.gallery-container .bottom-row {
  height: 40%;
}
.gallery-container .bottom-row .small {
  flex: 1;
  aspect-ratio: 1/1;
  min-width: 0;
}
.gallery-container .gallery-item {
  background-color: var(--theme-color-ffffff);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--theme-rgba-30-30-30-0_533);
  box-shadow: 0px 0px 15px var(--theme-rgba-0-0-0-0_25);
}
.gallery-container .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-container .gallery-item .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 35%;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}
.gallery-container .gallery-item .overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--theme-rgba-255-255-255-1), transparent);
  z-index: 0;
}
.gallery-container .gallery-item .overlay .text-content {
  z-index: 1;
  width: 100%;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #2e2e2e;
  font-size: 0.9rem;
}
.gallery-container .gallery-item .overlay .name {
  font-weight: 600;
}
.gallery-container .gallery-item .overlay .price {
  font-weight: 500;
}
.gallery-container .gallery-item .new-label {
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  color: #46b3ff;
  font-weight: bold;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
  text-shadow: 1px 1px 1px var(--theme-color-1c42603f);
}
.gallery-container .gallery-item.isNew .new-label {
  opacity: 1;
}

.gallery-item.big {
  flex: 2;
}

.gallery-item.medium {
  flex: 1.5;
}

.gallery-item.small {
  flex: 1;
}

.isNew .new-label {
  padding: 0.2em;
}

.product-grid-wrapper {
  padding: 20px;
}

.product-grid {
  display: flex;
  min-width: max-content;
  height: 100%;
}

.product-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 250px;
  /* fixed width for consistent columns */
  flex-shrink: 0;
  /* prevent columns from shrinking */
  justify-content: center;
  align-items: center;
}

.product-card {
  background: var(--theme-color-ffffff);
  border: 1px solid var(--theme-color-cccccc);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 2px 6px var(--theme-rgba-0-0-0-0_1);
  width: 200px;
  height: 165.078px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
}

.product-card img {
  max-height: 80px; /* or tweak as needed */
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 8px;
  display: block;
  border-radius: 4px;
}

.product-card h3 {
  font-size: 1.2em;
  margin: 10px 0 5px;
}

.product-card p {
  font-size: 0.9em;
  color: #555;
}

#modalLogin {
  background: white;
  padding: 2rem;
  box-shadow: 0 10px 25px var(--theme-rgba-0-0-0-0_3);
  border-radius: 10px;
  width: 300px;
  position: relative;
  z-index: 9999;
}

#modalOverlay {
  position: fixed;
  border-top-left-radius: 2vw;
  width: var(--after-width);
  height: var(--after-height);
  background-color: var(--theme-rgba-0-0-0-0_4);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.closebtn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: var(--theme-color-e2e2e2);
  border-radius: 100%;
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.5;
  border: 1px solid var(--theme-rgba-30-30-30-0_247059);
  transition: background-color 0.2s ease;
}

.closebtn:hover {
  background-color: var(--theme-color-ffffff);
  transition: background-color 0.2s ease;
}

.usernameInput {
  width: auto;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--theme-rgba-30-30-30-0_247059);
}

.passwordInput {
  width: auto;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--theme-rgba-30-30-30-0_247059);
}

.buttonLogin {
  width: 100%;
  padding: 0.5rem;
  background-color: var(--theme-color-3a96dd);
  color: #2e2e2e;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.buttonLogin:hover {
  color: white;
  background-color: var(--theme-color-46a9f5);
  transition: background-color 0.2s ease;
}

.statusMessage {
  margin-top: 0.5rem;
  color: red;
  font-size: 0.9rem;
  display: none;
}

.dashboard {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  height: 100%;
}
.dashboard .panel {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 200px;
  background-color: var(--theme-color-fafafa);
  border: 1px solid var(--theme-rgba-30-30-30-0_533);
  box-shadow: 0px 0px 15px var(--theme-rgba-0-0-0-0_25);
}

.alignCenterContainer .productContainer {
  align-self: flex-start !important;
}

.editorWrapper {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  width: 100%;
}

.editorPanel {
  flex: 1;
  width: auto;
  background-color: var(--theme-color-fafafa);
  padding: 20px;
  border-radius: 1em;
  border: 1px solid var(--theme-rgba-30-30-30-0_533);
  box-shadow: 0px 0px 40px var(--theme-rgba-0-0-0-0_4);
  font-family: sans-serif;
}

.editorPanel label {
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

.editorPanel input[type=text],
.editorPanel input[type=file],
.editorPanel textarea {
  width: calc(100% - 20px);
  margin-top: 5px;
  padding: 8px;
  border: 1px solid var(--theme-color-d4d4d4);
  border-radius: 6px;
  background-color: var(--theme-color-e2e2e2);
}

.editorPanel .saveButton {
  margin-top: 20px;
  padding: 10px 20px;
  background: var(--theme-color-007bff);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.productContainer {
  max-width: 600px;
}

.optionImgPreview {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 5px;
  border: 1px solid var(--theme-color-cccccc);
}

.savebtncontainer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

/* Form layout base */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formRow {
  display: flex;
  gap: 2rem;
  flex-direction: row;
}

.textInputGroup,
.otherInputGroup {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Gender section */
.genderGroup {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.genderGroup label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--theme-color-f0f0f0);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-weight: 500;
  font-size: 1rem;
}

.genderGroup input[type=radio] {
  accent-color: #4f46e5;
}

.genderGroup label:hover {
  background-color: var(--theme-color-e0e0e0);
}

/* Styled selects */
select {
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--theme-color-cccccc);
  background-color: var(--theme-color-ffffff);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

select:focus {
  border-color: var(--theme-color-4f46e5);
  box-shadow: 0 0 0 2px var(--theme-rgba-79-70-229-0_3);
}

select[multiple] {
  min-height: 100px;
}

.detailContainer {
  position: fixed;
  width: min(72%, 100% - 2em);
  height: min(85%, 100% - 2em);
  background-color: var(--theme-color-fafafa);
  display: flex;
  z-index: 50;
  opacity: 1;
  display: flex;
  flex-direction: column;
  padding: 1vh 2vw 1vh 2vw;
  gap: 10px;
}

.headlineContainerDetail {
  display: flex;
  flex-direction: column;
  height: 20vh;
  width: 100%;
  font-size: 1.5em;
  justify-self: center;
  padding-left: 6vw;
}

.contentContainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 20px;
}

.contentContainer h2 {
  margin-bottom: 0;
}

.cardHeaderDetail {
  display: flex;
  flex-direction: column;
  flex: 1 1 min(300px, 100%);
  gap: 20px;
}

.detailImg {
  border: px solid var(--theme-color-e2e2e2);
  border-radius: 1rem;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: flex;
  transition: all 0.2s ease-in-out;
  box-shadow: 0px 10px 20px var(--theme-rgba-0-0-0-0_2);
}

.productOptionsDetail {
  /* padding: 0 1.5rem 0 1.5rem; */
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
  justify-content: space-between;
}

.cardBodyDetail {
  display: flex;
  flex-direction: column;
  flex: 1 1 min(200px, 100%);
}

.productDescription.readText {
  border-top: 1px solid var(--theme-color-e2e2e2);
  line-height: 1.8;
  padding: 5px 0 5px 0;
  font-weight: 400;
  /* color: #1e1e1e; */
}

.optionItemDetail {
  width: 100px;
  height: 100px;
  border: 1px solid var(--theme-color-1e1e1e);
  border-radius: 1rem;
  background-color: var(--theme-color-fafafa);
}

.optionImgDetail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease-in-out;
  border-radius: 1rem;
}

.detailCloseContainer {
  position: relative;
  top: 30px;
  margin-left: auto;
  background-color: var(--theme-color-e2e2e2);
  border-radius: 100%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.5;
  border: 1px solid var(--theme-color-1e1e1e3f);
}

.detailCloseContainer .modalClose {
  top: 8px !important;
  right: 11px !important;
  scale: 1 !important;
  border: none;
  background-color: transparent;
}

.toolbarElement {
  display: flex;
  align-items: center;
  /* height: 100%; */
  height: auto;
  justify-content: center;
}

.toolbarElement.Text {
  order: 2;
  margin-right: 2vw;
  margin-left: auto !important;
}

#toolbar button {
  height: 40px;
  font-size: 0.875em;
  background-color: var(--frame-bg-raised);
  border: 1px solid var(--theme-color-afafaf);
  padding: 0 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

#toolbar button:first-child {
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
}

#toolbar button:last-child {
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
}

#toolbar button:hover {
  background-color: var(--theme-color-ffffff);
}

#toolbar button:active {
  transform: scale(0.98);
}

#add-toolbar {
  display: flex;
  gap: 1rem;
  padding: 0.5rem;
  background: var(--theme-color-f5f5f5);
  font-family: system-ui, sans-serif;
}

.add-button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--theme-color-888888);
  background: white;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.9rem;
}

.add-button:focus {
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}

/* Progress bar container */
.add-progress-wrapper {
  margin-right: 5px;
  margin-left: 5px;
  position: relative;
  flex: 1;
  min-width: 120px;
  height: 38px;
  background: var(--theme-color-e2e2e2);
  overflow: hidden;
  border: 1px solid var(--theme-color-afafaf);
  box-shadow: inset 0px 0px 5px var(--theme-rgba-0-0-0-0_1);
}

.add-progress-inner {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--theme-color-75bef8) 0%, var(--theme-color-3a96dd) 100%);
  transition: width 0.3s ease;
}

.add-progress-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7em;
  font-weight: 600;
  color: #1f2d3a;
  pointer-events: none;
  user-select: none;
}

/* radio */
.radio-container {
  display: flex;
  gap: 25px;
  font-family: sans-serif;
  justify-content: center;
}

.radio-option {
  flex: 0 0 auto;
  text-align: center;
  cursor: pointer;
  user-select: none;
  position: relative;
  margin-bottom: 0;
}

.radio-option input[type=radio] {
  display: none;
}

.radio-option span {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-color: var(--theme-color-f0f0f0);
  border: 1px solid var(--theme-color-afafaf);
  border-radius: 50%;
  position: relative;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
}

.radio-option span:hover {
  background-color: var(--theme-color-ffffff);
  transition: background-color 0.2s ease;
}

.radio-option input[type=radio]:checked + span {
  background-color: var(--theme-color-3a96dd);
  box-shadow: inset 0px 0px 5px var(--theme-rgba-0-0-0-0_1);
  font-weight: bold;
}

/* Checked state with inner white circle */
.radio-option input[type=radio]:checked + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  background-color: var(--theme-color-f0f0f0);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--theme-color-afafaf);
}

.video-pagination-toolbar {
  order: 1;
  margin-left: 2vw;
  padding: 0 1rem 0 1rem;
  height: 40px;
  background-color: var(--theme-color-cccccc);
  align-items: center;
  justify-content: center;
  display: flex;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  border: 1px solid var(--theme-color-afafaf);
  gap: 10px;
  box-shadow: inset 0px 0px 5px var(--theme-rgba-0-0-0-0_1);
  color: #828282;
}

.example {
  background-color: transparent;
  pointer-events: all;
  scroll-snap-align: start;
  display: flex;
  height: 100%;
  flex: 0 0 100%;
  flex-direction: row;
  flex-wrap: wrap;
}

.example .image {
  flex-direction: column;
  gap: 1.5625em;
  padding: 1.25em;
  display: flex;
  height: auto;
  flex: 1 1 min(600px, 100%);
  justify-content: center;
  align-items: center;
}

.example .image video,
.example .image img {
  border: 1px solid var(--frame-border);
  border-bottom: 1px solid var(--frame-bg);
  border-radius: 25px;
  border-right: 1px solid var(--frame-bg);
  box-shadow: 5px 0px 15px var(--frame-shadow-strong);
  width: 100%;
  display: flex;
  background-color: var(--frame-bg-muted);
}

.headlineContainer {
  flex: 1 1 min(300px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  border-left: 2px solid var(--frame-border);
  background: color-mix(in srgb, var(--frame-bg) 55%, transparent);
}

.headlineContainer.text .headline {
  display: flex;
  text-transform: uppercase;
  color: var(--highlight);
  font-weight: 800;
  font-size: 1.3em;
  padding-bottom: 4px;
}

.headlineContainer.text .subline {
  display: flex;
  font-size: 1.2em;
  font-weight: 550;
  color: var(--message-font-color-soft);
}

.exampleDescription {
  display: flex;
  flex-direction: column;
  text-align: justify;
  color: var(--font-color);
  font-size: 1.1em;
  margin-top: 15px;
  line-height: 1.4;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  height: 100%;
  padding-left: 2vw;
  padding-right: 2vw;
}

.project-title {
  font-size: 3vh;
}

.project-subtitle {
  font-size: 2.2vh;
}

.project-description-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  overflow: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.project-description-text::-webkit-scrollbar {
  display: none;
}

.description-inner {
  word-break: break-word;
  white-space: normal;
  height: 100%;
  font-size: 1.1em;
  line-height: 1.3em;
}

.il-detail-overlay {
  transition: opacity 0.3s ease;
  opacity: 0;
  padding: 0;
  background: var(--frame-bg);
  overflow-y: auto;
}
.il-detail-overlay.is-visible {
  opacity: 1;
}
.il-detail-overlay .il-detail-modal {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  border-radius: 0;
  border: none;
  padding: 0;
  gap: 0;
  position: relative;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.il-detail-overlay .il-detail-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  display: flex;
  justify-content: center;
  background: var(--frame-bg);
  padding: 30px 0 16px 0;
}
.il-detail-overlay .il-detail-header .il-detail-header-content {
  width: 90%;
  max-width: 900px;
}
.il-detail-overlay .il-detail-header .details-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--font-color);
  margin-bottom: 4px;
}
.il-detail-overlay .il-detail-header .details-subtitle {
  font-size: 1.1em;
  color: var(--message-font-color-soft);
}
.il-detail-overlay .il-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 50px;
  height: 50px;
  border-radius: 100%;
  background-color: var(--frame-bg-muted);
  border: 1px solid var(--frame-border);
  opacity: 0.5;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.il-detail-overlay .il-modal-close:hover {
  opacity: 1;
}
.il-detail-overlay .il-modal-body {
  width: 100%;
  padding-bottom: 30px;
  display: flex;
  justify-content: center;
}
.il-detail-overlay .il-modal-body .details-body {
  width: 90%;
  max-width: 900px;
  line-height: 1.6;
  color: var(--font-color);
}

.custom-video-container {
  background-color: var(--frame-bg-muted);
}

.media-zoom-overlay {
  background-color: color-mix(in srgb, var(--frame-bg) 85%, transparent);
}

body:not(.website-mode) #frame[data-tier=compact] .example .image,
body:not(.website-mode) #frame[data-tier=minimal] .example .image {
  flex: 1 1 55%;
  padding: 0;
}
body:not(.website-mode) #frame[data-tier=compact] .example .image video, body:not(.website-mode) #frame[data-tier=compact] .example .image img,
body:not(.website-mode) #frame[data-tier=minimal] .example .image video,
body:not(.website-mode) #frame[data-tier=minimal] .example .image img {
  border-radius: 0;
}
body:not(.website-mode) #frame[data-tier=compact] .example .headlineContainer,
body:not(.website-mode) #frame[data-tier=minimal] .example .headlineContainer {
  flex: 1 1 40%;
}
body:not(.website-mode) #frame[data-layout=stacked] .example {
  flex-direction: column;
  overflow-y: auto;
}
body:not(.website-mode) #frame[data-layout=stacked] .example .image {
  width: 100%;
  flex: 0 0 auto;
  padding: 0;
  gap: 0;
}
body:not(.website-mode) #frame[data-layout=stacked] .example .image video, body:not(.website-mode) #frame[data-layout=stacked] .example .image img {
  border-radius: 0;
}
body:not(.website-mode) #frame[data-layout=stacked] .example .headlineContainer {
  width: 100%;
  border-left: none;
  justify-content: flex-start;
  flex: 1 1 auto;
}
body:not(.website-mode) #frame[data-layout=stacked] .example .project-card {
  justify-content: flex-start;
  padding: 3vw 4vw 0 4vw;
  gap: 0.3125em;
}
body:not(.website-mode) #frame[data-layout=stacked] .example .project-header {
  flex-direction: row;
  display: flex;
  align-items: baseline;
}
body:not(.website-mode) #frame[data-layout=stacked] .example .project-title {
  font-size: 1em;
}
body:not(.website-mode) #frame[data-layout=stacked] .example .project-subtitle {
  margin-left: auto;
  font-size: 0.8125em;
}
body:not(.website-mode) #frame[data-layout=stacked] .example .project-description-text {
  -webkit-line-clamp: 5;
  flex: 1 1 auto;
  overflow-y: auto;
  margin-bottom: 1em;
}
body:not(.website-mode) #frame[data-layout=stacked] .example .custom-video-container {
  border-radius: 0;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar {
  flex-wrap: wrap;
  height: fit-content;
  gap: 10px;
  padding-bottom: 10px;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .toolbarElement.video-pagination-toolbar {
  width: 100%;
  border-radius: 0;
  margin: 0;
  padding: 0;
  order: 1;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .toolbarElement.video-pagination-toolbar p {
  display: none;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .toolbarElement.Text {
  width: 100%;
  margin: 0 5px;
  flex: 1;
  order: 2;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .toolbarElement.Text button {
  border-radius: 0;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .radio-container {
  justify-content: space-evenly;
  width: 100%;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .toolbar-detail-btn {
  border-radius: 0;
  margin-right: 5px;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .add-progress-wrapper {
  min-width: 10%;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .volume-slider-container {
  order: 5;
  margin-left: 20px;
  box-sizing: border-box;
  width: 96px;
  max-width: 96px;
  flex: 0 0 96px;
  min-width: 96px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  align-self: center;
  overflow: hidden;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .volume-slider-container .il-toggle {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 1px 3px 2px;
  gap: 1px;
  border-radius: 0;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .volume-slider-container .il-toggle-label {
  flex: 0 0 auto;
  width: 24px;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.2px;
  text-align: center;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .volume-slider-container .il-toggle-track {
  width: 22px;
  height: 22px;
  padding: 0;
  font-size: 0;
  border-radius: 50%;
  justify-content: center;
  overflow: visible;
  border-top: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-right: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-bottom: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-left: 1px solid var(--theme-rgba-59-59-59-0_4);
  box-shadow: 0px 3px 3px var(--theme-rgba-0-0-0-0_2);
  background: var(--theme-color-ededed);
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .volume-slider-container .il-toggle-track::before, body:not(.website-mode) #frame[data-layout=stacked] #toolbar .volume-slider-container .il-toggle-track::after {
  display: none;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .volume-slider-container .is-active .il-toggle-track {
  background: var(--theme-color-2ecc71);
  border-color: color-mix(in srgb, var(--theme-color-2ecc71) 80%, black);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-color-2ecc71) 30%, transparent), 0 4px 12px color-mix(in srgb, var(--theme-color-2ecc71) 35%, transparent);
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .volume-slider-container .il-toggle-slider {
  top: -4px;
  left: 50%;
  right: auto;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--theme-color-ffffff, #fff);
  border: 1px solid var(--menu-button-border, var(--frame-border));
  border-bottom: 1px solid var(--menu-button-border-bottom, var(--frame-border));
  box-shadow: 0px 4px 0px 0px var(--menu-button-shadow-soft, rgba(0, 0, 0, 0.15));
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .volume-slider-container .is-active .il-toggle-slider {
  top: 4px;
  left: 50%;
  margin-left: -7px;
  box-shadow: none;
  background: var(--theme-color-ffffff, #fff);
  border: solid 0 transparent;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .volume-slider-container .il-audio-controls {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 4px;
  row-gap: 1px;
  width: 100%;
  min-width: 0;
  margin-left: 0;
  align-items: center;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .volume-slider-container .il-toggle-track {
  grid-column: 1;
  grid-row: 1/span 2;
  justify-self: center;
  align-self: center;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .volume-slider-container .il-audio-volume-slider,
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .volume-slider-container #volumeSlider {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  width: 100%;
  height: 4px;
  writing-mode: horizontal-tb;
  direction: ltr;
  border-radius: 999px;
  transform: none;
  margin: 0;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .volume-slider-container .il-audio-volume-slider::-webkit-slider-thumb,
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .volume-slider-container #volumeSlider::-webkit-slider-thumb {
  width: 8px;
  height: 8px;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .volume-slider-container .il-audio-volume-slider::-moz-range-thumb,
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .volume-slider-container #volumeSlider::-moz-range-thumb {
  width: 8px;
  height: 8px;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .volume-slider-container .il-audio-volume-text {
  display: block;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  font-size: 8px;
  line-height: 1;
  text-align: center;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .volume-slider-container .il-toggle-indicator {
  width: 4px;
  height: 4px;
}
body:not(.website-mode) #frame[data-layout=stacked] #toolbar .volume-slider-container .il-toggle {
  border: none;
}
body:not(.website-mode) #frame[data-layout=stacked] #pagination .toolbarElement.Page {
  display: none;
}

body.website-mode #frame[data-content-template=collection][data-layout=split] .example {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}
body.website-mode #frame[data-content-template=collection][data-layout=split] .example .image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 80%;
  min-width: 0;
  min-height: 0;
  width: auto;
  max-width: 100%;
  height: 100%;
  padding: 1.125em;
  gap: 0;
  overflow: hidden;
}
body.website-mode #frame[data-content-template=collection][data-layout=split] .example .image video, body.website-mode #frame[data-content-template=collection][data-layout=split] .example .image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  border: 1px solid var(--frame-border);
  border-radius: 1.25em;
  border-right: 1px solid var(--frame-bg);
  border-bottom: 1px solid var(--frame-bg);
  box-shadow: 5px 0 15px var(--frame-shadow-strong);
  object-fit: contain;
}
body.website-mode #frame[data-content-template=collection][data-layout=split] .example .headlineContainer {
  flex: 1 1 clamp(280px, 34%, 460px);
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-left-width: 1px;
  background: color-mix(in srgb, var(--frame-bg) 82%, transparent);
}
body.website-mode #frame[data-content-template=collection][data-layout=split] .example .project-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: min(100%, clamp(280px, 90%, 460px));
  height: auto;
  justify-content: center;
  margin-left: auto;
  margin-right: 1.125em;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 1.125em 1.25em;
  gap: 0.5em;
}
body.website-mode #frame[data-content-template=collection][data-layout=split] .example .project-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25em;
  min-width: 0;
}
body.website-mode #frame[data-content-template=collection][data-layout=split] .example .project-title {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--highlight) !important;
  font-size: 1.375em;
  font-weight: 800;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
body.website-mode #frame[data-content-template=collection][data-layout=split] .example .project-subtitle {
  margin-left: 0;
  flex: 0 0 auto;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  color: var(--message-font-color-soft);
  font-size: 0.8125em;
  font-weight: 600;
  line-height: 1.16;
  text-align: left;
}
body.website-mode #frame[data-content-template=collection][data-layout=split] .example .project-description-text {
  display: block;
  -webkit-line-clamp: unset;
  flex: 0 1 auto;
  min-height: 0;
  max-height: 42%;
  overflow-y: auto;
  margin-top: 0.375em;
  margin-bottom: 0;
}
body.website-mode #frame[data-content-template=collection][data-layout=split] .example .description-inner {
  font-size: 0.9375em;
  line-height: 1.32;
}
body.website-mode #frame[data-content-template=collection][data-layout=split] .example .custom-video-container {
  width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: 1.25em;
  overflow: hidden;
  box-shadow: 5px 0 15px var(--frame-shadow-strong);
}
body.website-mode #frame[data-content-template=collection][data-layout=split] .example .custom-video-container video {
  width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: 0;
  box-shadow: none;
}

body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] .example,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] .example {
  align-items: stretch;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] .example .image,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] .example .image {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] .example .image video, body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] .example .image img,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] .example .image video,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] .example .image img {
  height: 100%;
  max-height: none;
  border-radius: 0;
  border-right: 1px solid var(--frame-border);
  border-bottom: 1px solid var(--frame-border);
  box-shadow: none;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] .example .headlineContainer,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] .example .headlineContainer {
  flex-basis: clamp(220px, 38%, 360px);
  max-width: min(44%, var(--contentframe-w, 100vw) - 220px);
  align-items: stretch;
  justify-content: flex-start;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] .example .project-card,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] .example .project-card {
  width: 100%;
  justify-content: flex-start;
  margin-inline: 0;
  padding: 0.75em 1em 0.5em;
  gap: 0.375em;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] .example .project-title,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] .example .project-title {
  font-size: 0.9375em;
  line-height: 1.04;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] .example .project-subtitle,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] .example .project-subtitle {
  font-size: 0.6875em;
  line-height: 1.1;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] .example .description-inner,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] .example .description-inner {
  font-size: 0.875em;
  line-height: 1.28;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] .example .project-description-text,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] .example .project-description-text {
  flex: 1 1 auto;
  max-height: none;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] .example .custom-video-container,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] .example .custom-video-container {
  height: 100%;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] .example .custom-video-container video,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] .example .custom-video-container video {
  height: 100%;
  max-height: none;
}

body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .toolbarElement,
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .toolbarElement,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .toolbarElement,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .toolbarElement.video-pagination-toolbar,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .toolbarElement.video-pagination-toolbar,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .toolbarElement.video-pagination-toolbar {
  width: 100%;
  border-radius: 0;
  margin: 0;
  padding: 0;
  order: 1;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .toolbarElement.video-pagination-toolbar p,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .toolbarElement.video-pagination-toolbar p,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .toolbarElement.video-pagination-toolbar p {
  display: none;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .toolbarElement.Text,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .toolbarElement.Text,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .toolbarElement.Text {
  width: 100%;
  margin: 0 5px;
  flex: 1 1 100%;
  order: 2;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .toolbarElement.Text button,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .toolbarElement.Text button,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .toolbarElement.Text button {
  border-radius: 0;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .radio-container,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .radio-container,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .radio-container {
  justify-content: space-evenly;
  width: 100%;
  padding: 0 4px;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .toolbar-detail-btn,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .toolbar-detail-btn,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .toolbar-detail-btn {
  border-radius: 0;
  margin-right: 5px;
  order: 3;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .add-progress-wrapper,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .add-progress-wrapper,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .add-progress-wrapper {
  min-width: 10%;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container {
  order: 4;
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 4px 6px 6px;
  justify-content: flex-start;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container .il-toggle,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-toggle,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-toggle {
  width: 100%;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 0;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container .il-toggle-label,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-toggle-label,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-toggle-label {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container .il-toggle-track,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-toggle-track,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-toggle-track {
  flex-shrink: 0;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container .il-audio-controls,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-audio-controls,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-audio-controls {
  margin-left: auto;
  min-width: 0;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container .il-audio-volume-text,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-audio-volume-text,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-audio-volume-text {
  min-width: 24px;
}

body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar {
  gap: 6px;
  align-items: stretch;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .toolbarElement.video-pagination-toolbar,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .toolbarElement.video-pagination-toolbar {
  order: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 100%;
  margin: 0;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .toolbarElement.Text,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .toolbarElement.Text {
  order: 2;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .add-progress-wrapper,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .add-progress-wrapper {
  min-width: 0;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .toolbar-detail-btn,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .toolbar-detail-btn {
  order: 2;
  flex: 0 0 auto;
  margin-right: 0;
  align-self: stretch;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .toolbar-detail-icon,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .toolbar-detail-icon {
  width: 28px !important;
  height: 28px !important;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container {
  order: 2;
  box-sizing: border-box;
  width: 88px;
  max-width: 88px;
  flex: 0 0 88px;
  min-width: 88px;
  min-height: 40px;
  padding: 0;
  align-self: center;
  overflow: visible;
  justify-content: center;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-toggle,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-toggle {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  align-items: stretch;
  justify-content: center;
  padding: 1px 4px 3px;
  gap: 2px;
  border-radius: 0;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-toggle-label,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-toggle-label {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.2px;
  text-align: left;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-audio-controls,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-audio-controls {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 4px;
  row-gap: 2px;
  width: 100%;
  min-width: 0;
  margin-left: 0;
  align-items: center;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-toggle-track,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-toggle-track {
  grid-column: 1;
  grid-row: 1/span 2;
  justify-self: center;
  align-self: center;
  width: 28px;
  height: 28px;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-toggle-slider,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-toggle-slider {
  top: -6px;
  left: 50%;
  right: auto;
  width: 20px;
  height: 20px;
  margin-left: -10px;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .is-active .il-toggle-slider,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .is-active .il-toggle-slider {
  top: 3px;
  left: 50%;
  margin-left: -10px;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-toggle-indicator,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-toggle-indicator {
  width: 4px;
  height: 4px;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-audio-volume-text,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-audio-volume-text {
  grid-column: 2;
  grid-row: 1;
  display: block;
  min-width: 0;
  font-size: 8px;
  line-height: 1;
  text-align: center;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-audio-volume-slider,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container #volumeSlider,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-audio-volume-slider,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container #volumeSlider {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  width: 100%;
  height: 4px;
  writing-mode: horizontal-tb;
  direction: ltr;
  border-radius: 999px;
  transform: none;
  margin: 0;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-audio-volume-slider::-webkit-slider-thumb,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container #volumeSlider::-webkit-slider-thumb,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-audio-volume-slider::-webkit-slider-thumb,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container #volumeSlider::-webkit-slider-thumb {
  width: 8px;
  height: 8px;
}
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-audio-volume-slider::-moz-range-thumb,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=compact] #toolbar .volume-slider-container #volumeSlider::-moz-range-thumb,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-audio-volume-slider::-moz-range-thumb,
body.website-mode #frame[data-content-template=collection][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container #volumeSlider::-moz-range-thumb {
  width: 8px;
  height: 8px;
}

body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar {
  gap: 6px;
  align-items: stretch;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .toolbarElement.video-pagination-toolbar {
  order: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 100%;
  margin: 0;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .toolbarElement.Text {
  order: 2;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .add-progress-wrapper {
  min-width: 0;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .toolbar-detail-btn {
  order: 2;
  flex: 0 0 auto;
  margin-right: 0;
  align-self: stretch;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .toolbar-detail-icon {
  width: 28px !important;
  height: 28px !important;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container {
  order: 2;
  box-sizing: border-box;
  width: 96px;
  max-width: 96px;
  flex: 0 0 96px;
  min-width: 96px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  align-self: center;
  overflow: hidden;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container .il-toggle {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 1px 3px 2px;
  gap: 1px;
  border-radius: 0;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container .il-toggle-label {
  flex: 0 0 auto;
  width: 24px;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.2px;
  text-align: center;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container .il-audio-controls {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 4px;
  row-gap: 1px;
  width: 100%;
  min-width: 0;
  margin-left: 0;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container .il-toggle-track {
  grid-column: 1;
  grid-row: 1/span 2;
  justify-self: center;
  align-self: center;
  width: 22px;
  height: 22px;
  padding: 0;
  font-size: 0;
  border-radius: 50%;
  justify-content: center;
  overflow: visible;
  border-top: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-right: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-bottom: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-left: 1px solid var(--theme-rgba-59-59-59-0_4);
  box-shadow: 0px 3px 3px var(--theme-rgba-0-0-0-0_2);
  background: var(--theme-color-ededed);
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container .il-toggle-track::before, body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container .il-toggle-track::after {
  display: none;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container .is-active .il-toggle-track {
  background: var(--theme-color-2ecc71);
  border-color: color-mix(in srgb, var(--theme-color-2ecc71) 80%, black);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-color-2ecc71) 30%, transparent), 0 4px 12px color-mix(in srgb, var(--theme-color-2ecc71) 35%, transparent);
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container .il-toggle-slider {
  top: -4px;
  left: 50%;
  right: auto;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--theme-color-ffffff, #fff);
  border: 1px solid var(--menu-button-border, var(--frame-border));
  border-bottom: 1px solid var(--menu-button-border-bottom, var(--frame-border));
  box-shadow: 0px 4px 0px 0px var(--menu-button-shadow-soft, rgba(0, 0, 0, 0.15));
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container .is-active .il-toggle-slider {
  top: 4px;
  left: 50%;
  margin-left: -7px;
  box-shadow: none;
  background: var(--theme-color-ffffff, #fff);
  border: solid 0 transparent;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container .il-toggle-indicator {
  width: 4px;
  height: 4px;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container .il-audio-volume-slider {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  width: 100%;
  height: 4px;
  writing-mode: horizontal-tb;
  direction: ltr;
  border-radius: 999px;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container .il-audio-volume-slider::-webkit-slider-thumb {
  width: 8px;
  height: 8px;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container .il-audio-volume-slider::-moz-range-thumb {
  width: 8px;
  height: 8px;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] #toolbar .volume-slider-container .il-audio-volume-text {
  display: block;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  font-size: 8px;
  line-height: 1;
  text-align: center;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] .example {
  flex-direction: column;
  flex-wrap: nowrap;
  overflow: hidden;
  min-height: 0;
  align-items: stretch;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] .example .image {
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 16/9;
  min-height: 180px;
  padding: 0;
  gap: 0;
  justify-content: flex-start;
  align-items: stretch;
  overflow: visible;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] .example .image > * {
  width: 100%;
  height: 100%;
  max-height: 100%;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] .example .image .custom-video-container {
  width: 100%;
  height: 100%;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] .example .image video, body.website-mode #frame[data-content-template=collection][data-layout=stacked] .example .image img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: block;
  border-radius: 0;
  object-fit: contain;
  background-color: var(--frame-bg-muted);
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] .example .headlineContainer {
  width: 100%;
  border-left: none;
  height: auto;
  justify-content: flex-start;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] .example .project-card {
  flex: 1 1 auto;
  height: 100%;
  justify-content: flex-start;
  min-height: 0;
  padding: 3vw 4vw 0 4vw;
  gap: 0.3125em;
  overflow: hidden;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] .example .project-header {
  flex-direction: row;
  display: flex;
  align-items: baseline;
  flex: 0 0 auto;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] .example .project-title {
  font-size: 1em;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] .example .project-subtitle {
  margin-left: auto;
  font-size: 0.8125em;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] .example .project-description-text {
  display: block;
  -webkit-line-clamp: unset;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 0.5em;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] .example .description-inner {
  height: auto;
  margin: 0;
}
body.website-mode #frame[data-content-template=collection][data-layout=stacked] .example .custom-video-container {
  border-radius: 0;
}

.menu-container {
  background: transparent;
  position: relative;
  display: flex;
  height: 100%;
  width: auto;
  justify-content: center;
  align-items: center;
}

.menu-container:hover {
  background: var(--theme-color-ffffff);
}

.menu-container:hover .dots-button {
  color: #4b4b4b;
}

.dots-button {
  display: flex;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #9e9e9e;
  display: flex;
  height: auto;
  width: auto;
}

.menu-content {
  position: absolute;
  left: -20.3125em;
  background-color: var(--theme-color-ffffff);
  border: 1px solid var(--theme-color-cccccc);
  box-shadow: 0px -25px 30px var(--theme-rgba-0-0-0-0_2);
  min-width: 18.75em;
  z-index: 1;
  padding: 0.625em;
  height: 5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.menu-content p {
  margin-left: 1.25em;
}

/* Outer container fixed width */
#adtoolbar {
  position: absolute;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25em;
  width: 100%;
  height: 5.25em;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid var(--frame-border);
  background-color: var(--frame-bg-muted);
  pointer-events: all;
  overflow: hidden;
}

#adtoolbar .ad-toolbar-base-shell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.1875em;
  width: 100%;
  height: 100%;
  padding: 0.625em 1.5em;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#adtoolbar .ad-toolbar-base-title {
  font-size: 0.9375em;
  font-weight: 700;
  color: #444;
}

#adtoolbar .ad-toolbar-base-info {
  font-family: ui-monospace, monospace;
  font-size: 0.6875em;
  font-weight: 500;
  letter-spacing: 0.6px;
  color: #777;
}

#adtoolbar.ad-toolbar-visible {
  animation: adToolbarFadeIn 0.8s ease-out;
}

#adtoolbar.ad-toolbar-fadeout {
  animation: adToolbarFadeOut 0.8s ease-in forwards;
}

@keyframes adToolbarFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes adToolbarFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes adToolbarSvgFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes adLogoFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.95;
  }
}
#adtoolbar .ad-toolbar-slot {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  height: 100%;
}

#adtoolbar .ad-toolbar-svg {
  width: 100%;
  max-width: none;
  height: 100%;
  display: block;
  background: var(--theme-color-ffffff);
  opacity: 0;
  animation: adToolbarSvgFadeIn 1s ease-out forwards;
  --ad-anim-duration: 25s;
  --ad-bg: #ffffff;
  --ad-left: #9fd3ff;
  --ad-center: #ffd39f;
  --ad-right: #bde7c4;
  --ad-cta: #43484e;
  --ad-cta-text: #ffffff;
  --ad-text: #ffffff;
  --ad-text-strong: #fafafa;
  --ad-logo: #5e5f61;
  --ad-accent: #2aa8ff;
}

#adtoolbar .ad-toolbar-svg .ad-bg {
  fill: var(--ad-bg);
  animation: adBgPulse var(--ad-anim-duration) infinite;
}

#adtoolbar .ad-toolbar-svg .ad-block {
  animation: adBlockPulse var(--ad-anim-duration) infinite;
}

#adtoolbar .ad-toolbar-svg .ad-block-left {
  animation-delay: 0s;
}

#adtoolbar .ad-toolbar-svg .ad-block-center {
  animation-delay: 0.8s;
}

#adtoolbar .ad-toolbar-svg .ad-block-right {
  animation-delay: 1.6s;
}

#adtoolbar .ad-toolbar-svg .ad-block-left {
  fill: var(--ad-left);
}

#adtoolbar .ad-toolbar-svg .ad-block-center {
  fill: var(--ad-center);
}

#adtoolbar .ad-toolbar-svg .ad-block-right {
  fill: var(--ad-right);
}

#adtoolbar .ad-toolbar-svg .ad-cta-bg {
  fill: var(--ad-cta);
  opacity: 0.8;
}

#adtoolbar .ad-toolbar-svg .ad-cta-text,
#adtoolbar .ad-toolbar-svg .ad-cta-icon {
  fill: var(--ad-cta-text);
}

#adtoolbar .ad-toolbar-svg .ad-logo-image {
  opacity: 0;
  animation: adLogoFadeIn 1.2s ease-out 0.15s forwards;
}

#adtoolbar .ad-toolbar-svg .ad-logo {
  fill: var(--ad-logo);
}

#adtoolbar .ad-fill-img,
#adtoolbar .ad-core-img {
  transform-origin: center;
  transform-box: fill-box;
  will-change: transform, filter;
  animation: adImageZoom 18s ease-in-out infinite;
}

#adtoolbar .ad-fill-img-left,
#adtoolbar .ad-core-img-left {
  animation-delay: 0s;
}

#adtoolbar .ad-fill-img-center,
#adtoolbar .ad-core-img-center {
  animation-delay: 6s;
}

#adtoolbar .ad-fill-img-right,
#adtoolbar .ad-core-img-right {
  animation-delay: 12s;
}

#adtoolbar .ad-toolbar-svg .txt {
  font-family: "Roboto", "Inter", Arial, sans-serif;
  font-weight: 300;
  font-size: 0.8125em;
  fill: var(--ad-text);
}

#adtoolbar .ad-toolbar-svg .txt_b {
  font-weight: 500;
  fill: var(--ad-text-strong);
}

#adtoolbar .ad-toolbar-svg .txt_3 {
  font-size: 0.625em;
}

#adtoolbar .ad-toolbar-svg .ad-cta-text {
  font-size: 0.8125em;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}

#adtoolbar .ad-toolbar-svg .ad-cta-text {
  fill: var(--ad-cta-text);
}

#adtoolbar .ad-toolbar-svg .ad-cta-strong {
  fill: var(--ad-cta-text);
  font-weight: 500;
}

#adtoolbar .ad-anim .ad-anim-line {
  opacity: 0;
  animation-fill-mode: both;
}

#adtoolbar .liquidGlass-wrapper {
  pointer-events: none;
}

#adtoolbar .liquidGlass-effect {
  fill: rgba(255, 255, 255, 0.24);
  filter: url(#glass-soft);
}

#adtoolbar .liquidGlass-tint {
  fill: rgba(255, 255, 255, 0.28);
}

#adtoolbar .liquidGlass-shine {
  fill: rgba(255, 255, 255, 0.16);
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1;
}

#adtoolbar .liquidGlass-text {
  fill: var(--ad-cta-text);
  font-size: 0.9375em;
  letter-spacing: 0.02em;
  filter: drop-shadow(1px 1px 0 var(--theme-color-000000));
}

#adtoolbar .liquidGlass-text.txt_b {
  fill: var(--ad-cta-text);
}

#adtoolbar .ad-anim .ad-anim-intro {
  animation: adTextIntro var(--ad-anim-duration) infinite;
}

#adtoolbar .ad-anim .ad-anim-alt {
  animation: adTextIntro var(--ad-anim-duration) infinite;
}

#adtoolbar .ad-anim .ad-anim-tagline {
  animation: adTextTagline var(--ad-anim-duration) infinite;
}

#adtoolbar .ad-anim .ad-anim-tagline-strong {
  animation: adTextTagline var(--ad-anim-duration) infinite;
}

#adtoolbar .ad-anim .ad-anim-cta {
  opacity: 0;
  transform-origin: 50% 50%;
  animation: adCtaPop var(--ad-anim-duration) infinite;
  animation-fill-mode: both;
}

@keyframes adTextIntro {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  53% {
    opacity: 0;
    transform: translateY(6px);
  }
  57% {
    opacity: 1;
    transform: translateY(0);
  }
  74% {
    opacity: 1;
    transform: translateY(0);
  }
  78% {
    opacity: 0;
    transform: translateY(-4px);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@keyframes adTextTagline {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  78% {
    opacity: 0;
    transform: translateY(6px);
  }
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  99% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@keyframes adCtaPop {
  0% {
    opacity: 0;
    transform: translateX(0) scale(0.92);
  }
  10% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  22% {
    opacity: 1;
    transform: translateX(0) scale(1.03);
  }
  27% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  38% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  44% {
    opacity: 1;
    transform: translateX(0) scale(1.03);
  }
  52% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  56% {
    opacity: 0;
    transform: translateX(0) scale(0.98);
  }
  100% {
    opacity: 0;
    transform: translateX(0) scale(0.98);
  }
}
@keyframes adImageZoom {
  0% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.06);
  }
  30% {
    transform: scale(1);
  }
  33% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes adFillZoom {
  0% {
    transform: scale(1);
    filter: saturate(1.02) contrast(1.01) brightness(1.01);
  }
  50% {
    transform: scale(1.04);
    filter: saturate(1.06) contrast(1.03) brightness(1.02);
  }
  100% {
    transform: scale(1);
    filter: saturate(1.02) contrast(1.01) brightness(1.01);
  }
}
@keyframes adBlockPulse {
  0% {
    opacity: 0.85;
  }
  20% {
    opacity: 1;
  }
  40% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.85;
  }
}
@keyframes adBgPulse {
  0% {
    opacity: 1;
  }
  35% {
    opacity: 0.95;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
.activity-fill.pulse {
  transform-origin: left center;
  animation: heartbeat-glow 1s ease-in-out infinite;
}

@keyframes heartbeat-glow {
  0%, 100% {
    transform: scaleX(1);
    box-shadow: 0 0 4px var(--theme-rgba-0-198-255-0_5), 0 0 8px var(--theme-rgba-0-114-255-0_3);
  }
  25% {
    transform: scaleX(1.1);
    box-shadow: 0 0 10px var(--theme-rgba-0-198-255-0_8), 0 0 18px var(--theme-rgba-0-114-255-0_5);
  }
  50% {
    transform: scaleX(1);
    box-shadow: 0 0 6px var(--theme-rgba-0-198-255-0_6), 0 0 12px var(--theme-rgba-0-114-255-0_4);
  }
  75% {
    transform: scaleX(1.05);
    box-shadow: 0 0 8px var(--theme-rgba-0-198-255-0_7), 0 0 14px var(--theme-rgba-0-114-255-0_45);
  }
}
.stream-info-container {
  display: flex;
  align-items: end;
  flex-direction: column;
  gap: 1em;
  color: #000;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.875em;
  order: 4;
  margin-left: auto;
  margin-right: 1.25em;
}

.stream-goal-container {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  color: #000;
  order: 1;
}

.stream-info-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5em;
  padding: 0.35em 0.75em;
  border-radius: 0.5em;
  background: color-mix(in srgb, var(--frame-bg) 85%, transparent);
  border: 1px solid color-mix(in srgb, var(--frame-border) 60%, transparent);
  box-shadow: inset 0 0 4px var(--frame-shadow-soft);
  color: var(--font-color);
  font-weight: 700;
  font-size: 11px;
  backdrop-filter: blur(4px);
}
.stream-info-item #viewer-count {
  color: var(--highlight);
  font-weight: 800;
  font-size: 12px;
}

.event-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  order: 3;
  margin-left: auto;
  margin-right: 2.5em;
  width: 25vw;
  min-width: 16.25em;
  max-width: 26.25em;
  height: 3.75em;
  background-color: var(--frame-bg-subtle);
  border: 2px solid var(--frame-border);
  box-shadow: inset 0px 0px 10px var(--theme-rgba-0-0-0-0_12);
  border-radius: 3.4375em;
  overflow: hidden;
  font-family: "Inter", "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 1.125em;
  color: #ffffff;
  letter-spacing: 0.03em;
  transition: background-color 0.9s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.9s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.7s ease;
  box-sizing: border-box;
}

.event-container.active-effect {
  background-color: var(--theme-color-111111);
  border-color: var(--theme-rgba-0-255-255-0_9);
  box-shadow: 0 0 24px var(--theme-rgba-0-200-255-0_12), inset 0 0 14px var(--theme-rgba-0-200-255-0_06);
}

.event-container.active-effect::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  border-radius: 3.625em;
  pointer-events: none;
  background: linear-gradient(90deg, var(--theme-rgba-0-255-255-0_5), var(--theme-rgba-0-200-255-0_5), var(--theme-rgba-0-120-255-0_6), var(--theme-rgba-0-255-255-0_5));
  background-size: 300% 300%;
  opacity: 0.95;
  mix-blend-mode: screen;
  animation: border-glow 2.8s linear infinite;
  filter: blur(6px);
}

@keyframes border-glow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.event-message {
  position: absolute;
  width: 100%;
  text-align: center;
  opacity: 0;
  transform: translateY(8px) perspective(600px) rotateX(-40deg) scale(0.95);
  filter: blur(6px) saturate(1.1);
  color: var(--theme-color-00c6ff);
  text-shadow: 0 0 6px var(--theme-rgba-0-240-255-0_9), 0 0 12px var(--theme-rgba-0-208-255-0_7);
  transition: opacity 0.9s cubic-bezier(0.2, 0.9, 0.25, 1), transform 1s cubic-bezier(0.2, 0.9, 0.25, 1), filter 0.9s ease;
  z-index: 3;
  padding: 0 0.75em;
  box-sizing: border-box;
}

.event-message.active {
  opacity: 1;
  transform: translateY(0) perspective(600px) rotateX(0deg) scale(1);
  filter: blur(0) saturate(1.15);
}

.event-message.exit {
  opacity: 0;
  transform: translateY(-10px) perspective(600px) rotateX(50deg) scale(0.9);
  filter: blur(6px);
  transition: opacity 1.2s ease, transform 1.3s cubic-bezier(0.2, 0.9, 0.25, 1), filter 1.2s ease;
}

.event-burst {
  position: absolute;
  inset: 0;
  border-radius: 55px;
  background: radial-gradient(circle at 30% 30%, var(--theme-rgba-0-240-255-0_06), transparent 20%), radial-gradient(circle at 70% 70%, var(--theme-rgba-0-120-255-0_05), transparent 20%);
  opacity: 0;
  z-index: 2;
  animation: burstIn 0.9s ease-out forwards;
  pointer-events: none;
}

@keyframes burstIn {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  40% {
    opacity: 0.9;
    transform: scale(1.02);
  }
  100% {
    opacity: 0;
    transform: scale(1.06);
  }
}
.event-message .text-inner {
  display: inline-block;
  max-width: calc(100% - 32px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.goal-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 13.75em;
  font-size: 0.75em;
  color: #000;
  margin-left: 1.25em;
}

.goal-label {
  width: 100%;
  font-weight: 600;
  margin-bottom: 0.25em;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.progress-bar {
  width: 100%;
  height: 0.625em;
  background: var(--frame-bg-subtle);
  border-radius: 0.375em;
  overflow: hidden;
  box-shadow: inset 0 0 3px var(--theme-rgba-0-0-0-0_2);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--theme-color-00c6ff), var(--theme-color-0072ff));
  transition: width 1s ease;
}

.progress-value {
  display: flex;
  font-size: 0.6875em;
  font-weight: 600;
  gap: 0.5em;
  align-items: center;
}

.activity-meter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  padding: 0.625em;
  border: 1px solid var(--frame-border);
  background-color: var(--frame-bg-subtle);
  height: 4.0625em;
  margin-bottom: 0.625em;
  justify-content: center;
  gap: 0.9375em;
  align-items: center;
}

.activity-bar {
  width: 100%;
  height: 0.625em;
  background: var(--theme-color-dddddd);
  border-radius: 0.375em;
  overflow: hidden;
  box-shadow: inset 0 0 3px var(--theme-rgba-0-0-0-0_2);
}

.activity-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, var(--theme-color-00c6ff), var(--theme-color-0072ff));
  transition: width 0.5s ease;
}

.event-idle-title {
  position: absolute;
  width: 100%;
  text-align: center;
  opacity: 1;
  transition: opacity 600ms ease;
  color: var(--frame-text-soft);
  font-weight: 700;
  padding: 0 0.75em;
  font-size: 0.8125em;
  letter-spacing: 0.04em;
  z-index: 1;
  text-shadow: 2px 2px var(--frame-shadow-base), -2px -2px 8px var(--frame-shadow-soft);
}

.event-container.active-effect .event-idle-title {
  opacity: 0;
}

body.streaming-view.streaming-fullscreen.streaming-fullscreen-title-hidden .event-idle-title {
  opacity: 0 !important;
  pointer-events: none;
}

.shoutout-clip-host {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  background: #000;
  border-radius: 1.375em;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.shoutout-clip-host.is-visible {
  opacity: 1;
  visibility: visible;
  transition: none;
}

.shoutout-clip-video,
.shoutout-clip-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  border-radius: inherit;
}

.shoutout-clip-video {
  object-fit: cover;
}

.shoutout-clip-iframe {
  pointer-events: none;
}

.activity-bar {
  position: relative;
  width: 100%;
  height: var(--meter-height);
  background: var(--meter-bar-bg);
  border-radius: 4px;
  overflow: hidden;
}

.meter-mover {
  position: absolute;
  top: 0;
  width: var(--meter-width);
  height: 100%;
  background: var(--meter-color-idle);
  border-radius: 4px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.meter-mover.active {
  background: var(--meter-color-active);
  box-shadow: 0 0 12px var(--meter-color-active);
}

/* DARKTIDE THEME */
.active-chatters {
  margin-left: 0.9375em;
  font-size: 0.875em;
  font-weight: 600;
  color: #000;
  opacity: 0.8;
  user-select: none;
}

.event-counter-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625em;
}

.event-counter-title {
  font-weight: 700;
  font-size: 0.9375em;
  color: #0f172a;
}

.event-counter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75em;
  padding: 2px 0.5em;
  border-radius: 999px;
  background: var(--theme-color-356bff);
  color: #fff;
  font-size: 0.75em;
  font-weight: 800;
}

.event-counter-badge:empty {
  display: none;
}

.event-summary-row {
  justify-content: space-between;
  gap: 0.5em;
  width: 100%;
  font-size: 1.0625em;
}

.event-summary-row:hover .event-summary-count {
  color: var(--font-color);
}

.event-summary-label {
  font-weight: 600;
}

.event-summary-count {
  font-weight: 700;
  color: var(--frame-text-soft);
  margin-left: auto;
}

.event-overlay {
  z-index: 20;
}

.event-overlay-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  max-height: 50vh;
  overflow: auto;
  width: 100%;
  align-content: flex-start;
  box-sizing: border-box;
  min-height: 0;
}

.event-overlay-item {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.625em 0.75em;
  border-radius: 0.375em;
  background: var(--frame-bg-raised);
  border: 1px solid var(--frame-border);
  box-shadow: 0px 0px 4px var(--theme-rgba-0-0-0-0_1);
  color: var(--font-color);
  font-size: 0.8125em;
  font-weight: 600;
  opacity: 0.8;
}

.event-overlay-empty {
  color: var(--frame-text-soft);
  font-size: 1.0625em;
  padding: 0.375em;
}

.emote {
  width: auto;
  height: 1.5625em;
  vertical-align: middle;
}

.chat-wrapper {
  color: #000;
  font-family: Inter, Arial, sans-serif;
  height: auto;
  box-sizing: border-box;
  padding: 4.375em 0 0 0;
  gap: 0.625em;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chat-wrapper::-webkit-scrollbar {
  display: none;
}

/* Streaming view: dedicated chat container (no visible scrollbar, fills submenu) */
.streaming-chat {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.streaming-chat::-webkit-scrollbar {
  display: none;
}

.chat-message {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  background: var(--frame-bg-raised);
  border-radius: 0.625em;
  padding: 0.625em;
  margin-bottom: 0.5em;
  border: 1px solid var(--frame-border);
  transition: transform 0.3s ease;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}

#frame[data-nav-side=left] .chat-message {
  border-top-right-radius: 0.625em;
  border-bottom-right-radius: 0.625em;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

#navigation.streaming-nav-layout.streaming-hide-avatars .avatar {
  display: none;
}

.chat-message.has-mention {
  box-shadow: 4px 6px 10px var(--theme-rgba-158-158-158-0_54);
}

.chat-message:hover {
  transform: scale(1.02);
}

.top-section {
  display: flex;
  align-items: center;
  gap: 0.625em;
}

.top-section .timestamp {
  margin-left: auto;
  font-size: 0.6875em;
  color: #9e9e9e;
  white-space: nowrap;
  top: -10px;
  position: relative;
}

.avatar {
  width: 2.25em;
  height: 2.25em;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.username {
  font-weight: 700;
  color: #9146ff;
  font-size: 0.9375em;
}

.badges {
  display: flex;
  gap: 0.375em;
  align-items: center;
  margin-top: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125em;
  height: 1.125em;
  border-radius: 0.25em;
  background: var(--theme-color-000000);
  font-size: 0.625em;
  color: #fff;
}

.message-text {
  align-items: center;
  font-size: 0.9375em;
  color: var(--message-font-color);
  line-height: 1.4;
  overflow-wrap: anywhere;
  padding-left: 2px;
}

/* ---- CHAT MESSAGE ENTRY ANIMATION ---- */
.chat-message {
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  animation: chatPopIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes chatPopIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    filter: blur(4px);
  }
  60% {
    opacity: 1;
    transform: translateY(0px) scale(1.02);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px) scale(1);
    filter: blur(0px);
  }
}
.chat-message {
  position: relative;
}

.chat-message::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--theme-rgba-0-150-255-0_2);
  opacity: 0;
  pointer-events: none;
  animation: msgAccent 0.45s ease-out forwards;
}

@keyframes msgAccent {
  0% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
  }
}
.chat-message.redeem-highlight {
  position: relative;
  border: 1px solid var(--theme-rgba-0-255-255-0_9);
  box-shadow: 0 0 10px var(--theme-rgba-0-255-255-0_6), 0 0 18px var(--theme-rgba-0-120-255-0_4);
  background: radial-gradient(circle at 0% 0%, var(--theme-rgba-0-255-255-0_1), transparent 55%), radial-gradient(circle at 100% 100%, var(--theme-rgba-0-120-255-0_08), transparent 55%), var(--theme-rgba-8-8-8-0_9);
}

.chat-message.redeem-highlight .username,
.chat-message.redeem-highlight .message-text {
  color: var(--theme-color-eef3ff);
}

.chat-message.system-message {
  background-color: var(--frame-bg-subtle);
  box-shadow: inset 0 0 10px var(--frame-shadow-soft);
  border: 1px solid var(--frame-border);
}
.chat-message.system-message .top-section, .chat-message.system-message .message-text {
  opacity: 0.8;
}

.chat-message.system-message .username {
  color: #9c9c9c;
}

.chat-message.system-message .message-text {
  color: var(--message-font-color-soft);
  font-weight: 700;
}

.chat-message.system-message .badge {
  filter: grayscale(1);
  opacity: 0.6;
}

.chat-message.raid-system-message {
  background-color: var(--frame-bg-subtle);
  box-shadow: inset 0 0 10px var(--frame-shadow-soft);
  border: 1px solid var(--frame-border);
}

.raid-system-message .username {
  color: var(--theme-color-356bff);
  font-weight: 800;
}

.raid-system-message .message-text {
  color: var(--message-font-color-soft);
  font-weight: 700;
}

.raid-system-message .badge {
  filter: grayscale(1);
  opacity: 0.8;
}

.raid-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0.5em;
  border-radius: 0.375em;
  background: var(--theme-color-356bff);
  color: #fff;
  font-weight: 800;
  font-size: 0.6875em;
  letter-spacing: 0.03em;
}

.raid-progress-row {
  display: flex;
  align-items: center;
  gap: 0.625em;
  margin-top: 0.5em;
}

.raid-progress-time {
  font-size: 0.75em;
  font-weight: 700;
  color: #0b2a5c;
  min-width: 3.75em;
}

.raid-progress-line {
  position: relative;
  flex: 1;
  height: 0.5em;
  background: var(--theme-color-c8d6ff);
  border-radius: 999px;
  overflow: hidden;
}

.raid-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--theme-color-356bff), var(--theme-color-6ea8ff));
  border-radius: 999px;
  transition: width 0.25s ease;
}

/* Style ad warning messages like system messages */
.chat-message.ad-warning-message {
  background-color: var(--frame-bg-subtle);
  box-shadow: inset 0 0 10px var(--frame-shadow-soft);
  border: 1px solid var(--frame-border);
}

.chat-message.ad-warning-message .username {
  color: #9c9c9c;
}

.chat-message.ad-warning-message .message-text {
  color: var(--message-font-color-soft);
  font-weight: 700;
}

.chat-message.ad-warning-message .badge {
  filter: grayscale(1);
  opacity: 0.6;
}

.chat-message.ad-snooze-message {
  background-color: var(--frame-bg-subtle);
  box-shadow: inset 0 0 10px var(--frame-shadow-soft);
  border: 1px solid var(--frame-border);
}

.chat-message.ad-snooze-message .username {
  color: var(--theme-color-2ecc71);
}

.chat-message.ad-snooze-message .message-text {
  color: var(--message-font-color-soft);
  font-weight: 700;
}

.chat-message.ad-snooze-message .badge {
  filter: grayscale(1);
  opacity: 0.6;
}

.chat-message.ban-system-message {
  background-color: var(--frame-bg-subtle);
  box-shadow: inset 0 0 10px var(--frame-shadow-soft);
  border: 1px solid var(--frame-border);
}

.ban-system-message .username {
  color: #8a2d2d;
}

.ban-system-message .message-text {
  color: #5a1d1d;
}

.ban-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0.5em;
  border-radius: 0.375em;
  background: var(--theme-color-c53030);
  color: #fff;
  font-weight: 800;
  font-size: 0.6875em;
  letter-spacing: 0.03em;
}

.chat-message.timeout-system-message {
  background-color: var(--frame-bg-subtle);
  box-shadow: inset 0 0 10px var(--frame-shadow-soft);
  border: 1px solid var(--frame-border);
}

.timeout-system-message .username {
  color: #d18a36;
}

.timeout-system-message .message-text {
  color: #8a5a1d;
}

.timeout-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0.5em;
  border-radius: 0.375em;
  background: #d18a36;
  color: #fff;
  font-weight: 800;
  font-size: 0.6875em;
  letter-spacing: 0.03em;
}

.costream-list {
  display: flex;
  flex-direction: column;
  gap: var(--il-spacing-xs);
  min-height: 24px;
}

.costream-list-empty {
  font-size: 0.8em;
  color: var(--font-color);
  opacity: 0.5;
  padding: 4px 0;
}

.costream-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--il-spacing-sm);
  padding: 4px 6px;
  border-radius: var(--il-radius-sm);
  background: var(--frame-bg-soft);
  border: 1px solid var(--frame-border);
}

.costream-channel-name {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--font-color);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.costream-remove-btn {
  flex: 0 0 auto;
  font-size: 0.75em;
  padding: 2px 8px;
  opacity: 0.7;
}
.costream-remove-btn:hover {
  opacity: 1;
}

.guest-channel-tag {
  display: inline;
  font-size: 0.72em;
  font-weight: 700;
  color: var(--highlight);
  opacity: 0.75;
  margin-right: 4px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.reply-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0.5em;
  border-radius: 0.375em;
  background: var(--theme-color-2ecc71);
  color: #0b2a1a;
  font-weight: 800;
  font-size: 0.6875em;
  letter-spacing: 0.03em;
}

.chat-message.has-reply {
  box-shadow: 4px 6px 10px var(--theme-rgba-158-158-158-0_54);
}

.chat-message.reply-target {
  background-color: var(--theme-color-59a35b);
  box-shadow: 4px 6px 10px var(--theme-color-2cff0559);
}

.chat-message.reply-preview {
  margin-top: 0.3125em;
  border-color: var(--frame-border);
  background: var(--frame-bg-muted);
  box-shadow: inset 0 0 4px var(--theme-rgba-0-0-0-0_08);
}

.chat-message.redeem-highlight::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--theme-rgba-0-255-255-0_9);
  opacity: 0.8;
  mix-blend-mode: screen;
  background: conic-gradient(from 0deg, var(--theme-rgba-0-255-255-0_2), var(--theme-rgba-0-120-255-0_7), var(--theme-rgba-0-255-255-0_2));
  background-size: 200% 200%;
  animation: sciFiHighlightBorder 4s linear infinite;
  pointer-events: none;
}

.chat-message.redeem-highlight::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  border: 1px dashed var(--theme-rgba-0-255-255-0_4);
  opacity: 0.7;
  box-shadow: 0 0 12px var(--theme-rgba-0-200-255-0_4);
  pointer-events: none;
}

@keyframes sciFiHighlightBorder {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/*******************************
   STREAMER CHAT PANEL (FULLSCREEN)
********************************/
body.chatpanel-view #footer {
  overflow-y: hidden;
}

.chat-panel-root {
  flex: 0 0 100%;
  width: 100%;
  height: 95%;
  display: flex;
  flex-direction: row;
  padding: 1.25em 0.9375em 1.25em 1.25em;
  box-sizing: border-box;
  overflow: hidden;
  gap: 0.5em;
  position: relative;
  --chatpanel-hud-clear: 60px;
  --chatpanel-hud-fade: 100px;
  --chatpanel-message-size-px: 20px;
  --chatpanel-card-gap: clamp(4px, calc(var(--chatpanel-message-size-px) * 0.5), 11px);
  --chatpanel-content-gap: clamp(2px, calc(var(--chatpanel-message-size-px) * 0.3), 7px);
  --chatpanel-card-padding-y: clamp(4px, calc(var(--chatpanel-message-size-px) * 0.5), 11px);
  --chatpanel-card-padding-x: clamp(5px, calc(var(--chatpanel-message-size-px) * 0.5), 11px);
  --chatpanel-card-margin-bottom: clamp(3px, calc(var(--chatpanel-message-size-px) * 0.4), 10px);
  --chatpanel-card-radius: clamp(6px, calc(var(--chatpanel-message-size-px) * 0.5), 12px);
  --chatpanel-text-line-height: calc(var(--chatpanel-message-size-px) * 2);
  --chatpanel-avatar-size: clamp(18px, calc(var(--chatpanel-message-size-px) * 1.8), 40px);
  --chatpanel-badge-size: clamp(8px, calc(var(--chatpanel-message-size-px) * 0.9), 22px);
  --chatpanel-badge-gap: clamp(2px, calc(var(--chatpanel-message-size-px) * 0.3), 7px);
  --chatpanel-badge-margin-top: clamp(1px, calc(var(--chatpanel-message-size-px) * 0.1), 3px);
  --chatpanel-badge-radius: clamp(2px, calc(var(--chatpanel-message-size-px) * 0.2), 5px);
  --chatpanel-timestamp-size: clamp(7px, calc(var(--chatpanel-message-size-px) * 0.55), 12px);
  --chatpanel-timestamp-offset: clamp(2px, calc(var(--chatpanel-message-size-px) * 0.6), 20px);
  --chatpanel-message-text-padding-left: clamp(1px, calc(var(--chatpanel-message-size-px) * 0.1), 3px);
  --chatpanel-reply-size-px: clamp(8px, calc(var(--chatpanel-message-size-px) * 0.75), 17px);
  --chatpanel-reply-line-height: calc(var(--chatpanel-reply-size-px) * 1.4);
  --chatpanel-reply-avatar-size: clamp(14px, calc(var(--chatpanel-message-size-px) * 1.35), 32px);
  --chatpanel-reply-margin-top: clamp(2px, calc(var(--chatpanel-message-size-px) * 0.25), 6px);
  --chatpanel-action-gap: clamp(2px, calc(var(--chatpanel-message-size-px) * 0.2), 5px);
  --chatpanel-action-button-size: clamp(26px, calc(var(--chatpanel-message-size-px) * 2.5), 55px);
  --chatpanel-action-button-max-height: clamp(42px, calc(var(--chatpanel-message-size-px) * 4.25), 94px);
  --chatpanel-action-padding-y: clamp(2px, calc(var(--chatpanel-message-size-px) * 0.2), 5px);
  --chatpanel-action-padding-x: clamp(3px, calc(var(--chatpanel-message-size-px) * 0.3), 7px);
  --chatpanel-action-radius: clamp(4px, calc(var(--chatpanel-message-size-px) * 0.3), 7px);
  --chatpanel-action-label-size: clamp(8px, calc(var(--chatpanel-message-size-px) * 0.6), 13px);
  --chatpanel-action-icon-size: clamp(10px, calc(var(--chatpanel-message-size-px) * 0.8), 18px);
  --chatpanel-action-icon-size-lg: clamp(12px, calc(var(--chatpanel-message-size-px) * 1.3), 29px);
  --chatpanel-shoutout-icon-size: clamp(11px, calc(var(--chatpanel-message-size-px) * 1), 22px);
  --chatpanel-shoutout-slot-width: clamp(42px, calc(var(--chatpanel-message-size-px) * 4.2), 92px);
  --chatpanel-delete-slot-width: clamp(28px, calc(var(--chatpanel-message-size-px) * 2.7), 60px);
  --chatpanel-action-popout-size: clamp(28px, calc(var(--chatpanel-message-size-px) * 2.7), 60px);
  --chatpanel-action-popout-offset: clamp(30px, calc(var(--chatpanel-message-size-px) * 2.8), 62px);
  --chatpanel-so-cooldown-size: clamp(7px, calc(var(--chatpanel-message-size-px) * 0.7), 16px);
  --chatpanel-so-cooldown-min-width: clamp(10px, calc(var(--chatpanel-message-size-px) * 0.8), 18px);
  --chat-meta-block-width: clamp(150px, calc(var(--chatpanel-message-size-px) * 14), 340px);
  --chat-action-rail-width: calc(
    var(--chatpanel-shoutout-slot-width)
    + (var(--chatpanel-action-button-size) * 2)
    + (var(--chatpanel-action-gap) * 4)
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent 0px, transparent var(--chatpanel-hud-clear), #000 var(--chatpanel-hud-fade), #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0px, transparent var(--chatpanel-hud-clear), #000 var(--chatpanel-hud-fade), #000 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.chat-panel-root .chat-panel-message-item {
  display: flex;
  flex-direction: row;
  align-items: start;
  gap: var(--chatpanel-card-gap);
  min-width: 0;
  overflow: visible;
  z-index: 1;
  padding: var(--chatpanel-card-padding-y) var(--chatpanel-card-padding-x);
  margin-bottom: var(--chatpanel-card-margin-bottom);
  border-radius: var(--chatpanel-card-radius);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.chat-panel-root .chat-panel-message-item.action-menu-open {
  z-index: 9000;
}
.chat-panel-root .chat-panel-message-item > .chat-message-meta-block {
  flex: 0 0 var(--chat-meta-block-width);
  width: var(--chat-meta-block-width);
  max-width: var(--chat-meta-block-width);
  min-width: 0;
  align-self: start;
}
.chat-panel-root .chat-panel-message-item > .chat-message-content-block {
  flex: 1 1 auto;
  min-width: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: var(--chatpanel-content-gap);
}
.chat-panel-root .chat-panel-message-item > .chat-message-action-rail {
  flex: 0 0 var(--chat-action-rail-width);
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  width: auto;
  align-self: flex-start;
  min-height: 0;
  height: auto;
  justify-content: flex-end;
  padding: var(--chatpanel-action-padding-y) 0 var(--chatpanel-action-padding-y) var(--chatpanel-action-gap);
}
.chat-panel-root .chat-panel-message-item > .chat-message-meta-block .top-section {
  box-sizing: border-box;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: flex-start;
  text-align: left;
  gap: var(--chatpanel-card-gap);
}
.chat-panel-root .chat-panel-message-item > .chat-message-meta-block .top-section > .avatar + div {
  flex: 1 1 auto;
  min-width: 0;
}
.chat-panel-root .chat-panel-message-item > .chat-message-meta-block .username {
  font-size: var(--chatpanel-message-size-px);
  font-weight: 800;
  line-height: var(--chatpanel-text-line-height) !important;
  text-align: left;
}
.chat-panel-root .chat-panel-message-item > .chat-message-content-block > .message-text {
  font-size: var(--chatpanel-message-size-px);
  font-weight: 500;
  line-height: var(--chatpanel-text-line-height) !important;
  text-align: left;
}
.chat-panel-root .chat-panel-message-item.system-message > .chat-message-content-block > .message-text,
.chat-panel-root .chat-panel-message-item.redeem-highlight > .chat-message-content-block > .message-text {
  font-weight: 800;
}
.chat-panel-root .chat-panel-message-item > .chat-message-content-block > .reply-preview-block .message-text {
  font-weight: 500;
}
.chat-panel-root .chat-panel-message-item > .chat-message-meta-block .avatar {
  width: var(--chatpanel-avatar-size);
  height: var(--chatpanel-avatar-size);
}
.chat-panel-root .chat-panel-message-item > .chat-message-meta-block .badges {
  gap: var(--chatpanel-badge-gap);
  margin-top: var(--chatpanel-badge-margin-top);
}
.chat-panel-root .chat-panel-message-item > .chat-message-meta-block .badge {
  width: var(--chatpanel-badge-size);
  height: var(--chatpanel-badge-size);
  border-radius: var(--chatpanel-badge-radius);
}
.chat-panel-root .chat-panel-message-item > .chat-message-meta-block .username {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-panel-root .chat-panel-message-item > .chat-message-content-block > .message-text {
  box-sizing: border-box;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  padding-left: var(--chatpanel-message-text-padding-left);
}
.chat-panel-root .chat-panel-message-item.has-reply > .chat-message-meta-block .badges {
  margin-top: var(--chatpanel-reply-margin-top);
  flex-wrap: wrap;
}
.chat-panel-root .chat-panel-message-item > .chat-message-content-block > .reply-preview-block {
  margin-top: var(--chatpanel-reply-margin-top);
  min-width: 0;
}
.chat-panel-root .chat-panel-message-item > .chat-message-content-block > .reply-preview-block .top-section,
.chat-panel-root .chat-panel-message-item > .chat-message-content-block > .reply-preview-block .message-text {
  padding-right: 0;
  text-align: left;
}
.chat-panel-root .chat-panel-message-item > .chat-message-meta-block .top-section .timestamp {
  flex: 0 0 auto;
  top: auto;
  position: static;
  margin-left: auto;
  font-size: var(--chatpanel-timestamp-size);
  padding-top: var(--chatpanel-timestamp-offset);
  text-align: left;
}

.chat-panel-root.chatpanel-message-layout-compact .chat-panel-message-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "meta actions" "content content";
  align-items: start;
  column-gap: var(--chatpanel-card-gap);
  row-gap: var(--chatpanel-content-gap);
  border-top-right-radius: var(--chatpanel-card-radius);
  border-bottom-right-radius: var(--chatpanel-card-radius);
}

.chat-panel-root.chatpanel-message-layout-compact .chat-panel-message-item > .chat-message-meta-block {
  grid-area: meta;
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  min-width: 0;
}

.chat-panel-root.chatpanel-message-layout-compact .chat-panel-message-item > .chat-message-content-block {
  grid-area: content;
  width: 100%;
  min-width: 0;
}

.chat-panel-root.chatpanel-message-layout-compact .chat-panel-message-item > .chat-message-content-block > .message-text {
  width: 100%;
  min-width: 0;
  padding-left: 0;
  line-height: calc(var(--chatpanel-message-size-px) * 1.45) !important;
}

.chat-panel-root.chatpanel-message-layout-compact .chat-panel-message-item > .chat-message-action-rail {
  grid-area: actions;
  flex: 0 0 auto;
  width: auto;
  align-self: start;
  justify-content: flex-end;
  padding: 0;
}

.chat-panel-root.chatpanel-message-layout-compact .chat-panel-message-item > .chat-message-meta-block .top-section {
  align-items: flex-start;
}

.chat-panel-root.chatpanel-message-layout-compact .chat-panel-message-item > .chat-message-meta-block .top-section .timestamp {
  padding-top: 0;
}

.chat-panel-root.chatpanel-message-layout-compact .chat-panel-message-item > .chat-message-meta-block .badges {
  flex-wrap: wrap;
}

.chat-panel-root .chat-panel-reply-preview-item {
  gap: var(--chatpanel-content-gap);
  padding: var(--chatpanel-action-padding-y) var(--chatpanel-card-padding-x);
  margin-top: var(--chatpanel-reply-margin-top);
  margin-bottom: 0;
  border-radius: var(--chatpanel-card-radius);
}

.chat-panel-root .chat-panel-reply-preview-item .top-section {
  gap: var(--chatpanel-content-gap);
}

.chat-panel-root .chat-panel-reply-preview-item .avatar {
  width: var(--chatpanel-reply-avatar-size);
  height: var(--chatpanel-reply-avatar-size);
}

.chat-panel-root .chat-panel-reply-preview-item .username,
.chat-panel-root .chat-panel-reply-preview-item .message-text {
  font-size: var(--chatpanel-reply-size-px);
  line-height: var(--chatpanel-reply-line-height);
}

.chat-panel-root .chat-panel-reply-preview-item .message-text {
  font-weight: 500;
}

.chat-panel-root .chat-panel-reply-preview-item .message-text {
  padding-left: 0;
}

.chat-panel-root .chat-panel-reply-preview-item .timestamp {
  font-size: var(--chatpanel-timestamp-size);
  position: static;
  top: auto;
  padding-top: calc(var(--chatpanel-reply-size-px) * 0.4);
}

.chat-panel-root .chat-panel-reply-preview-item .badges {
  gap: var(--chatpanel-badge-gap);
  margin-top: var(--chatpanel-badge-margin-top);
}

.chat-panel-root .chat-panel-reply-preview-item .badge {
  width: calc(var(--chatpanel-badge-size) * 0.85);
  height: calc(var(--chatpanel-badge-size) * 0.85);
  border-radius: var(--chatpanel-badge-radius);
}

/* Chat-panel-root: chat-wrapper override (70% column) */
.chat-panel-root .chat-wrapper {
  flex: 0 0 70%;
  width: 70%;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: flex 0.35s ease, width 0.35s ease;
}

/* EVENT TRACKER PANEL */
.event-tracker-panel {
  flex: 0 0 calc(30% - 0.5em);
  width: calc(30% - 0.5em);
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--frame-border);
  border-radius: var(--il-radius-sm);
  padding-top: 8vh;
  opacity: 1;
  transition: flex-basis 0.35s ease, width 0.35s ease, opacity 0.35s ease;
}
.event-tracker-panel.is-hidden {
  flex: 0 0 0;
  width: 0;
  opacity: 0;
  pointer-events: none;
}
.event-tracker-panel .event-tracker-header {
  flex-shrink: 0;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--message-font-color-soft);
  text-transform: uppercase;
  padding: 0.5vh 1vw;
  border-bottom: 1px solid var(--frame-border);
}
.event-tracker-panel .event-tracker-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5vh 1vw;
  margin-bottom: 8vh;
}
.event-tracker-panel .event-tracker-list::-webkit-scrollbar {
  width: 3px;
}
.event-tracker-panel .event-tracker-list::-webkit-scrollbar-thumb {
  background: var(--frame-border);
  border-radius: 2px;
}

.event-tracker-entry {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  font-size: 0.8em;
  color: var(--font-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  min-width: 0;
  margin-bottom: 2px;
}
.event-tracker-entry.et-follow {
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--emote-accent-0) 20%, transparent));
}
.event-tracker-entry.et-follow .et-dot {
  background: var(--emote-accent-0);
}
.event-tracker-entry.et-sub {
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--emote-accent-1) 20%, transparent));
}
.event-tracker-entry.et-sub .et-dot {
  background: var(--emote-accent-1);
}
.event-tracker-entry.et-resub {
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--emote-accent-1) 20%, transparent));
}
.event-tracker-entry.et-resub .et-dot {
  background: var(--emote-accent-1);
}
.event-tracker-entry.et-gift {
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--emote-accent-3) 20%, transparent));
}
.event-tracker-entry.et-gift .et-dot {
  background: var(--emote-accent-3);
}
.event-tracker-entry.et-cheer {
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--emote-accent-2) 20%, transparent));
}
.event-tracker-entry.et-cheer .et-dot {
  background: var(--emote-accent-2);
}
.event-tracker-entry.et-points {
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--emote-accent-6) 20%, transparent));
}
.event-tracker-entry.et-points .et-dot {
  background: var(--emote-accent-6);
}
.event-tracker-entry.et-raid {
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--emote-accent-4) 20%, transparent));
}
.event-tracker-entry.et-raid .et-dot {
  background: var(--emote-accent-4);
}
.event-tracker-entry.et-hype {
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--emote-accent-7) 20%, transparent));
}
.event-tracker-entry.et-hype .et-dot {
  background: var(--emote-accent-7);
}
.event-tracker-entry.et-shoutout_sent {
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--emote-accent-5) 20%, transparent));
}
.event-tracker-entry.et-shoutout_sent .et-dot {
  background: var(--emote-accent-5);
}
.event-tracker-entry.et-shoutout_received {
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--emote-accent-5) 20%, transparent));
}
.event-tracker-entry.et-shoutout_received .et-dot {
  background: var(--emote-accent-5);
}
.event-tracker-entry .et-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.event-tracker-entry .et-username {
  font-weight: 700;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.event-tracker-entry .et-label {
  color: var(--message-font-color-soft);
  white-space: nowrap;
  flex-shrink: 0;
}
.event-tracker-entry .et-time {
  color: var(--message-font-color-soft);
  flex-shrink: 0;
  opacity: 0.7;
}

/* Standalone event feed toggle — sits below the Events button */
.il-event-feed-toggle {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  background-color: var(--frame-bg-raised);
  border-radius: 5px;
  padding: 10px 12px;
  opacity: 0.8;
}
.il-event-feed-toggle .il-toggle-label {
  font-size: inherit;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  opacity: 1;
}

/* Compact split: widen event tracker when window is narrow */
@media (max-width: 1300px) {
  .chat-panel-root .chat-wrapper {
    flex: 0 0 55%;
    width: 55%;
  }
  .event-tracker-panel {
    flex: 0 0 calc(45% - 0.5em);
    width: calc(45% - 0.5em);
  }
}
/* Expand chat-wrapper to full width when event tracker panel is hidden */
.chat-panel-root:has(.event-tracker-panel.is-hidden) .chat-wrapper {
  flex: 1;
  width: 100%;
}

/* CHAT LOG */
.chat-panel-log {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--theme-rgba-0-0-0-0_35);
  border: 1px solid var(--theme-color-333333);
  border-radius: 0.5em;
  padding: 0.75em;
  box-sizing: border-box;
}

/* MESSAGE BLOCK */
.chat-panel-msg {
  padding: 0.5em 0.25em;
  border-bottom: 1px solid var(--theme-color-2a2a2a);
  margin-bottom: 0.375em;
}

/* MESSAGE HEADER */
.chat-panel-msg-header {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.chat-panel-avatar {
  width: 1.625em;
  height: 1.625em;
  border-radius: 50%;
}

.chat-panel-name {
  font-weight: bold;
  font-size: 0.875em;
}

/* SHOUTOUT BUTTON */
.chat-panel-shoutout {
  margin-left: auto;
  background: var(--theme-color-9146ff);
  border: none;
  color: white;
  font-size: 0.75em;
  padding: 0.25em 0.5em;
  border-radius: 0.25em;
  cursor: pointer;
}

.chat-panel-shoutout:hover {
  background: var(--theme-color-b37aff);
}

/* MESSAGE TEXT */
.chat-panel-msg-body {
  margin-left: 2.125em;
  margin-top: 2px;
  font-size: 0.875em;
  color: var(--message-font-color);
}

/* INPUT ROW */
.chat-panel-input-row {
  display: flex;
  flex: auto;
}

.chat-panel-input {
  flex: 1;
  padding: 0.625em;
  font-size: 0.875em;
  font-family: inherit;
  font-weight: 800;
  border-radius: 0px;
  border-bottom-left-radius: 1.25em;
  border: 1px solid var(--theme-color-afafaf);
  box-shadow: inset 0px 0px 5px var(--theme-rgba-0-0-0-0_1);
  background: var(--theme-color-fafafa);
  color: #000 !important;
  caret-color: #000 !important;
  margin-left: 1.25em;
}

.chat-panel-quick-row {
  margin-right: 1.25em;
}

#toolbar .chat-panel-quick-row .quick-reply-btn {
  background: var(--frame-bg-raised);
  border: 1px solid var(--frame-border);
  font-family: inherit;
}

#toolbar .chat-panel-quick-row .quick-reply-btn:hover {
  background: var(--theme-color-6ecfff) !important;
}

.message-size-body {
  display: flex;
  flex-direction: column;
  gap: 1em;
  min-height: 0;
}

.message-size-helper {
  margin: 0;
  color: var(--message-font-color-soft);
  font-weight: 700;
}

.message-size-current {
  font-size: 1em;
  font-weight: 800;
  color: var(--font-color);
}

.message-size-value {
  color: var(--highlight);
}

.message-size-slider-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75em;
  width: 100%;
}

body.chatpanel-view #frame #display #contentframe {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

body.chatpanel-view #frame #display #toolbar {
  flex: 0 0 auto;
  height: auto;
  container-name: chatpanel-toolbar;
  container-type: inline-size;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: flex-start;
  box-sizing: border-box;
  row-gap: 0.375em;
  column-gap: 0.75em;
  padding-top: 0.625em;
  padding-right: 1.75em;
  padding-bottom: 1em;
  padding-left: 1.75em;
}

body.chatpanel-view #frame #display #toolbar .chat-panel-input-row,
body.chatpanel-view #frame #display #toolbar .chat-panel-quick-row {
  width: auto;
  min-width: 0;
}

body.chatpanel-view #frame #display #toolbar .chat-panel-quick-row {
  display: flex;
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  max-width: none;
  flex-wrap: nowrap;
  gap: 0.625em;
  justify-content: flex-start;
  margin-left: auto;
  margin-right: 0;
  align-self: stretch;
}

body.chatpanel-view #frame #display #toolbar .chat-panel-quick-row .quick-reply-btn {
  flex: 0 0 auto;
  min-width: max-content;
  max-width: none;
  border-radius: 0;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

body.chatpanel-view #frame #display #toolbar .chat-panel-quick-row .quick-reply-btn:first-child {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

body.chatpanel-view #frame #display #toolbar .chat-panel-quick-row .quick-reply-btn:last-child {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

@container chatpanel-toolbar (max-width: 58rem) {
  body.chatpanel-view #frame #display #toolbar .chat-panel-input-row,
  body.chatpanel-view #frame #display #toolbar .chat-panel-quick-row {
    width: 100%;
    flex: 0 0 100%;
  }
  body.chatpanel-view #frame #display #toolbar .chat-panel-quick-row {
    flex-wrap: wrap;
    gap: 0.625em;
    margin-left: 0;
  }
  body.chatpanel-view #frame #display #toolbar .chat-panel-quick-row .quick-reply-btn {
    flex: 1 1 clamp(140px, 24%, 220px);
    border-radius: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  body.chatpanel-view #frame #display #toolbar .chat-panel-quick-row .quick-reply-btn:first-child,
  body.chatpanel-view #frame #display #toolbar .chat-panel-quick-row .quick-reply-btn:last-child {
    border-radius: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}
.message-size-bound {
  font-size: 0.75em;
  font-weight: 800;
  color: var(--message-font-color-soft);
}

.message-size-slider {
  width: 100%;
  accent-color: var(--highlight);
}

.message-size-auto-scroll-toggle {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75em;
  padding: 0.75em 0.875em;
  background-color: var(--frame-bg-raised);
  border: 1px solid var(--frame-border);
  border-radius: 0.625em;
}
.message-size-auto-scroll-toggle .il-toggle-label {
  font-size: 0.875em;
  font-weight: 800;
  text-transform: none;
  letter-spacing: normal;
  opacity: 1;
  color: var(--font-color);
}
.message-size-auto-scroll-toggle .il-toggle-track {
  flex-shrink: 0;
}

.chat-panel-send-btn {
  padding: 0.625em 1em;
  background: var(--theme-color-00aaff) !important;
  border-radius: 0px;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  font-weight: bold;
}

.chat-panel-send-btn:hover {
  background: var(--theme-color-6ecfff) !important;
}

.chat-message-action-rail {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--chat-action-rail-width);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--chatpanel-action-gap);
  padding: var(--chatpanel-action-padding-y);
  z-index: 10000;
  overflow: visible;
  pointer-events: auto;
}

.chat-message-action-slot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.chat-message-action-slot--shoutout {
  width: var(--chatpanel-shoutout-slot-width);
}

.chat-message-action-slot--shoutout > .chat-so-btn {
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}

.chat-message-action-slot--shoutout > .chat-so-btn .chat-mod-btn-icon {
  width: auto;
  height: auto;
  font-size: var(--chatpanel-shoutout-icon-size);
  line-height: 1;
  color: var(--theme-color-b983ff);
}

.chat-message-action-slot--more > .chat-mod-more,
.chat-message-action-slot--reply > .chat-mod-reply,
.chat-message-action-slot--shoutout > .chat-so-btn {
  transition: background-color 0.8s ease-in-out, border-color 0.8s ease-in-out, box-shadow 0.8s ease-in-out, color 0.8s ease-in-out;
}

.chat-message-action-slot--more > .chat-mod-more:hover:not(:disabled),
.chat-message-action-slot--reply > .chat-mod-reply:hover:not(:disabled),
.chat-message-action-slot--shoutout > .chat-so-btn:hover:not(:disabled) {
  transition-duration: 120ms;
}

.chat-message-action-slot--reply {
  width: auto;
  height: 100%;
}

.chat-message-action-slot--reply > .chat-mod-reply {
  width: auto;
  height: 100%;
  aspect-ratio: 1/1;
  min-width: var(--chatpanel-action-button-size);
  max-width: var(--chatpanel-action-button-size);
  min-height: var(--chatpanel-action-button-size);
  max-height: var(--chatpanel-action-button-max-height);
  padding: 0;
}

.chat-message-action-slot--reply > .chat-mod-reply .chat-mod-btn-icon {
  width: var(--chatpanel-action-icon-size-lg);
  height: var(--chatpanel-action-icon-size-lg);
  color: var(--theme-color-000000);
}

.chat-message-action-slot--delete {
  width: var(--chatpanel-delete-slot-width);
}

.chat-message-action-slot--more {
  width: auto;
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.chat-message-action-slot--more > .chat-mod-more {
  position: relative;
  width: auto;
  height: 100%;
  aspect-ratio: 1/1;
  min-width: var(--chatpanel-action-button-size);
  max-width: var(--chatpanel-action-button-size);
  min-height: var(--chatpanel-action-button-size);
  max-height: var(--chatpanel-action-button-max-height);
  padding: 0;
  border-radius: 999px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  z-index: 30;
}

.chat-message-action-popout {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--chatpanel-action-popout-size);
  height: var(--chatpanel-action-popout-size);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 11000;
  overflow: visible;
}

.chat-message-action-popout .chat-message-action-slot {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--chatpanel-action-popout-size);
  height: var(--chatpanel-action-popout-size);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 120ms ease;
  pointer-events: none;
  z-index: 12000;
}

.chat-message-action-rail.is-popout-rendered .chat-message-action-popout {
  display: block;
  pointer-events: none;
}

.chat-message-action-rail.is-popout-rendered .chat-message-action-popout .chat-message-action-slot {
  display: flex;
}

.chat-message-action-rail.is-expanded .chat-message-action-popout .chat-message-action-slot {
  opacity: 1;
}

.chat-message-action-rail.is-expanded.is-popout-interactive .chat-message-action-popout .chat-message-action-slot {
  pointer-events: auto;
}

.chat-message-action-slot--ban-popout {
  transition-delay: 50ms;
}

.chat-message-action-slot--delete-popout {
  transition-delay: 100ms;
}

.chat-message-action-slot--timeout-popout {
  transition-delay: 0ms;
}

.chat-message-action-rail.is-expanded .chat-message-action-slot--ban-popout {
  transform: translate(calc(-50% - var(--chatpanel-action-popout-offset)), -50%) scale(1);
}

.chat-message-action-rail.is-expanded .chat-message-action-slot--delete-popout {
  transform: translate(-50%, calc(-50% + var(--chatpanel-action-popout-offset))) scale(1);
}

.chat-message-action-rail.is-expanded .chat-message-action-slot--timeout-popout {
  transform: translate(-50%, calc(-50% - var(--chatpanel-action-popout-offset))) scale(1);
}

.chat-mod-btn,
.chat-so-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: var(--chatpanel-content-gap);
  min-height: var(--chatpanel-action-button-size);
  min-width: 0;
  width: 100%;
  height: 100%;
  max-height: var(--chatpanel-action-button-max-height);
  padding: var(--chatpanel-action-padding-y) var(--chatpanel-action-padding-x);
  border-radius: var(--chatpanel-action-radius);
  border: 1px solid transparent;
  font-size: var(--chatpanel-action-label-size);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 120ms ease, border-color 120ms ease, opacity 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

.chat-mod-btn .chat-mod-btn-icon,
.chat-so-btn .chat-mod-btn-icon {
  width: var(--chatpanel-action-icon-size);
  height: var(--chatpanel-action-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.chat-mod-btn .chat-mod-btn-icon svg,
.chat-so-btn .chat-mod-btn-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chat-mod-btn .chat-mod-btn-icon img,
.chat-so-btn .chat-mod-btn-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.chat-mod-btn .chat-mod-btn-label,
.chat-so-btn .chat-mod-btn-label {
  white-space: nowrap;
}

.chat-mod-btn.is-icon-only .chat-mod-btn-label,
.chat-so-btn.is-icon-only .chat-mod-btn-label {
  display: none;
}

.chat-message-action-popout .chat-mod-btn {
  min-height: 0;
  max-height: none;
  width: 100%;
  height: 100%;
  padding: var(--chatpanel-action-padding-y);
}

.chat-so-btn,
.chat-mod-reply {
  background-color: var(--frame-bg-muted);
  box-shadow: inset 0px 0px 5px var(--frame-shadow-soft);
  color: var(--theme-color-ffffff);
  border-color: var(--frame-border);
}

.chat-so-btn {
  position: relative;
}

.chat-so-btn:hover:not(:disabled),
.chat-so-btn.on-cooldown {
  background: var(--theme-color-b983ff);
}

.chat-so-btn.on-cooldown {
  opacity: 0.85;
}

.chat-so-btn .so-cooldown {
  position: absolute;
  top: var(--chatpanel-action-padding-y);
  left: var(--chatpanel-action-padding-y);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--chatpanel-so-cooldown-min-width);
  padding: calc(var(--chatpanel-action-padding-y) * 0.25) var(--chatpanel-action-padding-x);
  border-radius: 999px;
  font-size: var(--chatpanel-so-cooldown-size);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.chat-so-btn .so-cooldown:empty {
  display: none;
}

.chat-mod-reply:hover:not(:disabled),
.chat-mod-reply.is-active {
  background: var(--theme-color-35e182);
}

.chat-mod-more {
  background-color: var(--frame-bg-muted);
  box-shadow: inset 0px 0px 5px var(--frame-shadow-soft);
  color: var(--theme-color-000000);
  border-color: var(--frame-border);
}

.chat-mod-more .chat-mod-btn-icon {
  width: var(--chatpanel-action-icon-size-lg);
  height: var(--chatpanel-action-icon-size-lg);
}

.chat-message-action-rail.is-expanded .chat-mod-more,
.chat-mod-more:hover:not(:disabled) {
  background: var(--highlight);
  border-color: var(--frame-border);
}

.chat-message-action-rail.is-expanded .chat-mod-more {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.chat-mod-timeout {
  background-color: #f5c842;
  box-shadow: 0 0.125em 0.625em color-mix(in srgb, #f5c842 45%, transparent), 0 0.0625em 0.125em var(--theme-rgba-0-0-0-0_35);
  color: var(--theme-color-000000);
  border-color: color-mix(in srgb, #f5c842 80%, white);
}

.chat-mod-timeout .chat-mod-btn-label {
  white-space: normal;
  line-height: 0.9;
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.chat-mod-ban {
  background-color: #ef4444;
  box-shadow: 0 0.125em 0.625em color-mix(in srgb, #ef4444 45%, transparent), 0 0.0625em 0.125em var(--theme-rgba-0-0-0-0_35);
  color: var(--theme-color-000000);
  border-color: color-mix(in srgb, #ef4444 80%, white);
  border-radius: 0.5em;
  pointer-events: auto;
}

.chat-mod-delete {
  background-color: #f97316;
  box-shadow: 0 0.125em 0.625em color-mix(in srgb, #f97316 45%, transparent), 0 0.0625em 0.125em var(--theme-rgba-0-0-0-0_35);
  color: var(--theme-color-000000);
  border-color: color-mix(in srgb, #f97316 80%, white);
  border-radius: 0.5em;
  pointer-events: auto;
}

.chat-mod-delete.is-icon-only .chat-mod-btn-icon {
  width: 3.125em;
  height: 3.125em;
}

.chat-mod-ban:hover:not(:disabled) {
  background: color-mix(in srgb, #ef4444 85%, white);
}

.chat-mod-timeout:hover:not(:disabled) {
  background: color-mix(in srgb, #f5c842 85%, white);
}

.chat-mod-delete:hover:not(:disabled) {
  background: color-mix(in srgb, #f97316 85%, white);
}

.chat-mod-btn:disabled,
.chat-so-btn:disabled {
  background: var(--theme-color-cccccc);
  border-color: var(--theme-color-999999);
  color: var(--theme-color-444444);
  opacity: 0.45;
  cursor: not-allowed;
}

.chat-mod-btn:focus-visible,
.chat-so-btn:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 1px;
}

#frame[data-layout=stacked] #toolbar {
  flex-wrap: wrap;
}

#frame[data-layout=stacked] #toolbar .chat-panel-input-row,
#frame[data-layout=stacked] #toolbar .chat-panel-quick-row {
  width: 100%;
  flex: 0 0 100%;
}

#frame[data-layout=stacked] #toolbar .chat-input-wrapper {
  margin-left: 0;
}

#frame[data-layout=stacked] #toolbar .chat-panel-input {
  margin-left: 0;
}

#frame[data-layout=stacked] #toolbar .chat-panel-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625em;
  justify-content: center;
  margin-left: 0;
  margin-right: 0;
}

#frame[data-layout=stacked] #toolbar .chat-panel-quick-row .quick-reply-btn {
  flex: 1 1 auto;
  border-radius: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

#frame[data-layout=stacked] #toolbar .chat-panel-quick-row .quick-reply-btn:first-child,
#frame[data-layout=stacked] #toolbar .chat-panel-quick-row .quick-reply-btn:last-child {
  border-radius: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.reply-context {
  display: none;
  align-items: center;
  gap: 0.5em;
  background: var(--theme-color-f0fff4);
  border: 1px solid var(--theme-color-b2f2d3);
  color: #0f5132;
  padding: 0.375em 0.625em;
  border-radius: 0.5em;
  margin: 0.375em 1.25em 0 1.25em;
  font-weight: 700;
  font-size: 0.8125em;
}

.reply-context .reply-context-cancel {
  background: transparent;
  border: none;
  color: #0f5132;
  font-size: 1em;
  cursor: pointer;
  padding: 0 0.25em;
}

.reply-context .reply-context-cancel:hover {
  color: #0a3d24;
}

/* System message variants in chat panel */
.chat-panel-root .chat-message.ad-warning-message,
.chat-panel-root .chat-message.ad-snooze-message,
.chat-panel-root .chat-message.ban-system-message,
.chat-panel-root .chat-message.raid-system-message,
.chat-panel-root .chat-message.timeout-system-message {
  background-color: var(--frame-bg-subtle);
  box-shadow: inset 0 0 10px var(--frame-shadow-soft);
  border: 1px solid var(--frame-border);
}

.chat-panel-root .chat-message.ad-snooze-message .username {
  color: var(--theme-color-2ecc71);
}

.chat-panel-root .chat-message.timeout-system-message .username {
  color: #d18a36;
}

.chat-panel-root .chat-message.timeout-system-message .message-text {
  color: #8a5a1d;
}

.chat-panel-root .reply-pill,
.chat-panel-root .timeout-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px calc(var(--chatpanel-message-size-px) * 0.4);
  border-radius: var(--chatpanel-action-radius);
  font-size: var(--chatpanel-action-label-size);
}

.chat-panel-root .timeout-pill {
  background: #d18a36;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.03em;
}

/* ── PP Footer Strip ───────────────────────────────────── */
.pp-active {
  box-shadow: 0 0 8px color-mix(in srgb, var(--highlight) 60%, transparent);
}

.pp-footer-strip {
  display: flex;
  flex-direction: row;
  gap: 4px;
  height: -webkit-fill-available !important;
  width: 100%;
}

.pp-footer-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
  width: 100%;
}

.pp-footer-title {
  font-weight: 700;
  font-size: 1.4em;
  color: var(--highlight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  word-wrap: break-word;
  padding: 5px 0;
}

.pp-streaming-strip {
  background: transparent;
  height: -webkit-fill-available;
  width: 100%;
}

/* ── Bars ──────────────────────────────────────────────── */
.pp-bar-row {
  position: relative;
  height: 20px;
  background: var(--frame-bg-muted);
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
  padding: 5px 0;
}

.pp-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: var(--highlight);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.pp-bar-fill--pred {
  background: var(--theme-color-2ecc71);
}

.pp-bar-label {
  position: absolute;
  top: 0;
  left: 4px;
  right: 4px;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em !important;
  font-weight: 700;
  color: var(--font-color);
  pointer-events: none;
  z-index: 1;
}

/* ── Overlay Bars ──────────────────────────────────────── */
.pp-overlay-bar-row {
  position: relative;
  height: 24px;
  background: var(--frame-bg-muted);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
  width: auto;
}

.pp-overlay-bar-label {
  position: absolute;
  top: 0;
  left: 6px;
  right: 6px;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--font-color);
  pointer-events: none;
  z-index: 1;
}

/* ── Winner / Loser States ─────────────────────────────── */
@keyframes pp-winner-pulse {
  0%, 100% {
    box-shadow: 0 0 4px var(--highlight);
  }
  50% {
    box-shadow: 0 0 12px var(--highlight), 0 0 20px color-mix(in srgb, var(--highlight) 40%, transparent);
  }
}
@keyframes pp-winner-pulse-pred {
  0%, 100% {
    box-shadow: 0 0 4px var(--theme-color-2ecc71);
  }
  50% {
    box-shadow: 0 0 12px var(--theme-color-2ecc71), 0 0 20px color-mix(in srgb, var(--theme-color-2ecc71) 40%, transparent);
  }
}
.pp-bar-winner {
  animation: pp-winner-pulse 1.2s ease-in-out infinite;
  border-radius: 2px;
}

.pp-bar-winner--pred {
  animation: pp-winner-pulse-pred 1.2s ease-in-out infinite;
  border-radius: 2px;
}

.pp-bar-loser {
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

/* ── Status / Actions ──────────────────────────────────── */
.pp-winner-btn {
  width: 100%;
  margin-top: 2px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--theme-color-2ecc71);
  border-radius: var(--il-radius-sm);
  background: var(--frame-bg-soft);
  color: var(--theme-color-2ecc71);
}
.pp-winner-btn:hover {
  background: var(--theme-color-2ecc71);
  color: #fff;
}

.pp-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--message-font-color-soft);
  padding: 4px 0;
}

/* ── Form ──────────────────────────────────────────────── */
.pp-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}

.pp-form-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--font-color);
}

.pp-choices {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pp-add-choice {
  background: none;
  border: 1px dashed var(--frame-border);
  border-radius: var(--il-radius-sm);
  color: var(--highlight);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
}
.pp-add-choice:hover {
  background: var(--frame-bg-soft);
}

.pp-custom-duration {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
}

.pp-duration-slider {
  width: 100%;
  accent-color: var(--highlight);
  cursor: pointer;
}

.pp-duration-feedback {
  font-size: 11px;
  font-weight: 700;
  color: var(--message-font-color-soft);
  text-align: center;
}

.pp-actions {
  padding-top: 8px;
}

/* ── Live ──────────────────────────────────────────────── */
.pp-live {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
}

.pp-live-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── Pill (chatInput) ──────────────────────────────────── */
.pp-poll-pill,
.pp-pred-pill {
  margin-left: auto;
}

/* ── socialmedia container overrides (chatPanel + streaming) ── */
.chatpanel-view #navigation socialmedia {
  height: 20vh;
  overflow: hidden;
}

.streaming-view #navigation socialmedia {
  background-color: transparent !important;
  border-color: transparent !important;
  height: fit-content !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: visible;
}

.pp-stream-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--highlight);
  padding: 2px 0 4px 0;
}

/* ============================================
   AD TIMER UI — Dual-ring design
============================================ */
.ad-timer-box {
  position: relative;
  width: auto;
  height: 10em;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.3125em;
  transition: transform 0.3s ease;
}

.ad-timer-box.active-ad {
  transform: scale(1.05);
}

/* ---- Raid status (unchanged) ---- */
.raid-status-box {
  display: flex;
  flex-direction: column;
  gap: 0.375em;
  padding: 0.625em;
  margin-top: 0.625em;
  background: var(--theme-color-fafafa);
  border: 1px solid var(--theme-color-d0d0d0);
  border-radius: 0.5em;
  box-shadow: 0 1px 3px var(--theme-rgba-0-0-0-0_08);
}

.raid-status-title {
  font-weight: 700;
  font-size: 0.875em;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.375em;
  cursor: pointer;
  user-select: none;
}

.raid-status-title::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--theme-color-64748b);
  transition: transform 0.2s ease;
}

.raid-status-box.is-expanded .raid-status-title::after {
  transform: rotate(180deg);
}

.raid-status-target,
.raid-countdown-label {
  font-size: 0.8125em;
  color: #111;
}

.raid-countdown-label.on-cooldown {
  color: #d14343;
  font-weight: 700;
}

.raid-countdown-label.raiding-now {
  color: #0f5132;
  font-weight: 800;
}

.raid-timer-row {
  display: flex;
  flex-direction: column;
  gap: 0.375em;
}

.raid-progress {
  position: relative;
  width: 100%;
  height: 0.5em;
  background: var(--theme-color-e5e7eb);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px var(--theme-rgba-0-0-0-0_08);
}

.raid-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--theme-color-3a96dd), var(--theme-color-2bd4a3));
  transition: width 0.25s ease;
}

.raid-progress-fill.blinking {
  animation: raidProgressBlink 0.7s ease-in-out infinite;
}

@keyframes raidProgressBlink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
  100% {
    opacity: 1;
  }
}
.raid-incoming {
  margin-top: 0.5em;
  padding-top: 0.5em;
  border-top: 1px solid var(--theme-color-e5e7eb);
}

.raid-incoming-title {
  font-weight: 700;
  font-size: 0.8125em;
  color: #0f172a;
  margin-bottom: 0.25em;
}

.raid-incoming-detail {
  font-size: 0.8125em;
  color: #111;
}

.raid-incoming-detail.active {
  color: #0f5132;
  font-weight: 700;
}

.ad-timer-title {
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 0.375em;
  color: #222;
}

/* ---- Ring wrapper (positions center overlay over the SVG) ---- */
.ad-timer-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- SVG Ring ---- */
.ad-timer-svg {
  width: 8.4375em;
  height: 8.4375em;
  overflow: visible;
}

.ad-ring-track {
  fill: none;
  stroke: #ccc;
  stroke-width: 6;
  stroke-linecap: round;
}

.ad-ring-progress {
  fill: none;
  stroke: #e07070;
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s ease, stroke 0.25s ease;
}

.ad-ring-dot {
  fill: #e07070;
  stroke: #fff;
  stroke-width: 1.5;
  transition: fill 0.25s ease;
}

/* ---- Center overlay ---- */
.ad-timer-center {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  gap: 0.125em;
}

/* Ad cooldown label (above time) */
.ad-timer-cooldown {
  font-size: 0.6875em;
  font-weight: 600;
  color: #999;
  user-select: none;
  white-space: nowrap;
  text-align: center;
}

/* Snooze label (above pause icon) */
.ad-timer-snooze {
  font-size: 0.6875em;
  font-weight: 600;
  color: #999;
  user-select: none;
  white-space: nowrap;
  text-align: center;
}

/* Countdown time */
.ad-timer-time {
  font-size: 1.375em;
  font-weight: bold;
  color: #e07070;
  cursor: default;
  user-select: none;
  transition: color 0.25s ease;
  white-space: nowrap;
  line-height: 1;
}

/* Pause/snooze icon */
.ad-timer-pause {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  cursor: pointer;
  pointer-events: all;
  padding: 0.25em;
  transition: opacity 0.2s ease;
}
.ad-timer-pause span {
  display: block;
  width: 0.25em;
  height: 1em;
  background: #e07070;
  border-radius: 2px;
  transition: background 0.25s ease;
}
.ad-timer-pause:hover {
  opacity: 0.7;
}

/* ---- State colors ---- */
.ad-timer-box.time-warn {
  height: 9em;
}
.ad-timer-box.time-warn .ad-ring-progress {
  stroke: var(--theme-color-ff9d00);
}
.ad-timer-box.time-warn .ad-ring-dot {
  fill: var(--theme-color-ff9d00);
}
.ad-timer-box.time-warn .ad-timer-time {
  color: var(--theme-color-ff9d00);
}
.ad-timer-box.time-warn .ad-timer-pause span {
  background: var(--theme-color-ff9d00);
}

.ad-timer-box.time-running .ad-ring-progress {
  stroke: var(--theme-color-ff4444);
}
.ad-timer-box.time-running .ad-ring-dot {
  fill: var(--theme-color-ff4444);
}
.ad-timer-box.time-running .ad-timer-time {
  color: var(--theme-color-ff4444);
  font-size: 1.125em;
}
.ad-timer-box.time-running .ad-timer-pause span {
  background: var(--theme-color-ff4444);
}
.ad-timer-box.time-running .ad-timer-svg {
  animation: adPulse 1.6s ease-in-out infinite;
}

.ad-timer-box.time-disabled .ad-ring-progress {
  stroke: #999;
}
.ad-timer-box.time-disabled .ad-ring-dot {
  fill: #999;
}
.ad-timer-box.time-disabled .ad-timer-time {
  color: #999;
}
.ad-timer-box.time-disabled .ad-timer-pause {
  cursor: not-allowed;
}

/* Snooze info (manual mode quota) */
.ad-snooze-info {
  width: auto;
  font-size: 0.75em;
  color: #000;
  font-weight: 700;
  user-select: none;
  text-align: center;
  min-height: 1em;
  transition: color 0.25s ease;
}

.snooze-disabled {
  color: #666 !important;
}

/* Pulse animation */
@keyframes adPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
.running-pulse {
  animation: adPulse 1.6s ease-in-out infinite;
}

/* Done burst animation */
@keyframes adDoneBurst {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.09);
  }
}
.ad-timer-box.time-done .ad-ring-progress {
  stroke: #22c55e;
}
.ad-timer-box.time-done .ad-ring-dot {
  fill: #22c55e;
}
.ad-timer-box.time-done .ad-timer-time {
  color: #22c55e;
}
.ad-timer-box.time-done .ad-timer-pause span {
  background: #22c55e;
}
.ad-timer-box.time-done .ad-timer-svg {
  animation: adDoneBurst 0.3s ease-in-out 4;
}

#contentframe::after {
  background: transparent !important;
}

/* Make sure contentframe has relative positioning */
#contentframe {
  position: relative;
}

/* ============================================================
   EMOTE PICKER (Bottom of contentframe)
   Styles live here so the watcher doesn't overwrite them.
============================================================ */
.emote-picker-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--frame-bg-muted);
  border-top: 2px solid var(--theme-rgba-145-70-255-0_3);
  padding: 0.75em 0.9375em;
  display: flex;
  align-items: center;
  gap: 0.75em;
  box-shadow: 0 -4px 20px var(--theme-rgba-0-0-0-0_4);
  z-index: 100;
  backdrop-filter: blur(10px);
}

.emote-picker-label {
  font-size: 0.8125em;
  font-weight: 600;
  color: #2e2e2e;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: -25px;
  display: none;
}

.emote-picker-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
  border-radius: 0.5em;
  background: var(--frame-border);
}

.emote-scroll-indicator {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 10px;
  border-radius: 999px;
  background-color: var(--theme-rgba-0-0-0-0_08);
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.emote-scroll-thumb {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--theme-rgba-250-250-250-0_5);
  border: 1px solid var(--theme-color-ffffff);
  border-radius: 999px;
  transition: width 0.12s ease, left 0.12s ease;
  box-shadow: 10px 0px 14px var(--theme-rgba-0-0-0-0_8), -10px 0px 14px var(--theme-rgba-0-0-0-0_8);
  cursor: grab;
  pointer-events: auto;
}

.emote-scroll-thumb.hidden {
  display: none;
}

.emote-picker-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5em;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0.75em 1.5625em;
  user-select: none;
  scroll-behavior: auto;
  align-items: flex-end;
  white-space: nowrap;
  width: auto;
  /* Hide scrollbar but keep functionality */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.emote-picker-row::-webkit-scrollbar {
  display: none;
}

.emote-group {
  display: inline-flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.5em;
  padding-bottom: 5px;
  margin-right: 0.625em;
  flex-shrink: 0;
  border-bottom: 4px solid var(--emote-accent-0);
}

.emote-group-title {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  font-size: 0.75em;
  font-weight: 700;
  color: #1f1f1f;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
  padding-left: 4px;
  align-self: center;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.emote-group-title-label {
  display: inline-block;
}

.emote-group-title-arrow {
  position: absolute;
  left: 4px;
  top: 100%;
  width: 95%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.7em;
  line-height: 0.9;
  transform: rotate(180deg);
  opacity: 0.75;
  cursor: pointer;
  user-select: none;
}

.emote-group-title:hover {
  color: var(--emote-accent-0);
  transform: translateY(-1px);
}

.emote-group-row {
  display: inline-flex;
  gap: 0.5em;
  align-items: flex-end;
  flex-wrap: nowrap;
  white-space: nowrap;
  border: none;
  padding: 0 0 0 5px;
  height: 3.4375em;
  width: auto;
  overflow: visible;
}

.emote-group-row.collapsed {
  width: 144px;
  overflow: hidden;
  scrollbar-width: none;
}

.emote-group-row.expanded {
  width: auto;
  overflow: visible;
}

.emote-collapse-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25em;
  height: 2.25em;
  margin-left: 0.375em;
  margin-bottom: 0.2em;
  background: var(--theme-color-e0e0e0);
  border: 2px solid var(--theme-color-c0c0c0);
  border-radius: 0.5em;
  color: #444;
  font-weight: 900;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.emote-collapse-btn:hover {
  background: var(--theme-color-d4d4d4);
  border-color: var(--theme-color-a0a0a0);
  transform: translateY(-1px);
}

.emote-group-row.expanded .emote-collapse-btn {
  display: flex;
}

.emote-picker-item {
  flex-shrink: 0;
  width: 2.5em;
  height: 2.5em;
  background: var(--theme-color-fafafa);
  border: 2px solid var(--theme-color-9e9e9e);
  border-radius: 0.5em;
  padding: 0.25em;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.emote-picker-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.emote-picker-item:hover {
  background: var(--theme-color-ffffff);
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 0px 5px var(--theme-rgba-0-0-0-0_5);
}

.emote-picker-item:active {
  transform: translateY(0) scale(0.95);
}

.emote-loading {
  color: #888;
  font-size: 0.8125em;
  padding: 0.5em 0.75em;
  text-align: center;
}

/* Gradient fade on edges for scroll hint */
.emote-picker-scroll::before,
.emote-picker-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  pointer-events: none;
  z-index: 1;
}

.emote-picker-scroll::before {
  left: 0;
  background: linear-gradient(90deg, var(--frame-shadow-strong) 0%, transparent 100%);
}

.emote-picker-scroll::after {
  right: 0;
  background: linear-gradient(270deg, var(--frame-shadow-strong) 0%, transparent 100%);
}

/* ============================================
   LEGACY VIEWPORT MEDIA QUERIES
   ============================================
   COMMENTED OUT: Migrating to container-fluid responsive design
   See: docs/refactor/responsive-design.md
   FALLBACK: Uncomment if container-fluid approach causes issues
   ============================================ */
/*
@media (max-width: 768px) {
  .emote-picker-container {
    padding: 8px 10px;
    gap: 8px;
  }

  .emote-picker-label {
    font-size: 11px;
  }

  .emote-picker-item {
    width: 36px;
    height: 36px;
  }
}
*/
#frame #display #contentframe {
  --event-glow-thickness: 3px;
  --event-glow-inset: 0px;
  --event-glow-radius: 1.5625em;
  --event-glow-speed: 2.6s;
  --event-glow-pulse: 1.9s;
  --event-glow-fade: 4.2s;
  --event-glow-opacity: 0.82;
  --event-glow-core: var(--highlight);
  --event-glow-frame: var(--frame-bg);
  --event-glow-variant-1: color-mix(in srgb, var(--frame-bg) 70%, var(--highlight) 30%);
  --event-glow-variant-2: color-mix(in srgb, var(--frame-bg) 50%, var(--highlight) 50%);
  --event-glow-variant-3: var(--highlight-soft);
  --event-glow-variant-4: var(--highlight-bright);
  --event-glow-variant-5: var(--highlight-deep);
  --event-glow-fill: color-mix(in srgb, var(--highlight) 35%, transparent);
  --event-glow-colors: var(--event-glow-variant-1), var(--event-glow-variant-4),
    var(--event-glow-core), var(--event-glow-variant-2), var(--event-glow-variant-5),
    var(--event-glow-frame), var(--event-glow-variant-3), var(--event-glow-core),
    var(--event-glow-variant-1);
  --event-glow-spill: 27%;
}

#frame #display #contentframe::after {
  opacity: 0;
  transition: opacity 4.2s ease-out, filter 4.2s ease-out, box-shadow 4.2s ease-out;
}

#frame #display #contentframe.event-border-glow-active::after {
  content: "";
  position: absolute;
  inset: var(--event-glow-inset);
  pointer-events: none;
  z-index: 25;
  opacity: var(--event-glow-opacity);
  border-top-left-radius: var(--event-glow-radius);
  border-bottom-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  background: linear-gradient(90deg, var(--event-glow-colors)) bottom/320% var(--event-glow-thickness) no-repeat, linear-gradient(180deg, var(--event-glow-colors)) left/var(--event-glow-thickness) 320% no-repeat, linear-gradient(180deg, var(--event-glow-colors)) right/var(--event-glow-thickness) 320% no-repeat, linear-gradient(to top, var(--event-glow-fill), transparent 70%) bottom/100% var(--event-glow-spill) no-repeat, linear-gradient(to right, var(--event-glow-fill), transparent 70%) left/var(--event-glow-spill) 100% no-repeat, linear-gradient(to left, var(--event-glow-fill), transparent 70%) right/var(--event-glow-spill) 100% no-repeat, radial-gradient(circle at 18% 100%, color-mix(in srgb, var(--event-glow-core) 36%, transparent), transparent 60%), radial-gradient(circle at 82% 100%, color-mix(in srgb, var(--event-glow-core) 36%, transparent), transparent 60%) !important;
  animation: event-border-glow-flow var(--event-glow-speed) linear infinite, event-border-glow-pulse var(--event-glow-pulse) ease-in-out infinite;
  filter: saturate(1.2) brightness(1.1);
  box-shadow: inset 0 -14px 28px color-mix(in srgb, var(--event-glow-core) 32%, transparent), inset 0 0 21px color-mix(in srgb, var(--event-glow-core) 20%, transparent);
}

#frame #display #contentframe.event-border-glow-active.event-border-glow-fade::after {
  animation: event-border-glow-flow var(--event-glow-speed) linear infinite, event-border-glow-fadeout var(--event-glow-fade) ease-out forwards;
}

@keyframes event-border-glow-flow {
  0% {
    background-position: 0% 100%, 0% 0%, 100% 0%, 0% 100%, 0% 0%, 100% 0%, 0 100%, 100% 100%;
    background-size: 320% var(--event-glow-thickness), var(--event-glow-thickness) 320%, var(--event-glow-thickness) 320%, 100% var(--event-glow-spill), var(--event-glow-spill) 100%, var(--event-glow-spill) 100%, auto, auto;
  }
  50% {
    background-position: 140% 100%, -8% 70%, 108% 85%, 0% 100%, 0% 0%, 100% 0%, 0 100%, 100% 100%;
    background-size: 360% var(--event-glow-thickness), var(--event-glow-thickness) 340%, var(--event-glow-thickness) 360%, 100% var(--event-glow-spill), var(--event-glow-spill) 100%, var(--event-glow-spill) 100%, auto, auto;
  }
  100% {
    background-position: 200% 100%, 0% 200%, 100% 200%, 0% 100%, 0% 0%, 100% 0%, 0 100%, 100% 100%;
    background-size: 320% var(--event-glow-thickness), var(--event-glow-thickness) 320%, var(--event-glow-thickness) 320%, 100% var(--event-glow-spill), var(--event-glow-spill) 100%, var(--event-glow-spill) 100%, auto, auto;
  }
}
@keyframes event-border-glow-fadeout {
  0% {
    opacity: var(--event-glow-opacity);
  }
  100% {
    opacity: 0;
  }
}
@keyframes event-border-glow-pulse {
  0%, 100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}
/* Event glow drops overlay */
.event-glow-drops {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 26;
  overflow: hidden;
  opacity: 1;
  transition: opacity var(--event-glow-fade, 4.2s) ease-out;
}

.event-glow-drops.fade-out {
  opacity: 0;
}

.event-glow-line {
  position: absolute;
  width: 1.5px;
  height: 100%;
  top: 0;
  background: transparent;
  overflow: hidden;
}

.event-glow-drop {
  position: absolute;
  width: 100%;
  height: 20vh;
  bottom: -50%;
  left: 0;
  background: linear-gradient(to top, transparent 0%, color-mix(in srgb, var(--event-glow-core, var(--highlight)) 80%, transparent) 75%, color-mix(in srgb, var(--event-glow-core, var(--highlight)) 80%, transparent) 100%);
  animation: event-glow-drop-up 6s cubic-bezier(0.4, 0.26, 0, 0.97) infinite;
}

@keyframes event-glow-drop-up {
  0% {
    bottom: -50%;
  }
  100% {
    bottom: 110%;
  }
}
/* Fullscreen mode support */
body.streaming-view .event-glow-drops,
body.streaming-view.streaming-fullscreen .event-glow-drops {
  z-index: 26;
}

/* ============================================================
   HIGHLIGHT MESSAGE BUTTON (ON AIR style)
============================================================ */
.chat-panel-highlight-btn {
  width: 3em;
  height: 3em;
  border: 3px solid var(--theme-rgba-145-70-255-0_3);
  background-color: var(--theme-color-00aaff) !important;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.chat-panel-highlight-btn:hover {
  border-color: var(--theme-rgba-145-70-255-0_6);
  transform: scale(1.05);
}

.highlight-icon {
  font-size: 1.25em;
  z-index: 2;
  transition: all 0.3s ease;
}

/* Pulsing background ring */
.highlight-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--theme-rgba-255-68-68-0_4) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

/* ACTIVE STATE (ON AIR mode) */
.chat-panel-highlight-btn.active {
  border-color: var(--theme-rgba-126-243-255-0_8);
  background: linear-gradient(135deg, var(--theme-rgba-126-243-255-0_25) 0%, var(--theme-rgba-126-243-255-0_35) 100%);
  box-shadow: 0 0 20px var(--theme-rgba-126-243-255-0_45), 0 0 40px var(--theme-rgba-126-243-255-0_25), inset 0 0 20px var(--theme-rgba-126-243-255-0_15);
  animation: highlightGlow 2s ease-in-out infinite;
}

.chat-panel-highlight-btn.active .highlight-icon {
  filter: drop-shadow(0 0 8px var(--theme-rgba-255-255-255-0_8));
  animation: iconPulse 1s ease-in-out infinite;
}

.chat-panel-highlight-btn.active .highlight-pulse {
  opacity: 1;
  animation: pulseRing 2s ease-out infinite;
}

/* Animations */
@keyframes highlightGlow {
  0%, 100% {
    box-shadow: 0 0 20px var(--theme-rgba-68-255-243-0_4), 0 0 40px var(--theme-rgba-68-255-224-0_2), inset 0 0 20px var(--theme-rgba-0-213-255-0_395);
  }
  50% {
    box-shadow: 0 0 30px var(--theme-rgba-68-255-162-0_6), 0 0 60px var(--theme-rgba-68-233-255-0_3), inset 0 0 30px var(--theme-color-08e6ff);
  }
}
@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
@keyframes pulseRing {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
/* ============================================
   LEGACY VIEWPORT MEDIA QUERIES
   ============================================
   COMMENTED OUT: Migrating to container-fluid responsive design
   See: docs/refactor/responsive-design.md
   FALLBACK: Uncomment if container-fluid approach causes issues
   ============================================ */
/*
@media (max-width: 768px) {
  .emote-picker-container {
    padding: 8px 10px;
    gap: 8px;
  }

  .emote-picker-label {
    font-size: 11px;
  }

  .emote-picker-item {
    width: 36px;
    height: 36px;
  }

  .chat-panel-highlight-btn {
    width: 44px;
    height: 44px;
  }

  .highlight-icon {
    font-size: 18px;
  }
}
*/
/* Input overlay for inline emote preview */
.chat-panel-input-row {
  display: flex;
  flex: auto;
  align-items: center;
  gap: 0;
}

body.chatpanel-view .chat-panel-input-row {
  align-items: stretch;
  flex: 999 1 26rem;
  flex-wrap: nowrap;
  gap: 0;
  min-width: min(100%, 26rem);
  width: auto;
}

.chat-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  margin-left: 1.25em;
}

body.chatpanel-view .chat-input-wrapper {
  flex: 1 1 16rem;
  max-width: none;
  margin-left: 0;
}

.chat-panel-input {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0.625em 0.75em;
  font-size: 0.875em;
  font-family: inherit;
  font-weight: 800;
  line-height: 1.2;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--theme-color-fafafa);
  border: 1px solid var(--theme-color-afafaf);
  outline: none;
  box-shadow: inset 0px 0px 5px var(--theme-rgba-0-0-0-0_1);
  color: #000 !important;
  caret-color: #000 !important;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

body.chatpanel-view .chat-panel-input {
  min-width: 0;
}

body.chatpanel-view .chat-panel-send-btn,
body.chatpanel-view .chat-panel-highlight-btn {
  flex: 0 0 auto;
  margin: 0;
}

body.chatpanel-view .chat-panel-input,
body.chatpanel-view .chat-panel-send-btn,
body.chatpanel-view .chat-panel-highlight-btn {
  margin: 0;
}

body.chatpanel-view .chat-panel-send-btn {
  white-space: nowrap;
}

.chat-input-visual {
  display: none;
}

.chat-input-visual .input-placeholder {
  color: #888;
}

.inline-emote {
  height: 1.25em;
  width: 1.25em;
  vertical-align: middle;
}

.ad-cooldown-info {
  margin-top: 4px;
  font-size: 0.75em;
  color: #333;
  padding-left: 4px;
  font-weight: 600;
}

.qa-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: var(--frame-bg-raised);
  border: 1px solid var(--frame-border);
  outline: none;
  transition: all 0.8s ease-in-out;
  box-shadow: 0px 0px 4px var(--theme-rgba-0-0-0-0_1);
  opacity: 0.8;
  height: auto;
  flex: 1 0 auto;
  padding: 10px 12px;
  border-radius: 5px;
  color: var(--font-color);
  font-weight: 700;
  cursor: pointer;
}

.qa-btn.has-pill {
  justify-content: space-between;
  gap: 8px;
}

.pp-poll-pill {
  margin-left: auto;
}

.qa-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: unset;
  padding: 2px 1.4em;
  border-radius: 5px;
  background: var(--theme-color-356bff);
  color: #fff;
  font-size: 0.85em;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.qa-btn:hover {
  background-color: var(--theme-color-3a96dd);
  opacity: 1;
  box-shadow: 0 4px 12px var(--theme-rgba-0-0-0-0_15);
}

.qa-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-quick-actions .ad-quick-btn.is-tier-hidden,
.chat-quick-actions .ad-quick-btn[aria-disabled=true] {
  display: none !important;
}

/* Quick actions overlay & modal */
.chat-quick-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  height: auto;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  margin-bottom: 10px;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 0;
}

.chat-quick-actions .qa-btn {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.chat-quick-actions .qa-btn-row {
  min-width: 0;
}

.qa-stream-title {
  font-size: 0.875em;
  font-weight: 600;
  color: var(--frame-text-soft);
  text-align: left;
  opacity: 0.85;
  word-break: break-word;
}

.qa-stream-category {
  font-size: 0.9375em;
  font-weight: 600;
  color: var(--frame-text-soft);
  opacity: 0.8;
  word-break: break-word;
}

.qa-stream-uptime {
  font-size: 0.75em;
  font-weight: 700;
  color: var(--font-color);
  opacity: 0.85;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.qa-stream-uptime.is-offline {
  color: var(--frame-text-soft);
  opacity: 0.7;
}

.qa-btn.qa-btn-stream {
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  line-height: 1.2;
  align-items: flex-start;
  text-align: left;
}

.qa-btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.qa-btn-raid {
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 6px;
  line-height: 1.2;
}

.qa-btn-raid .raid-quick-status {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.qa-btn-raid.is-raiding .raid-quick-status {
  display: flex;
}

.qa-btn-raid .raid-status-target {
  font-size: 0.75em;
  font-weight: 600;
  color: var(--font-color);
}

.raid-cancel-pill {
  display: none;
  background: var(--theme-color-d14343);
  color: #fff;
  cursor: pointer;
}

.qa-btn-raid.is-raiding .raid-cancel-pill {
  display: inline-flex;
}

.raid-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
}

.raid-history-item {
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--theme-color-1f2233);
  border: 1px solid var(--theme-color-2b3048);
  color: #e2e8f0;
  font-size: 0.8125em;
}

.raid-history-empty {
  color: var(--frame-text-soft);
  font-size: 0.75em;
  padding: 6px;
}

.qa-overlay.visible {
  display: flex !important;
  height: 100vh;
}

body.chatpanel-view .qa-overlay .qa-modal {
  max-height: 100%;
}

.event-test-modal {
  max-height: calc(100vh - 96px);
  overflow: hidden;
  height: 100%;
}

body.chatpanel-view .event-test-modal {
  max-height: 100%;
}

.event-test-modal .qa-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.event-test-modal .ad-options-list {
  max-height: none;
  overflow: visible;
  padding-right: 10px;
}

.event-modal .event-overlay-list {
  max-height: none;
  overflow: visible;
  padding-right: 10px;
}

.qa-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.qa-modal-header .il-toggle {
  flex-direction: row;
  padding: 6px 10px;
  gap: 10px;
  min-width: auto;
  border-radius: 8px;
  align-items: center;
}
.qa-modal-header .il-toggle-label {
  order: -1;
  font-size: 11px;
}
.qa-modal-header .il-toggle-track {
  flex-shrink: 0;
}

.qa-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qa-modal-header .qa-header-actions .so-fake-toggle {
  margin-left: 0;
}

.ad-options-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-height: 50vh;
  overflow: auto;
  align-content: flex-start;
  box-sizing: border-box;
  font-size: 1.25em;
}

.ad-option-btn {
  flex: 1 0 calc(50% - 8px);
}

.qa-title {
  font-weight: 700;
  color: var(--font-color);
}

.qa-close {
  background: transparent;
  border: none;
  color: var(--frame-text-soft);
  font-size: 1.25em;
  cursor: pointer;
}

.qa-body {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.qa-field {
  margin-bottom: 12px;
  flex-direction: column;
  overflow: visible;
}

.qa-field label {
  display: flex;
  font-size: 0.75em;
  color: var(--frame-text-soft);
  margin-bottom: 4px;
}

.qa-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--frame-border);
  background: var(--frame-bg-subtle);
  color: var(--font-color);
  box-shadow: inset 0px 0px 5px var(--theme-rgba-0-0-0-0_1);
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.qa-field input:focus-visible {
  outline: none;
  border-color: var(--highlight);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--highlight) 75%, transparent), inset 0 0 10px color-mix(in srgb, var(--highlight) 18%, transparent);
}

.qa-actions {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 6px;
  width: 100%;
  box-sizing: border-box;
}
.qa-actions .il-save-button {
  flex: 1 1 0;
  min-width: 0;
  max-width: calc(50% - 4px);
}
.qa-actions .qa-cancel.il-save-button {
  background: var(--theme-color-ededed);
  border-color: var(--frame-border);
}
.qa-actions .qa-cancel.il-save-button:hover {
  background: var(--highlight);
  border-color: color-mix(in srgb, var(--highlight) 80%, black);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--highlight) 30%, transparent), 0 4px 12px color-mix(in srgb, var(--highlight) 35%, transparent);
}

.qa-actions.single-action .il-save-button {
  max-width: 100%;
}

.qa-submit.stop-raid {
  background: var(--highlight-ink-3);
  border-color: var(--highlight-ink-4);
  color: var(--highlight-ultra);
}

.qa-suggestions {
  position: fixed;
  background: var(--frame-bg);
  border: 1px solid var(--theme-color-333333);
  border-radius: 6px;
  margin-top: 0;
  max-height: 160px;
  overflow-y: auto;
  z-index: 1000;
}

.qa-suggestion {
  padding: 6px 8px;
  cursor: pointer;
  color: var(--font-color);
  border-left: 2px solid transparent;
  transition: background-color 120ms ease, border-left-color 120ms ease;
}

.qa-suggestion:hover {
  background: color-mix(in srgb, var(--highlight) 16%, var(--frame-bg-raised));
  border-left-color: var(--highlight);
}

.qa-suggestion:focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--highlight) 16%, var(--frame-bg-raised));
  border-left-color: var(--highlight);
}

/* Shoutout cooldown panel (pagination) */
.so-cooldown-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: var(--frame-bg-raised);
  border: 1px solid var(--frame-border);
  border-radius: 8px;
  color: #111;
  font-size: 0.8125em;
  visibility: visible;
  min-height: 0;
  position: relative;
}

.so-cooldown-header {
  font-weight: 700;
  font-size: 0.875em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.so-cooldown-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.so-global-timer {
  font-size: 0.75em;
  font-weight: 600;
  color: #1f2937;
}

.so-cooldown-header::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--theme-color-64748b);
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.so-cooldown-panel.is-expanded .so-cooldown-header::after {
  transform: rotate(180deg);
}

.so-cooldown-general {
  font-weight: 600;
  color: #333;
}

.so-cooldown-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.so-queue-status {
  font-size: 0.75em;
  font-weight: 600;
  color: #475569;
}

.so-cooldown-panel:not(.is-expanded) .so-cooldown-list {
  display: none;
}

.so-cooldown-list:empty {
  display: none;
}

.so-cooldown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: transparent;
  border: 1px solid var(--theme-color-e0e0e6);
  border-radius: 6px;
}

.so-cooldown-blink {
  animation: soCooldownBlink 1s ease-in-out;
}

@keyframes soCooldownBlink {
  0% {
    border-color: var(--theme-color-e0e0e6);
    box-shadow: none;
  }
  40% {
    border-color: var(--theme-color-3a96dd);
    box-shadow: 0 0 0 1px var(--theme-color-3a96dd);
  }
  60% {
    border-color: var(--theme-color-3a96dd);
    box-shadow: 0 0 0 1px var(--theme-color-3a96dd);
  }
  100% {
    border-color: var(--theme-color-e0e0e6);
    box-shadow: none;
  }
}
.so-user {
  font-weight: 600;
  color: #222;
}

.so-timer {
  font-family: "Inter", Arial, sans-serif;
  color: #555;
  font-variant-numeric: tabular-nums;
  min-width: 50px;
  text-align: right;
  display: inline-block;
}

.so-cooldown-empty {
  color: #777;
  font-style: italic;
  padding: 4px 2px;
}

/* === New Shoutout Panel Layout === */
.so-controls-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.so-queue-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 8px;
  border-radius: 0.5vw;
  min-width: 5vw;
  flex: 1;
  border: 1px solid var(--frame-border);
  user-select: none;
}

.so-queue-indicator-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--font-color);
  text-transform: uppercase;
  opacity: 0.85;
}

.so-controls-row .il-toggle-label {
  font-size: 11px;
}

.so-queue-names {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.so-queue-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--font-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.so-queue-empty {
  font-size: 11px;
  font-weight: 400;
  color: var(--message-font-color-soft);
  font-style: italic;
}

.so-shoutout-slider {
  display: inline-flex;
  align-items: center;
  width: 100%;
  padding: 2px;
  border-radius: 0.5vw;
  border: 1px solid var(--frame-border);
  background: var(--theme-color-ededed);
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background-color 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}
.so-shoutout-slider.is-armed .so-shoutout-slider-indicator {
  animation: soIndicatorBlink 0.5s ease-in-out infinite;
}
.so-shoutout-slider.is-firing {
  border-color: var(--theme-color-2ecc71);
  background: color-mix(in srgb, var(--theme-color-2ecc71) 20%, var(--theme-color-ededed));
}
.so-shoutout-slider.is-firing .so-shoutout-slider-label {
  opacity: 0.3;
  transition: opacity 0.3s ease;
}
.so-shoutout-slider.is-complete {
  border-color: var(--theme-color-2ecc71);
  background: var(--theme-color-2ecc71);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-color-2ecc71) 30%, transparent), 0 4px 12px color-mix(in srgb, var(--theme-color-2ecc71) 35%, transparent);
}

@keyframes soIndicatorBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.8);
  }
}
.so-shoutout-slider-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border-radius: calc(0.5vw - 1px);
  background: var(--frame-bg);
  border: 1px solid var(--frame-border);
  position: relative;
}

.so-shoutout-slider-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--highlight);
  flex-shrink: 0;
  position: absolute;
  left: 12px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.so-shoutout-slider-label {
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--font-color);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}
.so-shoutout-slider-label.typewriter {
  animation: soTypewriter 0.8s steps(20) forwards;
}

@keyframes soTypewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
.so-timer-display {
  container-type: inline-size;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 0.5vw;
  gap: 2cqi;
  min-width: 0;
}

.so-flip-clock--effective {
  flex: 1 1 auto;
  min-width: 0;
}

.so-flip-clock--global {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
}

.so-flip-clock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1cqi;
  padding: 4px 0;
  min-width: 0;
}

.so-flip-digit {
  position: relative;
  width: min(12cqi, 28px);
  aspect-ratio: 7/10;
  border-radius: 4px;
  overflow: hidden;
  background: var(--frame-bg-muted);
  border: 1px solid var(--frame-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.so-flip-upper,
.so-flip-lower {
  width: 100%;
  height: 50%;
  overflow: hidden;
  position: relative;
}
.so-flip-upper span,
.so-flip-lower span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: "Inter", "Consolas", monospace;
  font-size: min(8cqi, 22px);
  font-weight: 800;
  color: var(--font-color);
  height: 200%;
}

.so-flip-upper {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--frame-bg-muted) 100%, transparent), color-mix(in srgb, var(--frame-bg-muted) 85%, transparent));
  border-bottom: 1px solid color-mix(in srgb, var(--frame-border) 60%, transparent);
}

.so-flip-lower {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--frame-bg-muted) 80%, transparent), color-mix(in srgb, var(--frame-bg-muted) 95%, transparent));
}
.so-flip-lower span {
  transform: translateY(-50%);
}

.so-flip-sep {
  font-family: "Inter", "Consolas", monospace;
  font-size: min(8cqi, 22px);
  font-weight: 800;
  color: var(--font-color);
  padding: 0 0.5cqi;
  opacity: 0.6;
}

.so-flip-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  transform-origin: bottom center;
  animation: soFlipDown 0.4s cubic-bezier(0.37, 0, 0.18, 1) forwards;
  z-index: 3;
}

.so-flip-card-front,
.so-flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  backface-visibility: hidden;
}
.so-flip-card-front span,
.so-flip-card-back span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: "Inter", "Consolas", monospace;
  font-size: min(8cqi, 22px);
  font-weight: 800;
  color: var(--font-color);
  height: 200%;
}

.so-flip-card-front {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--frame-bg-muted) 100%, transparent), color-mix(in srgb, var(--frame-bg-muted) 85%, transparent));
  border-radius: 4px 4px 0 0;
}

.so-flip-card-back {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--frame-bg-muted) 80%, transparent), color-mix(in srgb, var(--frame-bg-muted) 95%, transparent));
  transform: rotateX(180deg);
  border-radius: 0 0 4px 4px;
}
.so-flip-card-back span {
  transform: translateY(-50%);
}

@keyframes soFlipDown {
  0% {
    transform: rotateX(0deg);
  }
  100% {
    transform: rotateX(-180deg);
  }
}
.so-queue-indicator {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.so-queue-indicator:hover {
  border-color: var(--highlight);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--highlight) 30%, transparent);
}

.so-cooldown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: color-mix(in srgb, var(--frame-bg) 95%, transparent);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: 8px;
  overflow: hidden;
}

.so-cooldown-overlay-content {
  background: var(--frame-bg);
  border: 1px solid var(--frame-border);
  border-radius: 6px;
  width: 95%;
  height: 90%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.so-cooldown-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--frame-border);
  font-weight: 700;
  font-size: 14px;
  color: var(--font-color);
}

.so-cooldown-overlay-close {
  background: none;
  border: none;
  font-size: 24px;
  font-weight: 700;
  color: var(--font-color);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.so-cooldown-overlay-close:hover {
  background: var(--frame-bg-soft);
}

.so-cooldown-overlay-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.so-overlay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--frame-bg-soft);
  border: 1px solid var(--frame-border);
  border-radius: 6px;
}

.so-overlay-user {
  font-weight: 600;
  color: var(--font-color);
  font-size: 12px;
}

.so-overlay-timers {
  display: flex;
  gap: 8px;
  font-size: 11px;
}

.so-overlay-timer {
  font-family: "Inter", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.so-overlay-empty {
  text-align: center;
  padding: 24px;
  color: var(--message-font-color-soft);
  font-style: italic;
  font-size: 12px;
}

.so-general-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--theme-color-eef3ff);
  border: 1px solid var(--theme-color-c9d6ff);
  border-radius: 999px;
  color: #1a2a4f;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.8125em;
  visibility: visible;
  min-height: 28px;
}

.so-general-chip-timer {
  color: #0f172a;
}

.ad-video-overlay {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
  z-index: 999999;
  overflow: hidden;
  pointer-events: none;
  background: var(--theme-color-f0f1f6);
}

.ad-video-overlay.visible {
  visibility: visible;
  opacity: 1;
  border-radius: 0;
}

.ad-video-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

body.streaming-view #frame {
  transition: background-color 600ms ease, border-color 600ms ease, border-width 600ms ease, box-shadow 600ms ease;
}

body.streaming-view #frame::before {
  transition: opacity 600ms ease, border-color 600ms ease;
}

body.streaming-view #display {
  transition: background-color 600ms ease, border-color 600ms ease, box-shadow 600ms ease;
}

body.streaming-view #contentframe::after {
  transition: width 600ms ease, height 600ms ease, border-radius 600ms ease, opacity 4.2s ease-out, filter 4.2s ease-out, box-shadow 4.2s ease-out;
}

body.streaming-view #toolbar,
body.streaming-view #adtoolbar {
  transition: background-color 600ms ease, border-color 600ms ease, opacity 600ms ease;
}

body.streaming-view #navigation,
body.streaming-view #accesspanel,
body.streaming-view #submenu {
  transition: background-color 600ms ease, border-color 600ms ease, box-shadow 600ms ease, opacity 600ms ease;
}

body.streaming-view #menu {
  transition: background-color 600ms ease, border-color 600ms ease, box-shadow 600ms ease, opacity 600ms ease, flex-basis 600ms ease, padding 600ms ease, border-width 600ms ease;
}

body.streaming-view .activity-meter {
  transition: background-color 600ms ease, border-color 600ms ease, opacity 600ms ease;
}

body.streaming-view {
  background-color: transparent !important;
}

body.streaming-view #frame {
  background-color: transparent !important;
}

body.streaming-view .volume-slider-container,
body.chatpanel-view .volume-slider-container {
  display: none !important;
}

body:not(.streaming-view):not(.chatpanel-view) .volume-slider-container {
  display: flex !important;
}

body.streaming-view:not(.streaming-fullscreen) #display {
  background-color: transparent !important;
  box-shadow: inset 0px 0px 20px var(--frame-shadow-strong) !important;
}

body.streaming-view #contentframe {
  background-color: transparent !important;
}

body.streaming-view #contentframe:not(.event-border-glow-active)::after {
  opacity: 0 !important;
  background: transparent !important;
}

body.streaming-view:not(.streaming-fullscreen) #adtoolbar {
  display: flex;
  pointer-events: none;
}

body.streaming-view.streaming-fullscreen #adtoolbar {
  opacity: 0 !important;
  pointer-events: none !important;
}

body.streaming-view.streaming-fullscreen #frame {
  border-width: 0 !important;
  box-shadow: none !important;
}

body.streaming-view.streaming-fullscreen #frame::before {
  opacity: 0 !important;
  pointer-events: none;
}

body.streaming-view.streaming-fullscreen.streaming-fullscreen-frame-chrome #frame {
  border-width: 1.5625em !important;
  border-color: var(--frame-bg) !important;
  box-shadow: inset 0px 0px 20px var(--frame-shadow-strong) !important;
}

body.streaming-view.streaming-fullscreen.streaming-fullscreen-frame-chrome #frame::before {
  opacity: 1 !important;
  pointer-events: auto;
  border-color: var(--frame-bg) !important;
}

body.streaming-view.streaming-fullscreen #contentframe {
  overflow: visible !important;
}

body.streaming-view.streaming-fullscreen #contentframe::after {
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
}

body.streaming-view.streaming-fullscreen #frame #display #contentframe.event-border-glow-active::after {
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
}

body.streaming-view.streaming-fullscreen.streaming-fullscreen-frame-chrome #contentframe::after {
  width: calc(100vw - 3.4375em) !important;
  height: calc(100% - 3.125em) !important;
  border-radius: 2.125em !important;
  margin-bottom: 0 !important;
}

body.streaming-view.streaming-fullscreen.streaming-fullscreen-frame-chrome #frame #display #contentframe.event-border-glow-active::after {
  inset: 0 auto 0 0;
  width: calc(100vw - 3.125em) !important;
  height: calc(100vh - 3.125em) !important;
  border-radius: 2.125em !important;
}

body.streaming-view.streaming-fullscreen #toolbar,
body.streaming-view.streaming-fullscreen #adtoolbar {
  background-color: transparent !important;
  border-color: transparent !important;
}

body.streaming-view.streaming-fullscreen #adtoolbar {
  position: absolute;
  left: 0;
  right: auto;
  top: -2px;
  border-top-right-radius: 1.5625em;
  width: calc(100vw - 3.25em) !important;
  z-index: 9990;
  pointer-events: none;
}

body.streaming-view.streaming-fullscreen #adtoolbar .ad-toolbar-slot,
body.streaming-view.streaming-fullscreen #adtoolbar .ad-toolbar-svg {
  width: 100% !important;
  max-width: none !important;
}

body.streaming-view.streaming-fullscreen #display {
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.streaming-view.streaming-fullscreen #navigation {
  background-color: transparent !important;
  box-shadow: none !important;
  border-left: none !important;
}

body.streaming-view.streaming-fullscreen #menu {
  opacity: 0 !important;
  pointer-events: none;
}

body.streaming-view.streaming-fullscreen #navigation #accesspanel logo {
  order: 1;
}
body.streaming-view.streaming-fullscreen #navigation #accesspanel .companyName {
  order: 0;
  margin-left: auto;
}
body.streaming-view.streaming-fullscreen #navigation #accesspanel .companyName a, body.streaming-view.streaming-fullscreen #navigation #accesspanel .companyName h3, body.streaming-view.streaming-fullscreen #navigation #accesspanel .companyName .tier-badge {
  color: var(--highlight);
}

body.streaming-view.streaming-fullscreen #accesspanel,
body.streaming-view.streaming-fullscreen #menu {
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.streaming-view.streaming-fullscreen #submenu {
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.streaming-view.streaming-fullscreen .activity-meter {
  background-color: transparent !important;
  border-color: transparent !important;
}

body.streaming-view.streaming-fullscreen .streaming-chat .chat-message {
  opacity: 1;
  transition: opacity 1200ms ease, background 600ms ease, backdrop-filter 600ms ease, -webkit-backdrop-filter 600ms ease, border 600ms ease, box-shadow 600ms ease !important;
  transform: none !important;
  will-change: opacity;
}

body.streaming-view.streaming-fullscreen .streaming-chat .chat-message:hover {
  transform: none !important;
}

body.streaming-view.streaming-fullscreen:not(.streaming-fullscreen-chat-persistent) .streaming-chat .chat-message.chat-idle-fade-item {
  animation: streaming-chat-idle-fade 400ms ease-in-out forwards;
}

body.streaming-view.streaming-fullscreen .streaming-chat .chat-message.il-streaming-glass-lab-overlay,
body.streaming-view.streaming-fullscreen.streaming-fullscreen-glass-chat .streaming-chat .chat-message {
  background: linear-gradient(to top, color-mix(in srgb, var(--frame-bg) 70%, transparent) 0%, color-mix(in srgb, var(--frame-bg) 45%, transparent) 50%, color-mix(in srgb, var(--frame-bg) 25%, transparent) 100%);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: none;
  border-top: 1px solid color-mix(in srgb, var(--frame-border) 40%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--font-color) 10%, transparent);
}

@keyframes streaming-chat-idle-fade {
  0% {
    opacity: 1;
  }
  20% {
    opacity: 0.8;
  }
  40% {
    opacity: 0.6;
  }
  60% {
    opacity: 0.4;
  }
  80% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
  }
}
body.streaming-view.streaming-fullscreen .ad-video-overlay {
  border-radius: 1.5em;
  border-bottom-left-radius: 0.5em;
  border-bottom-right-radius: 1.5em;
}

body.streaming-view.streaming-fullscreen .event-container {
  margin-left: 23.125em;
  transition: all 600ms ease;
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
}

body.streaming-view.streaming-fullscreen #frame[data-nav-side=left] #adtoolbar {
  left: auto;
  right: 0;
}

body.streaming-view.streaming-fullscreen #frame[data-nav-side=left] .event-container {
  margin-left: 0;
  margin-right: 23.125em;
}

body.streaming-view.streaming-fullscreen #frame[data-nav-side=left] #navigation {
  border-right: none !important;
}
body.streaming-view.streaming-fullscreen #frame[data-nav-side=left] #navigation #accesspanel logo {
  order: 0;
}
body.streaming-view.streaming-fullscreen #frame[data-nav-side=left] #navigation #accesspanel .companyName {
  order: 1;
  margin-left: 0;
  margin-right: auto;
}

body.streaming-view.streaming-fullscreen .activity-meter {
  opacity: 0;
  transition: all 600ms ease;
}

body.streaming-view.streaming-fullscreen .stream-info-container {
  opacity: 0;
  transition: all 600ms ease;
}

body.streaming-view.streaming-fullscreen .stream-goal-container {
  opacity: 0;
  transition: all 600ms ease;
}

body.streaming-view.streaming-fullscreen .streaming-chat.video-playing {
  opacity: 0 !important;
  transition: opacity 0.3s ease;
}

/* Container */
.sci-fi-os-bg {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  --sci-fi-bg: color-mix(in srgb, var(--frame-bg) 88.6%, black);
  --sci-fi-bg-dark: color-mix(in srgb, var(--frame-bg) 68.6%, black);
  --sci-fi-bg-stream: color-mix(in srgb, var(--frame-bg) 92.9%, black);
  --sci-fi-grid-strong: color-mix(in srgb, var(--frame-bg) 83.1%, black);
  --sci-fi-grid-strong-alpha: color-mix(in srgb, var(--sci-fi-grid-strong) 80%, transparent);
  --sci-fi-grid-soft: color-mix(in srgb, var(--frame-bg) 0%, black);
  --sci-fi-grid-soft-alpha: color-mix(in srgb, var(--sci-fi-grid-soft) 4%, transparent);
  --sci-fi-line-alpha: var(--sci-fi-grid-soft-alpha);
  --sci-fi-drop: color-mix(in srgb, var(--frame-bg) 12%, white);
  --sci-fi-drop-alpha: color-mix(in srgb, var(--sci-fi-drop) 80%, transparent);
  background-color: var(--sci-fi-bg);
  z-index: -1;
}

/* Main + secondary grids */
.sci-fi-os-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(var(--sci-fi-grid-strong-alpha) 1px, transparent 1px) 0 0/var(--grid-size) var(--grid-size), linear-gradient(90deg, var(--sci-fi-grid-strong-alpha) 1px, transparent 1px) 0 0/var(--grid-size) var(--grid-size), linear-gradient(var(--sci-fi-grid-soft-alpha) 1px, transparent 1px) 0 0/var(--small-grid-size) var(--small-grid-size), linear-gradient(90deg, var(--sci-fi-grid-soft-alpha) 1px, transparent 1px) 0 0/var(--small-grid-size) var(--small-grid-size);
}

.sci-fi-os-bg-stream {
  position: relative;
  flex: 0 0 100%;
  height: 100px;
  overflow: hidden;
  background-color: var(--sci-fi-bg-stream);
  z-index: -1;
  border-bottom: 1px solid var(--sci-fi-bg-dark);
}

/* Fade overlay */
.grid-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;
  background: linear-gradient(to bottom, var(--sci-fi-bg) 0%, transparent 20%, transparent 80%, var(--sci-fi-bg) 100%);
  transition: opacity 0.2s ease-in-out;
}

/* Vertical animated lines */
.lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 11;
}

.line {
  position: absolute;
  width: 1.5px;
  height: 100%;
  top: 0;
  background: var(--sci-fi-line-alpha);
  overflow: hidden;
}

.line-drop {
  position: absolute;
  width: 100%;
  height: 20vh;
  bottom: -50%;
  left: 0;
  background: linear-gradient(to top, transparent 0%, var(--sci-fi-drop-alpha) 75%, var(--sci-fi-drop-alpha) 100%);
  animation-name: drop-up;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
  animation-iteration-count: infinite;
}

@keyframes drop-up {
  0% {
    bottom: -50%;
  }
  100% {
    bottom: 110%;
  }
}
/* Scanline */
.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sci-fi-grid-strong-alpha), transparent);
  animation: sweep 20s linear infinite;
  filter: blur(1px);
  z-index: 20;
}

@keyframes sweep {
  0% {
    transform: translateY(-30vh);
  }
  50% {
    transform: translateY(100vh);
  }
  100% {
    transform: translateY(-30vh);
  }
}
/* Animation toggle — disables scan line and drops, grid (::before gradient) is unaffected */
.sci-fi-os-bg.sci-fi-anim-off .line-drop {
  animation: none;
}
.sci-fi-os-bg.sci-fi-anim-off .scanline {
  animation: none;
}

/* HUD */
.hud {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 50;
}

.hud .title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 1em;
  text-transform: uppercase;
  color: #444;
  gap: 2px;
}

.hud .title .info {
  font-family: ui-monospace, monospace;
  font-size: 0.75em;
  font-weight: 400;
  color: #777;
  letter-spacing: 0.5px;
  margin-top: 0;
}

/* Clock */
.hud .panel {
  background: var(--theme-rgba-255-255-255-0_4);
  border: 1px solid var(--theme-rgba-0-0-0-0_05);
  padding: 6px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  font-size: 0.75em;
  color: #444;
}

/* Center mark */
.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  z-index: 50;
}

.mark {
  opacity: 0;
  width: 220px;
  height: 220px;
  border-radius: 12px;
  border: 2px solid var(--theme-rgba-0-0-0-0_1);
  background: linear-gradient(145deg, var(--theme-rgba-255-255-255-0_05), var(--theme-rgba-0-0-0-0_05));
  box-shadow: inset 2px 2px 8px var(--theme-rgba-255-255-255-0_3), inset -2px -2px 8px var(--theme-rgba-0-0-0-0_05);
  display: grid;
  place-items: center;
  z-index: 49;
}

/* Background animated text */
.bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  z-index: 50;
  pointer-events: all;
  text-align: left;
  width: 80%;
  max-width: min(60vw, 100% - 2em);
}

/* Text lines */
.bg-text .line1,
.bg-text .line2 {
  opacity: 0;
  transform: scale(0.95);
  animation-fill-mode: forwards;
  font-size: clamp(14px, 5vw, 64px)/1px/16em;
  font-weight: 700;
  color: rgba(50, 50, 50, 0.85);
}

.bg-text .line2 {
  font-size: clamp(12px, 3vw, 32px)/1px/16em;
  font-weight: 500;
  color: rgba(70, 70, 70, 0.7);
}

/* Fade + scale animation classes added dynamically via JS */
.bg-text .line1.show {
  animation: textFadeIn 4s linear forwards;
}

.bg-text .line2.show {
  animation: textFadeIn 4s linear 0.2s forwards;
}

@keyframes textFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  20% {
    opacity: 1;
    transform: scale(1);
  }
  80% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.95);
  }
}
/* Vertical Progress bar */
/* Horizontal Progress bar below second text line */
/* Progress container: progress bar + indicators */
.progress-container {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-top: 0.625em;
  width: min(31%, 200px);
}

/* Horizontal Progress bar */
.bg-text-progress {
  flex: 1;
  height: 6px;
  background: var(--theme-color-9e9e9e);
  border-radius: 3px;
  overflow: hidden;
  min-width: 4em;
}

.bg-text-progress .fill {
  height: 100%;
  width: 0%;
  background: var(--theme-color-ffffff);
  transition: width 4s cubic-bezier(0.55, 0.06, 0.68, 0.19);
}

/* Indicators container */
.progress-indicators {
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.indicator {
  width: 6px;
  height: 6px;
  /* same height as bar? use flexible later */
  background: var(--theme-color-cccccc);
  border-radius: 3px;
  transition: background 0.4s;
}

.indicator.filled {
  background: var(--theme-color-ffffff);
}

.portfolio-buttons {
  margin-top: 1.25em;
  display: flex;
  gap: 0.9375em;
  justify-content: flex-start;
  flex-wrap: wrap;
  opacity: 1;
  /* final visible state */
  transition: opacity 1s ease, transform 0.8s ease;
}

.portfolio-buttons.hidden {
  opacity: 0;
  transform: translateY(20px);
}

.portfolio-buttons.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-button {
  padding: 0.625em 1.25em;
  border: 1px solid var(--theme-color-afafaf);
  border-radius: 6px;
  color: rgba(50, 50, 50, 0.85);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  background: var(--theme-color-ededed);
}

.portfolio-button:hover {
  background: var(--theme-color-ffffff);
  color: rgba(50, 50, 50, 0.85);
}

body.website-mode #frame[data-content-template=landing][data-layout=stacked] #display #contentframe #content,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] #display #contentframe #content,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] #display #contentframe #content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1em;
  gap: 0;
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] .bg-text,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] .bg-text,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] .bg-text {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: min(100%, 34rem);
  max-width: 100%;
  margin: auto;
  gap: 0.625em;
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] .bg-text .line1,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] .bg-text .line1,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] .bg-text .line1 {
  font-size: clamp(22px, 7vw, 42px)/1px/16em;
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] .bg-text .line2,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] .bg-text .line2,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] .bg-text .line2 {
  font-size: clamp(16px, 4.2vw, 24px)/1px/16em;
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] .progress-container,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] .progress-container,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] .progress-container {
  width: min(100%, 16rem);
  margin-top: 0.5em;
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] .portfolio-buttons,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] .portfolio-buttons,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] .portfolio-buttons {
  width: min(100%, 18rem);
  margin-top: 1em;
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] .portfolio-button,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] .portfolio-button,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] .portfolio-button {
  text-align: center;
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] #toolbar .volume-slider-container,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] #toolbar .volume-slider-container,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container {
  margin-left: 0;
  margin-right: 0;
}

body.website-mode #frame[data-content-template]:not([data-content-template=landing]) #display #contentframe #content {
  justify-content: flex-start;
  align-items: stretch;
  overflow-x: scroll;
  overflow-y: hidden;
  padding: 0;
}

body.website-mode #frame[data-content-template=landing][data-layout=stacked] #toolbar .volume-slider-container {
  box-sizing: border-box;
  width: 96px;
  max-width: 96px;
  flex: 0 0 96px;
  min-width: 96px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  align-self: center;
  overflow: hidden;
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] #toolbar .volume-slider-container .il-toggle {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 1px 3px 2px;
  gap: 1px;
  border-radius: 0;
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] #toolbar .volume-slider-container .il-toggle-label {
  flex: 0 0 auto;
  width: 24px;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.2px;
  text-align: center;
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] #toolbar .volume-slider-container .il-toggle-track {
  width: 22px;
  height: 22px;
  padding: 0;
  font-size: 0;
  border-radius: 50%;
  justify-content: center;
  overflow: visible;
  border-top: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-right: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-bottom: 1px solid var(--theme-rgba-0-0-0-0_4);
  border-left: 1px solid var(--theme-rgba-59-59-59-0_4);
  box-shadow: 0px 3px 3px var(--theme-rgba-0-0-0-0_2);
  background: var(--theme-color-ededed);
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] #toolbar .volume-slider-container .il-toggle-track::before, body.website-mode #frame[data-content-template=landing][data-layout=stacked] #toolbar .volume-slider-container .il-toggle-track::after {
  display: none;
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] #toolbar .volume-slider-container .is-active .il-toggle-track {
  background: var(--theme-color-2ecc71);
  border-color: color-mix(in srgb, var(--theme-color-2ecc71) 80%, black);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-color-2ecc71) 30%, transparent), 0 4px 12px color-mix(in srgb, var(--theme-color-2ecc71) 35%, transparent);
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] #toolbar .volume-slider-container .il-toggle-slider {
  top: -4px;
  left: 50%;
  right: auto;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--theme-color-ffffff, #fff);
  border: 1px solid var(--menu-button-border, var(--frame-border));
  border-bottom: 1px solid var(--menu-button-border-bottom, var(--frame-border));
  box-shadow: 0px 4px 0px 0px var(--menu-button-shadow-soft, rgba(0, 0, 0, 0.15));
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] #toolbar .volume-slider-container .is-active .il-toggle-slider {
  top: 4px;
  left: 50%;
  margin-left: -7px;
  box-shadow: none;
  background: var(--theme-color-ffffff, #fff);
  border: solid 0 transparent;
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] #toolbar .volume-slider-container .il-audio-controls {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 4px;
  row-gap: 1px;
  width: 100%;
  min-width: 0;
  margin-left: 0;
  align-items: center;
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] #toolbar .volume-slider-container .il-toggle-track {
  grid-column: 1;
  grid-row: 1/span 2;
  justify-self: center;
  align-self: center;
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] #toolbar .volume-slider-container .il-audio-volume-slider,
body.website-mode #frame[data-content-template=landing][data-layout=stacked] #toolbar .volume-slider-container #volumeSlider {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  width: 100%;
  height: 4px;
  writing-mode: horizontal-tb;
  direction: ltr;
  border-radius: 999px;
  transform: none;
  margin: 0;
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] #toolbar .volume-slider-container .il-audio-volume-slider::-webkit-slider-thumb,
body.website-mode #frame[data-content-template=landing][data-layout=stacked] #toolbar .volume-slider-container #volumeSlider::-webkit-slider-thumb {
  width: 8px;
  height: 8px;
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] #toolbar .volume-slider-container .il-audio-volume-slider::-moz-range-thumb,
body.website-mode #frame[data-content-template=landing][data-layout=stacked] #toolbar .volume-slider-container #volumeSlider::-moz-range-thumb {
  width: 8px;
  height: 8px;
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] #toolbar .volume-slider-container .il-audio-volume-text {
  display: block;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  font-size: 8px;
  line-height: 1;
  text-align: center;
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] #toolbar .volume-slider-container .il-toggle-indicator {
  width: 4px;
  height: 4px;
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] .bg-text {
  width: min(100%, 22rem);
}
body.website-mode #frame[data-content-template=landing][data-layout=stacked] .portfolio-buttons {
  display: grid;
  grid-template-columns: 1fr;
}

body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] #toolbar .volume-slider-container,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container {
  box-sizing: border-box;
  width: 88px;
  max-width: 88px;
  flex: 0 0 88px;
  min-width: 88px;
  min-height: 40px;
  padding: 0;
  align-self: center;
  overflow: visible;
  justify-content: center;
}
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-toggle,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-toggle {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  align-items: stretch;
  justify-content: center;
  padding: 1px 4px 3px;
  gap: 2px;
  border-radius: 0;
}
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-toggle-label,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-toggle-label {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.2px;
  text-align: left;
}
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-audio-controls,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-audio-controls {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 4px;
  row-gap: 1px;
  width: 100%;
  min-width: 0;
  margin-left: 0;
  align-items: center;
}
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-toggle-track,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-toggle-track {
  grid-column: 1;
  grid-row: 1/span 2;
  justify-self: center;
  align-self: center;
}
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-audio-volume-slider,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] #toolbar .volume-slider-container #volumeSlider,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-audio-volume-slider,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container #volumeSlider {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  width: 100%;
  height: 4px;
  writing-mode: horizontal-tb;
  direction: ltr;
  border-radius: 999px;
  transform: none;
  margin: 0;
}
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-audio-volume-slider::-webkit-slider-thumb,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] #toolbar .volume-slider-container #volumeSlider::-webkit-slider-thumb,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-audio-volume-slider::-webkit-slider-thumb,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container #volumeSlider::-webkit-slider-thumb {
  width: 8px;
  height: 8px;
}
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-audio-volume-slider::-moz-range-thumb,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] #toolbar .volume-slider-container #volumeSlider::-moz-range-thumb,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-audio-volume-slider::-moz-range-thumb,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container #volumeSlider::-moz-range-thumb {
  width: 8px;
  height: 8px;
}
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-audio-volume-text,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-audio-volume-text {
  display: block;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  font-size: 8px;
  line-height: 1;
  text-align: center;
}
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] #toolbar .volume-slider-container .il-toggle-indicator,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] #toolbar .volume-slider-container .il-toggle-indicator {
  width: 4px;
  height: 4px;
}
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] .bg-text,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] .bg-text {
  width: min(100%, 28rem);
}
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] .progress-container,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] .progress-container {
  width: min(72%, 14rem);
}
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=compact] .portfolio-buttons,
body.website-mode #frame[data-content-template=landing][data-layout=split][data-tier=minimal] .portfolio-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-editor {
  width: min(70vw, 1400px);
  max-width: min(70vw, 1400px);
  max-height: 100%;
  overflow: hidden;
  min-height: 0;
  padding: clamp(80px, 7vw, 110px) 0 0;
}

#frame[data-layout=stacked] .theme-editor {
  width: 92vw;
  max-width: 92vw;
}

.theme-editor .line1,
.theme-editor .line2 {
  opacity: 1;
  transform: none;
  animation: none;
}

.theme-editor .line1 {
  color: var(--theme-color-333333);
}

.theme-editor .line2 {
  color: var(--theme-color-888888);
}

.theme-editor .il-list {
  flex: 1 1 0%;
  min-height: 0;
}

.theme-editor .theme-editor-library-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--il-spacing-md);
}

.theme-editor .theme-editor-layout-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--il-spacing-md);
}

.theme-editor .il-lab-body {
  gap: clamp(12px, 1.25vw, 22px);
  padding: 0 clamp(12px, 1.25vw, 22px) clamp(40px, 2vw, 48px);
}

.theme-editor .il-lab-actions {
  padding: var(--il-spacing-md) 0;
}

.theme-editor .theme-editor-management-row {
  flex: 0 0 auto;
  margin-top: 6px;
}

.theme-editor .theme-editor-management-row--name {
  justify-content: stretch;
}

.theme-editor .theme-editor-management-row--name .il-input {
  flex: 1 1 auto;
  width: 100%;
}

.theme-editor .theme-editor-management-row--primary-actions {
  justify-content: space-between;
}

.theme-editor .theme-editor-lock-row {
  margin-bottom: 4px;
}

.theme-editor .theme-editor-presets-section {
  margin-top: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.theme-editor .theme-editor-presets-section .il-section-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.theme-editor .theme-editor-management-row--library {
  margin-top: 0;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: clamp(10px, 1vw, 14px);
}

.theme-editor .theme-editor-management-row--library-name {
  margin-top: 0;
}

.theme-editor .theme-editor-management-actions {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1vw, 14px);
}

.theme-editor .theme-editor-management-actions--left {
  flex: 0 0 auto;
}

.theme-editor .theme-editor-management-actions--right {
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
}

.theme-editor-color {
  width: 44px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--frame-border);
  border-radius: 6px;
  background: var(--frame-bg);
}

.theme-editor-color:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

.theme-editor-presets-list {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(180px, 18vw, 230px), 1fr));
  gap: clamp(10px, 1vw, 14px);
  align-content: start;
}

.theme-editor-preset-card {
  --preset-frame-bg: #ffffff;
  --preset-highlight: #3a96dd;
  --preset-menu-bg: #fafafa;
  --preset-font-color: #2e2e2e;
  --preset-message-color: #666666;
  --preset-card-border: rgba(17, 17, 17, 0.12);
  --preset-card-shadow: rgba(20, 28, 46, 0.12);
  --preset-card-shadow-strong: rgba(20, 28, 46, 0.18);
  --font-color: #111111;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 0.9vw, 14px);
  min-width: 0;
  min-height: clamp(148px, 18vw, 190px);
  padding: clamp(12px, 1vw, 16px);
  border: 1px solid var(--preset-card-border);
  border-radius: 18px;
  background: #ffffff;
  color: var(--font-color);
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.theme-editor-preset-card:hover {
  box-shadow: none;
}

.theme-editor-preset-card.is-active {
  border-color: color-mix(in srgb, var(--preset-highlight) 60%, var(--preset-card-border));
}

.theme-editor-preset-card.is-selected {
  background: #ffffff;
  border-color: color-mix(in srgb, var(--preset-highlight) 60%, var(--preset-card-border));
}

.theme-editor-preset-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  color: inherit;
}

.theme-editor-preset-card-label {
  font-size: 0.875em;
  font-weight: 700;
  color: inherit;
  text-align: left;
  letter-spacing: 0.02em;
  word-break: break-word;
}

.theme-editor-preset-card-kind {
  font-size: 0.6875em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
  text-align: left;
}

.theme-editor-preset-card-preview {
  --font-color: var(--preset-font-color);
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.theme-editor-preset-card-frame {
  width: 100%;
  min-height: clamp(82px, 10vw, 112px);
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--preset-highlight) 18%, var(--preset-card-border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--preset-frame-bg) 96%, white), color-mix(in srgb, var(--preset-frame-bg) 82%, var(--preset-highlight) 6%));
  box-shadow: 0 0 0 transparent, inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease-in-out, box-shadow 0.24s ease-in-out;
}

.theme-editor-preset-card:hover .theme-editor-preset-card-frame {
  transform: translateY(-1px);
  box-shadow: 0 8px 4px var(--preset-card-shadow-strong), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.theme-editor-preset-card-chrome {
  flex: 0 0 auto;
  height: 0.45rem;
  background: linear-gradient(90deg, var(--preset-highlight), color-mix(in srgb, var(--preset-highlight) 45%, white));
}

.theme-editor-preset-card-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.8rem;
}

.theme-editor-preset-card-accent {
  width: clamp(40px, 34%, 72px);
  height: 0.35rem;
  border-radius: 999px;
  background: var(--preset-highlight);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--preset-highlight) 35%, transparent);
}

.theme-editor-preset-card-text {
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--preset-font-color);
  text-align: left;
}

.theme-editor-preset-card-button {
  align-self: flex-start;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  background: var(--preset-menu-bg);
  border: 1px solid color-mix(in srgb, var(--preset-font-color) 12%, var(--preset-card-border));
  box-shadow: 0 8px 16px color-mix(in srgb, var(--preset-highlight) 10%, transparent);
  color: var(--preset-font-color);
  font-size: 0.625em;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.theme-editor-preset-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--preset-highlight) 80%, white 20%);
  outline-offset: 3px;
}

.event-lab {
  width: min(70vw, 1400px);
  max-width: min(70vw, 1400px);
  max-height: 100%;
  overflow: hidden;
  min-height: 0;
  padding: clamp(80px, 7vw, 110px) 0 0;
}

#frame[data-layout=stacked] .event-lab {
  width: 92vw;
  max-width: 92vw;
}

.event-lab .line1,
.event-lab .line2 {
  opacity: 1;
  transform: none;
  animation: none;
}

.event-lab .line1 {
  color: var(--theme-color-333333);
}

.event-lab .line2 {
  color: var(--theme-color-888888);
}

.event-lab .il-lab-body {
  gap: clamp(12px, 1.25vw, 22px);
  padding: 0 clamp(12px, 1.25vw, 22px) clamp(40px, 2vw, 48px);
}

.ad-lab {
  width: min(70vw, 1400px);
  max-width: min(70vw, 1400px);
  max-height: 100%;
  overflow: hidden;
  min-height: 0;
  padding: clamp(80px, 7vw, 110px) 0 0;
}

#frame[data-layout=stacked] .ad-lab {
  width: 92vw;
  max-width: 92vw;
}

.ad-lab .line1,
.ad-lab .line2 {
  opacity: 1;
  transform: none;
  animation: none;
}

.ad-lab .line1 {
  color: var(--theme-color-333333);
}

.ad-lab .line2 {
  color: var(--theme-color-888888);
}

.ad-lab .il-lab-body {
  gap: clamp(12px, 1.25vw, 22px);
  padding: 0 clamp(12px, 1.25vw, 22px) clamp(40px, 2vw, 48px);
}

.ad-lab-pill {
  border-radius: 999px;
  padding: 6px 16px;
  border: 1px solid var(--frame-border);
  background: var(--frame-bg-raised);
  color: var(--font-color);
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ad-lab-pill.is-active {
  background: var(--highlight);
  border-color: var(--highlight-strong);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--highlight) 40%, transparent);
}

.ad-lab-cadence-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
}

.ad-lab-cadence-list.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.ad-lab-cadence {
  text-align: left;
  border: 1px solid var(--frame-border);
  background: var(--frame-bg-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--font-color);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ad-lab-cadence.is-selected {
  border-color: var(--highlight-strong);
  background: var(--frame-bg-raised);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--highlight) 25%, transparent);
}

.ad-lab-cadence-label {
  font-weight: 700;
  font-size: 0.8125em;
  letter-spacing: 0.2px;
}

.ad-lab-cadence-meta {
  margin-top: 4px;
  font-size: 0.75em;
  color: var(--frame-text-soft);
}

.ad-lab-update-version {
  font-weight: 700;
  font-size: 0.8125em;
}

.ad-lab-update-lane {
  font-size: 0.6875em;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--highlight);
  border: 1px solid var(--highlight);
  border-radius: 4px;
  padding: 1px 5px;
}

.ad-lab-update-status {
  font-size: 0.75em;
  color: var(--frame-text-soft);
  min-height: 1.4em;
}

.ad-lab-update-progress {
  width: 100%;
  height: 6px;
  background: var(--frame-border);
  border-radius: 999px;
  overflow: hidden;
  margin: var(--il-spacing-xs) 0;
}

.ad-lab-update-progress-fill {
  height: 100%;
  background: var(--highlight);
  border-radius: 999px;
  transition: width 0.3s ease;
  width: 0%;
}

.alert-lab {
  width: min(70vw, 1400px);
  max-width: min(70vw, 1400px);
  max-height: 100%;
  overflow: hidden;
  min-height: 0;
  padding: clamp(80px, 7vw, 110px) 0 0;
}

#frame[data-layout=stacked] .alert-lab {
  width: 92vw;
  max-width: 92vw;
}

.alert-lab .il-list.is-delete-overlay-open {
  overflow: hidden;
}

.alert-lab .alert-lab-delete-overlay {
  z-index: 12;
}

.alert-lab .alert-lab-delete-modal {
  width: min(440px, 100%);
  margin-top: 0;
}

.alert-lab .alert-lab-delete-copy {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--font-color);
}

.alert-lab .line1,
.alert-lab .line2 {
  opacity: 1;
  transform: none;
  animation: none;
}

.alert-lab .line1 {
  color: var(--theme-color-333333);
}

.alert-lab .line2 {
  color: var(--theme-color-888888);
}

.alert-lab .il-lab-body {
  gap: clamp(12px, 1.25vw, 22px);
  padding: 0 clamp(12px, 1.25vw, 22px) clamp(40px, 2vw, 48px);
}

/* Modal should overlay everything, ignore parent container flex/scroll */
.modalOverlay {
  position: fixed;
  border-top-left-radius: 2vw;
  width: var(--after-width);
  height: var(--after-height);
  background-color: var(--theme-rgba-0-0-0-0_4);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.audio-modal {
  background: var(--frame-bg);
  padding: 2rem;
  box-shadow: 0 10px 25px var(--theme-rgba-0-0-0-0_3);
  border-radius: 10px;
  width: auto;
  min-width: 300px;
  max-width: 90vw;
  position: relative;
}
.audio-modal p {
  color: var(--font-color);
}

.audio-modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Legacy button rules — replaced by il-save-button component
.audio-modal button {
  margin: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--theme-color-00aaff);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

.audio-modal button:hover {
  background: var(--theme-color-0088cc);
}
*/
/* Volume slider overlay */
.volume-slider-container {
  order: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  padding: 0 1rem;
  justify-content: flex-start;
}

/* Legacy volume controls — replaced by unified il-audio-controls inside il-toggle
.volume-slider-audio-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.volume-slider-container label {
  font-size: 0.9rem;
  color: #333;
}

.volume-slider-container input[type="range"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 50px;
  height: 6px;
  background: var(--theme-color-cccccc);
  border-radius: 3px;
  outline: none;
  position: relative;
}

.volume-slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--theme-color-ededed);
  border: 1px solid var(--theme-color-aaaaaa);
  cursor: pointer;
  margin-top: -2px;
}

.volume-slider-container input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--theme-color-ededed);
  border: 1px solid var(--theme-color-aaaaaa);
  cursor: pointer;
  margin-top: -2px;
}

.volume-slider-container input[type="range"]::-moz-range-track {
  height: 6px;
  background: var(--theme-color-cccccc);
  border-radius: 3px;
}

.volume-slider-container input[type="range"]::-ms-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--theme-color-ededed);
  border: 1px solid var(--theme-color-aaaaaa);
  cursor: pointer;
  margin-top: 0;
}

.volume-slider-container input[type="range"]::-ms-track {
  height: 6px;
  background: var(--theme-color-cccccc);
  border-radius: 3px;
  border: none;
  color: transparent;
}
*/
.image-zoom-overlay {
  position: absolute;
  background-color: var(--theme-rgba-0-0-0-0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  transition: background-color 0.3s ease;
}

.image-zoom-overlay.visible {
  background-color: var(--theme-rgba-0-0-0-0_7);
}

.zoomed-image-anim {
  border-radius: 10px;
  box-shadow: 0 10px 25px var(--theme-rgba-0-0-0-0_4);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* === Main container === */
.custom-video-container {
  position: relative;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 25px;
  box-shadow: 0 4px 12px var(--theme-rgba-0-0-0-0_25);
  background-color: var(--theme-color-e6e6e6);
}

/* === Video === */
.custom-video-container video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 25px;
  object-fit: cover;
}

/* === Overlay Controls === */
.custom-video-container .video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: linear-gradient(to top, var(--theme-rgba-0-0-0-0_45), var(--theme-rgba-0-0-0-0));
  opacity: 1;
  transition: opacity 0.4s ease;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
}

/* === Show overlay on hover === */
.custom-video-container:hover .video-overlay,
.custom-video-container:focus-within .video-overlay {
  opacity: 1;
}

/* === Controls === */
.custom-video-container button,
.custom-video-container input[type=range] {
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
}

.custom-video-container button {
  color: #fff;
  font-size: 1.2rem;
  padding: 4px 6px;
  transition: transform 0.15s ease;
}

.custom-video-container button:hover {
  transform: scale(1.1);
}

/* === Sliders === */
.custom-video-container input[type=range] {
  height: 4px;
  background: var(--theme-rgba-255-255-255-0_3);
  outline: none;
}

.custom-video-container input[type=range]:first-of-type {
  width: 90%;
  /* 90% width */
}

.custom-video-container input[type=range]:last-of-type {
  width: 10%;
  /* 10% width */
}

.custom-video-container input[type=range]::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background: var(--theme-color-ffffff);
  cursor: pointer;
}

.custom-video-container input[type=range]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--theme-color-ffffff);
  cursor: pointer;
}

/* === Time Display === */
.custom-video-container span {
  color: #fff;
  font-size: 0.85rem;
  font-family: monospace;
  min-width: 50px;
  text-align: right;
}

.custom-video-container input[type=range]::-webkit-slider-thumb {
  appearance: none;
  background: var(--theme-color-b8b8b8);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.custom-video-container input[type=range]::-moz-range-thumb {
  background: var(--theme-color-b8b8b8);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* === Fullscreen Mode === */
.custom-video-container.fullscreen-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0;
  background: var(--theme-color-000000);
  z-index: 9999;
}

.custom-video-container.fullscreen-mode video {
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.video-fullscreen-active {
  overflow: hidden;
}

.detailContainer {
  font-family: Arial, sans-serif;
}

.detailContainer img.detailImg {
  max-width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}

.project-card {
  padding: 15px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

.project-header {
  margin-bottom: 10px;
}

.project-title {
  font-weight: bold;
  font-size: 1.8em;
  font-family: "HeadlineFont", sans-serif;
}

.project-subtitle {
  color: #555;
  font-size: 0.9em;
}

.project-description-text {
  font-size: 0.95em;
  line-height: 1.4em;
}

.toolbar-detail-btn {
  cursor: pointer;
  width: 40px !important;
  height: 40px !important;
  display: flex;
  margin-right: 20px;
  border-radius: 100%;
  background-color: var(--theme-color-cccccc);
  color: #000;
  border: 1px solid var(--theme-color-afafaf);
  order: 3;
  font-size: 1.2em !important;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.toolbar-detail-btn:hover {
  background-color: var(--theme-color-ffffff);
}

.details-close-btn {
  position: sticky;
  margin-left: auto;
  background-color: var(--theme-color-e2e2e2);
  border-radius: 100%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.5;
  border: 1px solid var(--theme-color-1e1e1e3f);
}

.details-close-btn:hover {
  background-color: var(--theme-color-ffffff);
}

.details-close-container {
  display: flex;
  position: static;
  margin-left: auto;
}

.details-body {
  padding: 20px 0;
  text-align: justify;
}

.details-content {
  height: 100%;
  padding-top: 40px;
}

.error {
  font-size: 4em;
  font-weight: 700;
  color: rgba(50, 50, 50, 0.85);
}

.about-section {
  padding: 20px;
  overflow-y: auto;
  width: 100%;
  height: 100%;
  line-height: 1.6;
  background: var(--frame-bg-muted);
}

.about-header {
  text-align: center;
  margin-top: 40px;
}

.about-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1rem;
  color: var(--message-font-color-soft);
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 50px;
}

.about-content h2,
.about-content h3 {
  margin-top: 25px;
  margin-bottom: 10px;
}

.about-content a {
  color: #0077ff;
  text-decoration: none;
}

.about-content a:hover {
  text-decoration: underline;
}

.about-container {
  height: auto;
  padding-left: 20vw;
  padding-right: 20vw;
}

.impressum-section {
  padding: 20px;
  overflow-y: auto;
  width: 100%;
  height: 100%;
  line-height: 1.6;
  background: var(--frame-bg-muted);
}

.impressum-container {
  height: auto;
  padding-left: 20vw;
  padding-right: 20vw;
}

.impressum-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 50px;
}

.impressum-header {
  text-align: center;
  margin-top: 40px;
}

.impressum-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.impressum-header .note {
  font-size: 1rem;
  color: var(--message-font-color-soft);
}

.impressum-content h2,
.impressum-content h3 {
  margin-top: 25px;
  margin-bottom: 10px;
}

.impressum-content a {
  color: #0077ff;
  text-decoration: none;
}

.impressum-content a:hover {
  text-decoration: underline;
}

body.website-mode #frame[data-content-template=content-page] #display #contentframe #content {
  display: block;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}
body.website-mode #frame[data-content-template=content-page] .about-section,
body.website-mode #frame[data-content-template=content-page] .impressum-section {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}
body.website-mode #frame[data-content-template=content-page] .about-container,
body.website-mode #frame[data-content-template=content-page] .impressum-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

body.website-mode #frame[data-content-template=content-page][data-layout=stacked] .about-container,
body.website-mode #frame[data-content-template=content-page][data-layout=stacked] .impressum-container {
  padding-left: 5vw;
  padding-right: 5vw;
}

body.website-mode #frame[data-content-template=content-page][data-layout=split][data-tier=compact] .about-container,
body.website-mode #frame[data-content-template=content-page][data-layout=split][data-tier=compact] .impressum-container,
body.website-mode #frame[data-content-template=content-page][data-layout=split][data-tier=minimal] .about-container,
body.website-mode #frame[data-content-template=content-page][data-layout=split][data-tier=minimal] .impressum-container {
  padding-left: 8vw;
  padding-right: 8vw;
}

.video-loading-indicator .spinner {
  width: 48px;
  height: 48px;
  border: 5px solid var(--theme-rgba-255-255-255-0_2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.img-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  opacity: 1;
  transition: opacity 0.5s ease;
  /* smooth fade-out */
  pointer-events: none;
  /* do not block interactions */
}

.img-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 5px solid var(--theme-rgba-255-255-255-0_2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.img-loader.small .spinner {
  width: 24px;
  height: 24px;
  border-width: 3px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.toolbar-volume-btn {
  cursor: pointer;
  width: 40px !important;
  height: 40px !important;
  border-top-left-radius: 100% !important;
  border-bottom-left-radius: 100% !important;
  display: flex;
  border-radius: 100%;
  background-color: var(--theme-color-cccccc);
  color: #000;
  border: 1px solid var(--theme-color-afafaf);
  font-size: 1.2em !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Center the loader */
.sci-fi-loader {
  display: none;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  z-index: 9999;
  pointer-events: none;
}

/* --- HOLOGRAPHIC RINGS --- */
.holo-loader {
  position: relative;
  width: 160px;
  height: 160px;
  filter: drop-shadow(0 0 5px var(--theme-color-ffffff)) drop-shadow(0 0 5px var(--theme-color-dddddd));
  perspective: 800px;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid var(--theme-color-fafafa);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px var(--theme-color-ffffff);
}

.ring.outer {
  width: 160px;
  height: 160px;
  animation: spin3d 6s linear infinite;
}

.ring.mid {
  width: 120px;
  height: 120px;
  border-color: var(--theme-color-fafafa);
  animation: spin3d-rev 4s linear infinite;
}

.ring.inner {
  width: 80px;
  height: 80px;
  border-color: var(--theme-color-fafafa);
  animation: spin3d 3s linear infinite;
}

/* --- CORE --- */
.core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, var(--theme-color-ffffff) 0%, var(--theme-color-dddddd) 80%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 25px var(--theme-color-dddddd), 0 0 60px var(--theme-color-c2c2c2);
}

/* --- ORBITING PARTICLES --- */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform-origin: center center;
}

.orbit::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--theme-color-ffffff);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--theme-color-fafafa);
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}

.orbit1 {
  width: 180px;
  height: 180px;
  animation: orbit 7s linear infinite;
}

.orbit2 {
  width: 120px;
  height: 120px;
  animation: orbit-rev 4s linear infinite;
}

/* --- TEXT --- */
.loader-text {
  position: absolute;
  top: 46%;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.875em;
  letter-spacing: 2px;
  text-shadow: 0 0 8px var(--theme-color-1c1c1c), 0 0 20px var(--theme-color-dddddd);
  animation: flicker 2s infinite alternate;
}

/* --- ANIMATIONS --- */
@keyframes spin3d {
  0% {
    transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
  }
}
@keyframes spin3d-rev {
  0% {
    transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotateX(-360deg) rotateY(-360deg) rotateZ(-360deg);
  }
}
@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.7;
  }
}
@keyframes orbit {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes orbit-rev {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}
@keyframes flicker {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.media-zoomed {
  position: fixed;
  top: 0;
  left: 0;
  width: 90vw;
  height: 90vh;
  border-radius: 0px;
  box-shadow: none;
}

.video-loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spinner-text {
  margin-top: 6px;
}

#frame :not(.event-container):not(.event-container *):not(.chat-message):not(.chat-message *):not(.chat-panel-msg-body):not(.chat-panel-msg-body *) {
  color: var(--font-color);
}
