/* ==========================================================================
   DASHBOARD CSS - v1.0.32
   ==========================================================================

   CONTENT MENU
   01. Config / HTML Tags
   02. Dashboard General UI
   03. Popup Modals
   04. Playground
   05. Playground Elements
   06. Small Screen Responsive
   07. Keyframes

   ========================================================================== */

/* ==========================================================================
   01. CONFIG / HTML TAGS
   ========================================================================== */

:root {
  --app-bg: #fafafa;
  --app-page-bg: #fafafa;
  --app-text: #111111;
  --app-muted: rgba(17, 17, 17, .62);
  --app-soft: rgba(17, 17, 17, .46);
  --app-line: rgba(17, 17, 17, .10);
  --app-orange: #ff9900;
  --app-white: #ffffff;
  --app-dark: #000000;
  --app-green: #128a50;
  --app-blue: #2563eb;
  --app-red: #ff0000;
  --app-radius: 10px;
  --app-grid-line: transparent;
  --app-grid-size: 40px;
  --app-glass-blur: none;
  --app-liquid-bg: rgba(255, 255, 255, .72);
  --app-liquid-bg-strong: rgba(255, 255, 255, .86);
  --app-liquid-bg-soft: rgba(255, 255, 255, .58);
  --app-liquid-shadow: 0 22px 70px rgba(15, 23, 42, .10), 0 8px 24px rgba(15, 23, 42, .06);
  --app-liquid-shadow-soft: 0 14px 38px rgba(15, 23, 42, .08);
  --app-liquid-highlight: inset 0 1px 0 rgba(255, 255, 255, .92), inset 0 -1px 0 rgba(15, 23, 42, .035);
  --app-liquid-page: #fafafa;
  --app-liquid-surface: rgba(255, 255, 255, .78);
  --app-liquid-surface-strong: rgba(255, 255, 255, .90);
  --app-liquid-soft-shadow: 0 28px 80px rgba(15, 23, 42, .08), 0 10px 26px rgba(15, 23, 42, .045);
  --app-liquid-float-shadow: 0 34px 100px rgba(15, 23, 42, .12), 0 14px 38px rgba(15, 23, 42, .06);
  --app-liquid-button-shadow: 0 10px 22px rgba(0, 0, 0, .10);
  --app-liquid-gloss: linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .54));
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--app-text);
  background-color: var(--app-page-bg);
  background-image: none;
  background-size: var(--app-grid-size) var(--app-grid-size);
  background-position: center top;
  background-attachment: fixed;
  background: #fafafa;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  cursor: pointer;
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

input,
textarea,
select {
  font: inherit;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(17, 17, 17, .12);
  border-radius: var(--app-radius);
  background-color: rgba(255, 255, 255, .94);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(0, 0, 0, .34);
  box-shadow: 0 0 0 4px rgba(255, 153, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .92);
}

input::placeholder,
textarea::placeholder {
  color: rgba(17, 17, 17, .42);
}

textarea {
  min-height: 150px;
  padding: 14px;
  resize: vertical;
  line-height: 1.55;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath fill='rgba(17,17,17,.62)' d='M297.4 438.6C309.9 451.1 330.2 451.1 342.7 438.6L502.7 278.6C515.2 266.1 515.2 245.8 502.7 233.3C490.2 220.8 469.9 220.8 457.4 233.3L320 370.7L182.6 233.4C170.1 220.9 149.8 220.9 137.3 233.4C124.8 245.9 124.8 266.2 137.3 278.7L297.3 438.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}

select.ui-native-select[data-enhanced="1"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  border: 0;
  pointer-events: none;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-width: 16px;
  min-height: 16px;
  padding: 0;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: none;
  accent-color: #000000;
}

input[type="radio"] {
  border-radius: 999px;
}

input[type="file"],
input[type="hidden"] {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

select:disabled,
input:disabled,
textarea:disabled {
  opacity: .58;
  cursor: not-allowed;
}

img {
  max-width: 100%;
}

svg {
  display: block;
}

p {
  color: rgba(17, 17, 17, .62);
}

small {
  color: rgba(17, 17, 17, .62);
}

em {
  color: rgba(17, 17, 17, .62);
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   02. DASHBOARD GENERAL UI
   ========================================================================== */

.btn-primary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid #000000;
  border-radius: var(--app-radius);
  background: #000000;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.btn-primary:hover {
  background: #ffaa24;
  border-color: #ffaa24;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(17, 17, 17, .10);
  border-radius: var(--app-radius);
  background: #ffffff;
  color: var(--app-text);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.btn-secondary:hover {
  background: rgba(17, 17, 17, .06);
  color: var(--app-text);
  transform: translateY(-1px);
}

.btn-danger {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(255, 0, 0, .20);
  border-radius: var(--app-radius);
  background: rgba(255, 0, 0, .10);
  color: #ff0000;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.btn-danger:hover {
  background: rgba(255, 0, 0, .16);
  color: #ff0000;
  transform: translateY(-1px);
}

.app-spinner {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 16px dashed #000;
  border-top-color: #000000;
  animation: appSpin .75s linear infinite;
  border-color: var(--app-dark);
}

.app-page-dashboard {
  background: #fafafa;
  background-image: none;
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

.app-page-dashboard * {
  box-sizing: border-box;
}

.app-main-nav .app-active {
  background: #ffffff;
  color: var(--app-text);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .10);
}

.app-bandwidth-tabs .app-active {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .16);
}

.app-mobile-brand,
.app-sidebar-brand.app-mobile-brand {
  display: none;
}

.app-sidebar-brand img {
  width: 42px;
  height: 42px;
  border-radius: var(--app-radius);
  object-fit: cover;
}

.app-sidebar-brand span {
  display: grid;
  gap: 1px;
}

.app-sidebar-bottom a::after {
  content: "↗";
  font-size: 11px;
  line-height: 1;
  transform: translateY(-2px);
}

.app-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: transparent;
}





.app-dashboard-loading-active .app-dashboard-shell[hidden] {
  display: none !important;
}















.app-sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--app-text);
  text-decoration: none;
}

.app-sidebar-brand strong {
  font-size: 14px;
  font-weight: 900;
  color: var(--app-text);
}

.app-home-panel h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 72px);
  line-height: .9;
  color: var(--app-text);
}



.app-sidebar-brand em {
  color: rgba(17, 17, 17, .62);
  font-size: 12px;
  font-style: normal;
}



.app-home-panel p {
  margin: 0;
  max-width: 560px;
  color: rgba(17, 17, 17, .62);
  line-height: 1.55;
}



.app-sidebar-bottom a:hover {
  color: #000000;
}

.app-sidebar-bottom-btn:hover {
  color: #000000;
}



.app-bandwidth-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.app-bandwidth-title {
  display: grid;
  gap: 4px;
}

.app-bandwidth-title span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .52);
}

.app-bandwidth-title strong {
  font-size: clamp(30px, 4vw, 56px);
  line-height: .95;
  color: #000;
}

.app-bandwidth-title small {
  color: rgba(0, 0, 0, .56);
  font-weight: 650;
}

.app-bandwidth-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: var(--app-radius);
  background: rgba(0, 0, 0, .045);
}

.app-bandwidth-bar:hover {
  transform: translateY(-2px);
}

.app-bandwidth-bar-wrap small {
  text-align: center;
  color: rgba(0, 0, 0, .58);
  font-weight: 800;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-bandwidth-empty {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  color: rgba(0, 0, 0, .58);
  font-weight: 750;
}





.app-bandwidth-panel {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  color: var(--app-text);
  box-shadow: var(--app-liquid-shadow-soft), var(--app-liquid-highlight);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  position: relative;
  padding-bottom: 44px;
}

.app-bandwidth-bar {
  width: 100%;
  min-height: 10px;
  border-radius: var(--app-radius);
  background: linear-gradient(180deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .66)), #000;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .24);
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 5px;
  box-sizing: border-box;
  transition: height .25s ease, transform .2s ease;
  overflow: visible;
}



.app-bandwidth-bar-wrap {
  min-width: 0;
  height: 220px;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 10px;
  overflow: visible;
}

.app-bandwidth-bar span {
  color: #000;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  writing-mode: horizontal-tb;
  transform: translateX(-50%);
  white-space: nowrap;
  position: absolute;
  left: 50%;
  top: -28px;
  background: transparent;
  pointer-events: none;
}







.app-bandwidth-note {
  position: absolute;
  left: 20px;
  bottom: 16px;
  margin: 0;
  max-width: calc(100% - 40px);
  color: rgba(0, 0, 0, .58);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  align-self: start;
  justify-self: start;
  text-align: left;
  margin-top: 0;
}

.app-sidebar-bottom .app-sidebar-user-info {
  display: grid;
  gap: 2px;
  width: 100%;
  min-width: 0;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(17, 17, 17, .08);
  margin-bottom: 2px;
}

.app-sidebar-user-info strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--app-text);
  font-size: 13px;
  font-weight: 900;
}

.app-sidebar-user-info small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(17, 17, 17, .52);
  font-size: 12px;
  font-weight: 700;
}

.app-main-nav .app-nav-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.app-main-nav .app-nav-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
}

.app-dashboard-shell * {
  box-sizing: border-box;
}

.app-dashboard-shell *::before {
  box-sizing: border-box;
}

.app-dashboard-shell *::after {
  box-sizing: border-box;
}

.app-dashboard-shell {
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 12px;
  padding: 0;
  position: relative;
  box-sizing: border-box;
  max-width: 100%;
}

.app-sidebar-brand-row .app-sidebar-brand {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
}

.app-sidebar-bottom a {
  min-height: 22px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(17, 17, 17, .62);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
}

.app-sidebar-bottom-btn {
  min-height: 22px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(17, 17, 17, .62);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
}









.app-sidebar .app-sidebar-brand {
  display: inline-flex;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

body.app-sidebar-open .app-sidebar .app-sidebar-brand {
  display: inline-flex;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

html.app-sidebar-open .app-sidebar .app-sidebar-brand {
  display: inline-flex;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.app-sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-bottom: 18px;
  max-width: 100%;
  min-width: 0;
  order: 0;
  flex: 0 0 auto;
}

.app-main-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-items: stretch;
  order: 2;
  box-sizing: border-box;
  pointer-events: auto;
}

.app-main-nav .btn-secondary {
  justify-content: flex-start;
  text-align: left;
}

.app-sidebar-bottom {
  flex: 0 0 auto;
  display: grid;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  order: 3;
}



body.app-chat-fullscreen .app-sidebar {
  pointer-events: none;
  filter: none;
  display: initial;
}

.app-home-panel {
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 0;
  position: relative;
  background: transparent;
  background-image: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  align-items: stretch;
  justify-content: start;
  place-content: start stretch;
  width: 100%;
}

.app-home-panel.app-home {
  width: 100%;
  max-width: none;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.app-home .app-home-hero {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 30px 0px;
}

.app-home .app-home-hero-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.app-home .app-home-metric-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: var(--app-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.app-home .app-home-work-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: var(--app-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.app-home h1 {
  max-width: 760px;
  margin: 0;
  color: var(--app-text);
  font-size: clamp(48px, 7vw, 96px);
  line-height: .88;
  font-weight: 950;
}

.app-home .app-home-hero-copy p {
  max-width: 740px;
  margin: 0;
  color: var(--app-muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
}

.app-home .app-home-actions {
  justify-self: end;
  align-self: start;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 190px;
  max-width: 190px;
  margin: 0;
}

.app-home .app-home-metrics {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.app-home-metric-card {
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
}

.app-home .app-home-metric-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  color: var(--app-text);
  box-shadow: var(--app-liquid-shadow-soft), var(--app-liquid-highlight);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
}

.app-home-work-card {
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
}

.app-home .app-home-metric-card strong {
  color: var(--app-text);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.app-home .app-home-metric-card small {
  margin: 0;
  color: rgba(17, 17, 17, .58);
  font-size: 13px;
  line-height: 1.45;
}

.app-home .app-home-work-card p {
  margin: 0;
  color: rgba(17, 17, 17, .58);
  font-size: 13px;
  line-height: 1.45;
}

.app-home .app-home-bandwidth-panel {
  width: 100%;
  min-width: 0;
  margin: 0;
  border-radius: var(--app-radius);
  overflow: hidden;
}

.app-home .app-home-workspace {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}

.app-home .app-home-work-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  color: var(--app-text);
  box-shadow: var(--app-liquid-shadow-soft), var(--app-liquid-highlight);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  grid-template-rows: auto 1fr auto;
}

.app-home .app-home-work-card div {
  display: grid;
  gap: 6px;
}

.app-home .app-home-work-card strong {
  color: var(--app-text);
  font-size: 18px;
  line-height: 1.2;
}

.app-home-work-btn {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--app-radius);
  padding: 0 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  justify-self: start;
  background: rgba(255, 255, 255, .08);
  color: var(--app-text);
  border: 1px solid rgba(255, 255, 255, .12);
}

.app-home .app-home-usage-flex {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.app-home .app-home-usage-flex .app-home-metrics {
  flex: 0 0 300px;
  width: 300px;
  min-width: 260px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  order: 1;
}

.app-home .app-home-usage-flex .app-home-bandwidth-panel {
  flex: 1 1 auto;
  min-width: 0;
  order: 2;
}

.app-home .app-home-usage-flex .app-home-metric-card {
  width: 100%;
  min-width: 0;
  flex: 1 1 0;
}

.app-home .app-home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  padding: 12px;
  border-radius: var(--app-radius);
  border: 1px solid var(--app-dark);
}

.app-bandwidth-chart {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  padding: 34px 2px 18px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.app-bandwidth-chart .app-bandwidth-bar-wrap {
  flex: 0 0 clamp(28px, 3.4vw, 48px);
  width: clamp(28px, 3.4vw, 48px);
  min-width: clamp(28px, 3.4vw, 48px);
  max-width: clamp(28px, 3.4vw, 48px);
  height: 220px;
}

.app-bandwidth-chart .app-bandwidth-empty {
  flex: 1 0 100%;
  width: 100%;
}

.app-bandwidth-chart[data-app-bandwidth-range="daily"],
.app-bandwidth-chart[data-app-bandwidth-range="weekly"] {
  overflow-x: hidden;
}

.app-bandwidth-chart[data-app-bandwidth-range="daily"] .app-bandwidth-bar-wrap,
.app-bandwidth-chart[data-app-bandwidth-range="weekly"] .app-bandwidth-bar-wrap {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: none;
}

.app-bandwidth-chart[data-app-bandwidth-range="daily"] .app-bandwidth-bar,
.app-bandwidth-chart[data-app-bandwidth-range="weekly"] .app-bandwidth-bar {
  width: 100%;
}

.app-bandwidth-chart[data-app-bandwidth-range="monthly"] .app-bandwidth-bar-wrap {
  flex: 1 0 clamp(28px, 3.4vw, 48px);
}

.app-sidebar {
  min-height: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  width: 270px;
  max-width: 270px;
  min-width: 0;
  align-items: stretch;
  overflow-x: hidden;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), box-shadow .32s ease;
  will-change: transform;
  z-index: 2147483000;
}

.app-sidebar-close {
  display: none;
  transition: transform .18s ease, background .18s ease;
}

.app-sidebar-close:hover {
  transform: rotate(90deg) scale(1.03);
}

.app-mobile-menu-btn {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 2147482600;
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  border-radius: var(--app-radius);
  background: #ffffff;
  color: var(--app-text);
  font-size: 22px;
  font-weight: 900;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(17, 17, 17, .10);
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .18s ease, box-shadow .18s ease;
}

.app-mobile-menu-btn:hover {
  transform: translateY(-1px) scale(1.02);
}

body.app-sidebar-open::after {
  animation: appSidebarBackdropIn .24s ease both;
}

html.app-sidebar-open::after {
  animation: appSidebarBackdropIn .24s ease both;
}

.app-page-dashboard *::before {
  box-sizing: border-box;
}

.app-page-dashboard *::after {
  box-sizing: border-box;
}

.app-billing-loader.app-open {
  display: grid;
}

.app-dashboard-loader[hidden] {
  display: none !important;
}

.app-dashboard-loader-card {
  width: min(100%, 420px);
  min-height: 260px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  border-radius: var(--app-radius);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: center;
}

.app-dashboard-loader-card h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.app-dashboard-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(250, 250, 250, .92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.app-billing-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(250, 250, 250, .92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.app-dashboard-loader-card p {
  margin: 0;
  max-width: 260px;
  color: rgba(17, 17, 17, .62);
  font-size: 14px;
  line-height: 1.5;
}

.app-billing-card {
  width: min(100%, 420px);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  text-align: center;
  box-shadow: var(--app-liquid-shadow-soft), var(--app-liquid-highlight);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  color: var(--app-text);
}

.app-chat-widget.app-chat-small .app-chat-float-btn {
  display: none;
}

.app-chat-widget.app-chat-fullscreen .app-chat-float-btn {
  display: none;
}

.app-chat-widget.app-chat-hidden .app-chat-widget-panel {
  display: none;
}

.app-chat-widget .app-chat-widget-panel {
  position: relative;
}

.app-chat-widget .app-chat-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 54px;
  padding: 12px 132px 12px 14px;
  padding-right: 190px;
}

.app-chat-widget .app-chat-tool-close {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
}



.app-chat-widget .app-chat-widget-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--app-radius);
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .78), transparent 38%), linear-gradient(180deg, rgba(255, 255, 255, .46), transparent 44%);
  opacity: .72;
  z-index: 0;
}

.app-chat-widget-panel>* {
  position: relative;
  z-index: 1;
}

.app-chat-widget .app-chat-head.app-chat-head-ready {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  gap: 0;
  padding: 10px;
  padding-right: 10px;
  background: #e9e9e9;
  border-bottom: 0;
}

.app-chat-widget .app-chat-head.app-chat-head-ready>strong {
  width: 100%;
  color: #000;
  pointer-events: none;
}

.app-chat-widget .ui-code-copy-btn {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--app-radius);
  background: rgba(245, 245, 245, .96);
  color: #111;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .075), 0 1px 4px rgba(15, 23, 42, .05);
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  cursor: pointer;
}

.app-chat-widget .ui-code-copy-btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

.app-chat-widget .ui-code-copy-btn:focus {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

.app-chat-widget.app-chat-fullscreen {
  inset: 14px;
  right: 24px;
  bottom: 24px;
  position: fixed;
  top: auto;
  left: auto;
  width: min(420px, calc(100vw - 28px));
  height: auto;
  min-height: 0;
  max-height: calc(100vh - 48px);
}

.app-chat-widget {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 2147482500;
  transition: opacity .24s ease, transform .24s cubic-bezier(.2, .8, .2, 1);
}

.app-chat-widget-panel {
  display: none;
  width: min(440px, calc(100vw - 28px));
  height: min(680px, calc(100vh - 160px));
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  box-shadow: var(--app-liquid-shadow-soft), var(--app-liquid-highlight);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  background-image: none;
  transform: translateY(18px) scale(.96);
  transform-origin: bottom right;
  transition: opacity .24s ease, transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease;
  will-change: opacity, transform;
}

.app-chat-widget.app-chat-small .app-chat-widget-panel {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.app-chat-widget.app-chat-fullscreen .app-chat-widget-panel {
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100vw - 28px));
  height: auto;
  position: fixed;
  right: 24px;
  bottom: 24px;
  top: auto;
  left: auto;
  min-height: 0;
  max-height: calc(100vh - 48px);
  opacity: 1;
  transform: translateY(0) scale(1);
}

.app-chat-widget.app-chat-closing .app-chat-widget-panel {
  display: flex;
  transform: translateY(18px) scale(.96);
  pointer-events: none;
}

.app-chat-widget.app-chat-collapsed:not(.app-chat-closing) .app-chat-widget-panel {
  pointer-events: none;
}

.app-chat-widget.app-chat-closing .app-chat-float-btn {
  display: none;
  pointer-events: none;
  transform: translateY(8px) scale(.96);
}

.app-chat-widget:not(.app-chat-hidden):not(.app-chat-collapsed):not(.app-chat-small):not(.app-chat-fullscreen) .app-chat-float-btn {
  display: none;
}

.app-chat-widget.app-chat-hidden .app-chat-float-btn {
  display: inline-flex;
  animation: appChatFloatIn .22s cubic-bezier(.2, .8, .2, 1) both, appChatFloat 2.8s ease-in-out infinite .22s;
}

.app-chat-widget.app-chat-collapsed .app-chat-float-btn {
  display: inline-flex;
  animation: appChatFloatIn .22s cubic-bezier(.2, .8, .2, 1) both, appChatFloat 2.8s ease-in-out infinite .22s;
}

.st-dashboard-loading .app-spinner {
  margin-bottom: 8px;
}

/* ===========================================================================
   03. POPUP MODALS
   =========================================================================== */

.ui-modal-backdrop[hidden] {
  display: none !important;
}

.ui-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(250, 250, 250, .6);
  backdrop-filter: blur(24px) saturate(1.28);
  -webkit-backdrop-filter: blur(6px) saturate(1.28);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.ui-modal-backdrop.ui-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.ui-modal-open {
  overflow: hidden;
}

.ui-modal {
  width: min(100%, 720px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  position: relative;
  padding: 20px;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  background: var(--app-white);
  box-shadow: var(--app-liquid-float-shadow), var(--app-liquid-highlight);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  transform: translateY(10px) scale(.985);
  transition: opacity .2s ease, transform .24s cubic-bezier(.2, .8, .2, 1);
}

.ui-modal-backdrop.ui-open .ui-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ui-modal::before {
  content: "";
  position: sticky;
  top: 0;
  z-index: 0;
  display: block;
  height: 0;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .94);
}

.ui-modal * {
  box-sizing: border-box;
}

.ui-modal-header {
  display: grid;
  align-items: start;
  gap: 16px;
  padding: 0 56px 18px 0;
  margin: 0 0 18px;
  border-bottom: 1px solid rgba(17, 17, 17, .08);
  background: transparent;
}

.ui-modal-header h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.ui-modal-header p {
  margin: 8px 0 0;
  max-width: 58ch;
  color: rgba(17, 17, 17, .58);
  font-size: 14px;
  line-height: 1.5;
}

.ui-ai-cloud-preview {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: var(--app-radius);
}

.ui-ai-cloud-preview img,
.ui-ai-cloud-preview video {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(68vh, 720px);
  object-fit: contain;
  border-radius: var(--app-radius);
}

.ui-ai-cloud-preview video {
  width: 100%;
  background: #000;
}

.ui-ai-cloud-preview audio {
  width: 100%;
  max-width: 100%;
}

.ui-modal-close {
  width: 40px;
  height: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 0, 0, .20);
  border-radius: var(--app-radius);
  background: rgba(255, 0, 0, .10);
  color: var(--app-red);
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
  box-shadow: none;
  transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.ui-modal-close:hover {
  background: rgba(255, 0, 0, .16);
  color: var(--app-red);
  transform: translateY(-1px);
  box-shadow: none;
}

.ui-modal-close:focus-visible {
  outline: 3px solid rgba(255, 153, 0, .30);
  outline-offset: 2px;
}

.ui-modal-loading {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
}

.ui-modal .ui-form {
  padding: 0;
}

.ui-modal .ui-field {
  gap: 8px;
}

.ui-modal .ui-field small {
  color: rgba(17, 17, 17, .56);
}

.ui-modal .ui-form-error {
  color: #b4232f;
  background: rgba(255, 0, 0, .08);
  border: 1px solid rgba(255, 0, 0, .12);
}

.ui-modal .ui-command-message {
  color: #128a50;
  background: rgba(18, 138, 80, .10);
  border: 1px solid rgba(18, 138, 80, .14);
}

.ui-confirm-actions,
.ui-ai-cloud-delete-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.ui-modal>.ui-form-error {
  margin-top: 16px;
}

body.app-chat-frame-only .ui-modal-backdrop {
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.app-chat-frame-only .ui-modal {
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  transform: none;
}

body.app-chat-frame-only .ui-modal-close {
  display: none;
}

.app-cloud-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(17, 17, 17, .62);
  font-size: 12px;
  font-weight: 800;
}

.app-cloud-modal-field input {
  width: 100%;
  height: 42px;
}

.app-cloud-modal-field input:focus {
  border-color: rgba(255, 153, 0, .72);
  box-shadow: 0 0 0 4px rgba(255, 153, 0, .14);
}

.app-chat-mount .ui-modal-header {
  display: none;
}

.app-chat-widget .app-chat-mount .ui-chat-modal-tools {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.app-chat-widget .ui-chat-modal-tool-btn {
  border: 1px solid rgba(17, 17, 17, .10);
  background: #ffffff;
  color: var(--app-text);
  box-shadow: none;
}

.app-chat-widget .ui-chat-modal-tool-btn.btn-danger,
.app-chat-widget .app-chat-tool-close.btn-danger,
.app-sidebar-close.btn-danger {
  border: 1px solid rgba(255, 0, 0, .20);
  background: rgba(255, 0, 0, .10);
  color: var(--app-red);
  box-shadow: none;
}

.app-chat-widget .ui-chat-modal-tool-btn.btn-danger:hover,
.app-chat-widget .app-chat-tool-close.btn-danger:hover,
.app-sidebar-close.btn-danger:hover {
  background: rgba(255, 0, 0, .16);
  color: var(--app-red);
}

.app-chat-head.app-chat-head-ready .ui-chat-modal-tools.app-chat-tools-ready {
  margin-left: auto;
}

.app-chat-widget .app-chat-head.app-chat-head-ready>.ui-chat-modal-tools.app-chat-tools-ready {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: 0;
  transform: translateY(-50%);
}

body.app-chat-frame-only .ui-chat-modal-tools {
  right: 14px;
}



.ui-chat-history-modal {
  width: min(720px, calc(100vw - 32px));
  min-height: min(620px, calc(100dvh - 40px));
  max-height: min(760px, calc(100dvh - 40px));
  display: grid;
  grid-template-rows: 1fr;
  padding: 18px;
  border-radius: 0;
  overflow: hidden;
}

/* ==========================================================================
   04. PLAYGROUND
   ========================================================================== */

.app-playground-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-playground-mount>* {
  max-width: 100%;
}

.app-playground-mount #streaming-dashboard .ui-studio-topbar {
  display: none;
}

.app-playground-mount #streaming-dashboard .ui-dashboard.ui-studio-dashboard {
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
}

.ui-dashboard-tools #uiAiCloudBtn {
  width: auto;
  min-width: 0;
  white-space: nowrap;
}

.app-playground-mount #streaming-dashboard .ui-studio-control-panel .ui-studio-actions:empty {
  display: none;
}

.app-playground-mount #streaming-dashboard .ui-studio-header>p {
  flex: 0 1 auto;
}

.app-playground-mount #streaming-dashboard .ui-studio-header>h1 {
  flex: 0 1 auto;
}

.app-playground-mount #streaming-dashboard .app-studio-heading-text {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.app-playground-mount #streaming-dashboard .app-studio-heading-text h1 {
  margin: 0;
}

.app-playground-mount #streaming-dashboard .app-studio-heading-text p {
  margin: 0;
}

.app-playground-mount #streaming-dashboard .sl-header.ui-studio-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
}

.app-playground-mount #streaming-dashboard .ui-studio-header {
  margin: 0 0 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
}

.app-playground-mount #streaming-dashboard .ui-studio-control-panel .ui-studio-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%;
}

.app-playground-mount #streaming-dashboard .app-studio-top-panel .ui-studio-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.ui-dashboard-tools.ui-studio-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%;
}

.app-playground::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--app-radius);
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .78), transparent 38%), linear-gradient(180deg, rgba(255, 255, 255, .46), transparent 44%);
  opacity: .72;
  z-index: 0;
}

.app-playground>* {
  position: relative;
  z-index: 1;
}

.app-playground-mount #streaming-dashboard .ui-studio-sl-card.sl-card {
  min-height: 0;
  padding: 0;
  background: transparent;
  border-radius: var(--app-radius);
  background-image: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.app-playground-mount #streaming-dashboard .sl-card {
  background: transparent;
  background-image: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.app-playground-mount #streaming-dashboard .ui-studio-sl-card {
  position: relative;
  background: transparent;
  background-image: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.app-playground-mount #streaming-dashboard .ui-dashboard {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.app-playground-mount #streaming-dashboard .ui-studio-dashboard {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.app-playground-mount #streaming-dashboard .ui-studio-control-panel {
  width: 100%;
  flex-basis: 260px;
  position: static;
  inset: auto;
  transform: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  max-width: 420px;
  margin-left: auto;
  flex: 0 1 460px;
  align-self: flex-start;
  min-width: 320px;
  padding: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.app-playground-mount #streaming-dashboard .ui-app-shell {
  box-shadow: none;
  background: transparent;
  border: 0;
  overflow: visible;
}

.app-playground-mount #streaming-dashboard .ui-layout-shell {
  box-shadow: none;
  background: transparent;
  border: 0;
  overflow: visible;
}

.app-playground-mount #streaming-dashboard .ui-sl-card-shell {
  box-shadow: none;
  background: transparent;
  border: 0;
  overflow: visible;
}

.app-playground-mount #streaming-dashboard .ui-playground {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

.app-playground-mount #streaming-dashboard .ui-sl-playground {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}







.app-playground-mount #streaming-dashboard .ui-studio-header p {
  max-width: 380px;
}

.app-playground-mount .ui-chat-message-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  align-self: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  position: relative;
  z-index: 3;
}

.app-playground-mount .ui-chat-mini-btn {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--app-radius);
  background: rgba(245, 245, 245, .96);
  color: #111;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .075), 0 1px 4px rgba(15, 23, 42, .05);
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  cursor: pointer;
}

.app-playground-mount .ui-code-copy-btn {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--app-radius);
  background: rgba(245, 245, 245, .96);
  color: #111;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .075), 0 1px 4px rgba(15, 23, 42, .05);
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  cursor: pointer;
}

.app-playground-mount .ui-chat-mini-btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

.app-playground-mount .ui-chat-mini-btn:focus {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

.app-playground-mount .ui-code-copy-btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

.app-playground-mount .ui-code-copy-btn:focus {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

.app-playground-mount .ui-chat-branch-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 4px 0 0;
  opacity: 1;
  visibility: visible;
}

.app-playground-mount .ui-chat-branch-controls .ui-chat-mini-btn {
  min-width: 28px;
  padding: 0 8px;
}

.app-playground-mount .ui-chat-branch-controls span {
  color: #111;
  font-size: 12px;
  font-weight: 850;
}

.app-playground {
  min-height: 0;
  border: 1px solid rgba(17, 17, 17, .08);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  color: var(--app-text);
  box-shadow: var(--app-liquid-shadow-soft), var(--app-liquid-highlight);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  position: relative;
  overflow: hidden;
  background-size: auto;
  isolation: isolate;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-playground-mount {
  width: 100%;
  height: 100%;
  overflow: auto;
  border: 0;
  background: transparent;
  padding: 34px;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.app-playground-mount>#streaming-dashboard {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-playground-mount>#ai-dashboard {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-playground-mount>.app-home-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-playground-mount>.app-billing-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-playground-mount>.app-email-settings {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-playground-mount>.app-cloud-template {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}

.app-playground-mount>.app-library-template {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}

.app-playground-mount #streaming-dashboard {
  min-height: 0;
  height: auto;
  background: transparent;
  box-shadow: none;
  border: 0;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-playground-mount #streamingApp {
  box-shadow: none;
  background: transparent;
  border: 0;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-playground-mount #ai-dashboard {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-playground-mount .ui-app-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-playground-mount .ui-layout-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-playground-mount .ui-sl-card-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-playground-mount .ui-playground {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-playground-mount .ui-sl-playground {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-playground-mount .ui-dashboard {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-playground-mount .ui-studio-dashboard {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-playground-mount .ui-studio-ground {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-playground-mount #streaming-dashboard .ui-studio-ground {
  display: block;
  gap: 14px;
  min-height: 0;
  height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.app-playground-mount #streaming-dashboard .ui-studio-control-panel.app-studio-top-panel {
  display: none;
}

.app-playground-mount #streaming-dashboard .app-studio-top-panel {
  position: static;
  inset: auto;
  transform: none;
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  flex: 0 1 460px;
  align-self: flex-start;
  min-width: 320px;
  padding: 10px;
  background: transparent;
  border: 0;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .075), 0 2px 10px rgba(15, 23, 42, .04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.app-chat-fullscreen .app-playground {
  pointer-events: none;
  filter: none;
  display: initial;
}

.app-playground-mount .app-home-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  justify-items: stretch;
  align-content: start;
  width: 100%;
  max-width: none;
  min-width: 0;
  gap: 16px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.app-playground-loader {
  min-height: min(560px, calc(100vh - 160px));
  display: grid;
  place-items: center;
  width: 100%;
  padding: 28px;
  border-radius: var(--app-radius);
  background: transparent;
  box-shadow: none;
  color: var(--app-text);
  text-align: center;
}

.app-playground-default-loader .app-dashboard-loader-card {
  width: min(100%, 420px);
  min-height: 260px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  border-radius: var(--app-radius);
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.app-playground-default-loader .app-dashboard-loader-card h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
  color: var(--app-text);
}

.app-playground-default-loader .app-dashboard-loader-card p {
  margin: 0;
  max-width: 260px;
  color: rgba(17, 17, 17, .62);
  font-size: 14px;
  line-height: 1.5;
}



.ui-playground {
  background: #ffffff;
  background-image: none;
  border-color: rgba(17, 17, 17, .08);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--app-text);
  width: min(100% - 28px, 1240px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 42px) 0;
  position: relative;
}

.ui-studio-control-panel {
  padding: 14px;
  width: 320px;
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: var(--app-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .032));
  backdrop-filter: var(--app-glass-blur);
  -webkit-backdrop-filter: var(--app-glass-blur);
  height: auto;
  max-height: none;
  overflow: visible;
}

.ui-studio-header {
  margin-bottom: 22px;
}

.ui-studio-header h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .92;
}

.ui-studio-header p {
  margin: 12px 0 0;
  max-width: 540px;
  color: var(--app-muted);
  font-size: 15px;
  line-height: 1.55;
}

.ui-studio-ground {
  width: 100%;
  display: block;
  gap: 24px;
  overflow: visible;
}

.ui-dashboard-tools {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ui-hero-dashboard-tools {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ui-dashboard-tools.ui-hero-dashboard-tools.ui-studio-tools {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  order: 0;
}

/* ==========================================================================
   05. PLAYGROUND ELEMENTS
   ========================================================================== */





.app-email-settings label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--app-text);
}

.app-email-settings-btn {
  min-height: 42px;
  border: 0;
  border-radius: var(--app-radius);
  background: #000000;
  color: #ffffff;
  font-weight: 900;
  border-color: #000000;
  box-shadow: none;
}

.app-email-settings {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: var(--app-radius);
  background: transparent;
  max-width: 580px;
  background-image: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}











#appLibrarySearch {
  min-width: min(100%, 220px);
}

#appLibraryPreviewTitle {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.08;
  max-height: 2.16em;
}

.app-studio-top-panel {
  box-shadow: 0 16px 42px rgba(15, 23, 42, .075), 0 2px 10px rgba(15, 23, 42, .04);
}



.app-studio-usage-widget {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.app-studio-coins-usage {
  grid-template-columns: minmax(0, 1fr) minmax(220px, .45fr);
}

.app-studio-usage-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
}

.app-studio-usage-card span {
  font-size: 12px;
  font-weight: 800;
  color: rgba(17, 17, 17, .58);
}

.app-studio-usage-card strong {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
  color: var(--app-text);
}

.app-studio-usage-card small {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(17, 17, 17, .58);
}

.app-studio-usage-action {
  align-items: stretch;
}

.app-studio-usage-btn {
  width: 100%;
  min-height: 42px;
  justify-content: center;
}

#appHomeSlotsNote {
  display: block;
  line-height: 1.35;
}




.app-studio-trial-note {
  display: block;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 153, 0, .28);
  border-radius: var(--app-radius);
  background: radial-gradient(circle at 0% 0%, rgba(255, 153, 0, .16), transparent 34%), rgba(255, 153, 0, .08);
  color: var(--app-text);
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 12px 32px rgba(255, 153, 0, .10);
}

.app-studio-trial-note[hidden] {
  display: none !important;
}

.app-chat-mount #streaming-dashboard {
  width: 100%;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
}

body.app-chat-frame-only #streamingApp {
  display: none;
}

.app-cloud-page .ui-ai-cloud-grid {
  width: 100%;
}

.app-library-head h1 {
  margin: 0;
  color: #000;
  font-size: clamp(28px, 4vw, 54px);
  line-height: .95;
}

.app-library-head p {
  margin: 8px 0 0;
  color: rgba(0, 0, 0, .62);
  max-width: 620px;
  font-size: 14px;
  line-height: 1.55;
}

.app-library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.app-library-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}

.app-library-card:hover .app-library-media img {
  transform: scale(1.035);
}

.app-library-play {
  position: absolute;
  inset: auto 10px 10px auto;
  width: 34px;
  height: 34px;
  border-radius: var(--app-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .92);
  color: #000;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
  font-size: 12px;
}

.app-library-card-body strong {
  color: var(--app-text);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 850;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-library-card-body small {
  color: rgba(17, 17, 17, .58);
  font-size: 11px;
  font-weight: 750;
}

.app-library-panel {
  display: grid;
  gap: 18px;
  width: 100%;
  min-height: 100%;
  align-content: start;
}

.app-library-loader {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #000;
}

.app-library-loader[hidden] {
  display: none !important;
}

.app-library-loader strong {
  font-size: 22px;
}

.app-library-loader span {
  color: rgba(0, 0, 0, .62);
}

.app-library-status.app-library-error {
  padding: 14px 16px;
  border-radius: var(--app-radius);
  background: rgba(255, 238, 238, .95);
  color: #a10000;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
}

.app-library-tools {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: min(100%, 880px);
}

.app-library-tools #appLibrarySearch {
  min-width: 220px;
}

.app-library-tools [hidden] {
  display: none !important;
}

.app-library-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.app-library-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 6px 0 0;
}

.app-library-pagination[hidden] {
  display: none !important;
}

.app-library-pagination span {
  color: #000;
  font-weight: 850;
  font-size: 13px;
}

.app-library-preview {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 4px 0 12px;
}

.app-library-preview-image {
  width: 100%;
  max-height: min(68vh, 720px);
  object-fit: contain;
  border-radius: var(--app-radius);
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .10);
}

.app-library-preview-video {
  width: 100%;
  max-height: min(68vh, 720px);
  object-fit: contain;
  border-radius: var(--app-radius);
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .10);
}

.app-library-preview-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.app-library-preview-actions a {
  text-decoration: none;
  justify-content: center;
}

.app-library-preview-actions small {
  flex: 1 0 100%;
  color: rgba(17, 17, 17, .62);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.app-library-preview-actions small[hidden] {
  display: none !important;
}

.app-library-header {
  display: grid;
  justify-content: stretch;
  align-items: start;
  gap: 16px;
  grid-template-columns: 1fr;
}

#appLibraryForm.app-library-tools {
  width: 100%;
  max-width: none;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  justify-content: stretch;
  gap: 12px;
}

#appLibraryForm .app-library-primary-row {
  display: grid;
  grid-template-columns: minmax(130px, 190px) minmax(220px, 1fr);
  gap: 10px;
  width: 100%;
}

#appLibraryForm .app-library-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.app-library-status {
  color: rgba(0, 0, 0, .62);
  font-size: 13px;
  font-weight: 850;
}

.app-cloud-page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-cloud-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: var(--app-radius);
  background: transparent;
  overflow: visible;
}

.app-cloud-hero-copy {
  min-width: 0;
}

.app-cloud-hero-control {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.app-cloud-hero h1 {
  margin: 0 0 6px;
  color: #111;
  font-size: clamp(30px, 4vw, 52px);
  line-height: .95;
}

.app-cloud-hero p {
  margin: 0;
  color: rgba(0, 0, 0, .60);
  max-width: 720px;
  line-height: 1.55;
}

.app-cloud-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.app-cloud-icon-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 4px;
}

.app-cloud-toolbar {
  display: grid;
  grid-template-columns: 140px minmax(180px, 1fr) 120px auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  color: var(--app-text);
  box-shadow: var(--app-liquid-shadow-soft), var(--app-liquid-highlight);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
}

.app-cloud-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(0, 0, 0, .58);
  font-size: 12px;
  font-weight: 800;
}

.app-cloud-toolbar input {
  width: 100%;
  height: 42px;
}

.app-cloud-toolbar select {
  width: 100%;
  height: 42px;
}

.app-cloud-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  min-height: 74px;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  color: var(--app-text);
  box-shadow: var(--app-liquid-shadow-soft), var(--app-liquid-highlight);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  text-align: center;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.app-cloud-dropzone strong {
  color: #111;
}

.app-cloud-dropzone.app-cloud-dragging {
  border-color: rgba(255, 153, 0, .86);
  background: rgba(255, 153, 0, .10);
  transform: translateY(-1px);
}

.app-cloud-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.app-cloud-row-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--app-radius);
  border: 1px solid rgba(255, 153, 0, .22);
  background: linear-gradient(145deg, rgba(255, 153, 0, .18), rgba(255, 255, 255, .72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88);
}

.app-cloud-row-icon svg {
  width: 24px;
  height: 24px;
  fill: #111;
}

.app-cloud-row-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-cloud-row-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--app-text);
  font-size: 14px;
}

.app-cloud-row-text small {
  color: rgba(17, 17, 17, .58);
  font-size: 12px;
}

.app-cloud-mini-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .86);
  color: #111;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.app-cloud-mini-btn:hover {
  border-color: rgba(255, 153, 0, .40);
  background: rgba(255, 153, 0, .10);
}

.app-cloud-status-text {
  color: rgba(0, 0, 0, .46);
  font-weight: 400;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.app-cloud-status-text[hidden] {
  display: none !important;
}

.app-cloud-breadcrumbs {
  display: inline-flex;
  gap: 4px;
}
.app-cloud-breadcrumbs button {
  border-radius: var(--app-radius);
  color: rgba(0, 0, 0, .46);
}

.app-cloud-status-message {
  margin-right: 10px;
  color: rgba(0, 0, 0, .46);
  font-weight: 400;
}

.app-chat-mount>* {
  max-width: 100%;
}

body.app-chat-fullscreen .app-chat-mount {
  height: calc(100vh - 96px);
}

.app-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.app-chat-mount .app-chat-embedded {
  width: 100%;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
}

.app-chat-mount .ui-form {
  height: 100%;
  min-height: 0;
}

.app-chat-mount .ui-chat-shell {
  height: 100%;
  min-height: 0;
}

.app-chat-mount {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  background: transparent;
  flex: 1 1 auto;
  min-height: 0;
}

.app-chat-embedded {
  min-height: 0;
  height: 100%;
}

.app-chat-embedded .ui-chat-shell {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.app-chat-embedded .ui-chat-main {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.app-chat-embedded .ui-chat-messages {
  flex: 1 1 auto;
  min-height: 220px;
  max-height: none;
}

.app-chat-widget.app-chat-fullscreen .app-chat-mount .ui-chat-history-toggle {
  display: none;
}

.app-chat-widget:not(.app-chat-fullscreen) .app-chat-mount .ui-chat-history-toggle {
  display: inline-flex;
}

.app-chat-widget .ui-chat-shell {
  display: grid;
  grid-template-columns: minmax(170px, 210px) minmax(0, 1fr);
  min-height: 0;
  position: relative;
  overflow: visible;
}

.ui-chat-history-toggle {
  display: none;
}

.app-chat-widget:not(.app-chat-fullscreen) .ui-chat-shell {
  display: flex;
  grid-template-columns: none;
  position: relative;
  overflow: visible;
}

.app-chat-widget:not(.app-chat-fullscreen) .ui-chat-history-toggle {
  display: inline-flex;
}

.app-chat-widget.app-chat-fullscreen .ui-chat-history-toggle {
  display: none;
}



.ui-chat-history-list {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  height: 100%;
  max-height: none;
  margin: 10px 0 0;
  padding: 0 2px 2px 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}



.app-chat-widget.app-chat-fullscreen .ui-chat-shell {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  display: grid;
  gap: 14px;
  min-height: 0;
  align-items: stretch;
  height: 100%;
}

.app-chat-widget.app-chat-fullscreen .ui-chat-main {
  min-width: 0;
  min-height: 0;
}

.app-chat-widget .ui-chat-mode-select .ui-custom-select-btn {
  display: none;
  width: fit-content;
  min-width: 92px;
  min-height: 38px;
  padding: 0 12px;
}

.app-chat-head strong {
  color: var(--app-text);
}

.app-chat-widget .ui-chat-mode-select {
  width: fit-content;
  min-width: 170px;
  display: block;
}

.app-chat-widget .ui-chat-plus {
  border: 0;
  background: rgba(255, 255, 255, .70);
  color: var(--app-text);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .055);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  outline: 1px solid rgba(0, 0, 0, .05);
  outline-offset: -1px;
}

.app-chat-head.app-chat-head-ready {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-chat-widget .ui-chat-message-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  align-self: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  position: relative;
  z-index: 3;
}

.app-chat-widget .ui-chat-mini-btn {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--app-radius);
  background: rgba(245, 245, 245, .96);
  color: #111;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .075), 0 1px 4px rgba(15, 23, 42, .05);
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  cursor: pointer;
}

.app-chat-widget .ui-chat-mini-btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

.app-chat-widget .ui-chat-mini-btn:focus {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

.app-chat-widget .ui-chat-branch-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 4px 0 0;
  opacity: 1;
  visibility: visible;
}

.app-chat-widget .ui-chat-branch-controls .ui-chat-mini-btn {
  min-width: 28px;
  padding: 0 8px;
}

.app-chat-widget .ui-chat-branch-controls span {
  color: #111;
  font-size: 12px;
  font-weight: 850;
}

.app-chat-widget .ui-chat-message[data-has-files="1"] .ui-chat-message-actions [data-app-chat-action="edit"] {
  display: none;
}

.app-chat-widget .ui-chat-message[data-has-files="1"] .ui-chat-message-actions [data-app-chat-action="cancel-edit"] {
  display: none;
}

.app-chat-widget .ui-chat-fullscreen-toggle {
  display: none;
}

body.app-chat-fullscreen .app-chat-panel {
  position: fixed;
  inset: 14px;
  z-index: 2147483200;
  width: min(420px, calc(100vw - 28px));
  height: auto;
  right: 24px;
  bottom: 24px;
  top: auto;
  left: auto;
  min-height: 0;
  max-height: calc(100vh - 48px);
}

.app-chat-float-btn {
  min-width: 122px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: var(--app-radius);
  background: var(--app-orange);
  color: #ffffff;
  font-weight: 950;
  box-shadow: none;
  animation: appChatFloat 2.8s ease-in-out infinite;
  border-color: #000000;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease, opacity .2s ease;
  will-change: transform, opacity;
}

.app-chat-float-btn:hover {
  transform: translateY(-3px) scale(1.015);
}

body.app-chat-frame-only {
  background: transparent;
  overflow: hidden;
}

body.app-chat-frame-only #streamingLoader {
  display: none;
}




.ui-chat-history-panel {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
  gap: 10px;
  position: absolute;
  top: 8px;
  right: 8px;
  left: auto;
  bottom: auto;
  z-index: 180;
  width: min(360px, calc(100% - 16px));
  min-width: min(280px, calc(100% - 16px));
  max-width: calc(100% - 16px);
  height: min(460px, calc(100dvh - 170px));
  min-height: min(340px, calc(100dvh - 170px));
  max-height: calc(100dvh - 170px);
  padding: 12px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  background-image: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  box-shadow: var(--app-liquid-shadow-soft), var(--app-liquid-highlight);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  color: inherit;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.ui-chat-history-panel[hidden] {
  display: none !important;
}



.ui-chat-history-search {
  width: 100%;
  min-height: 38px;
  height: fit-content;
}

.ui-chat-history-item {
  box-sizing: border-box;
  width: 100%;
  height: fit-content;
  padding: 10px;
  border: 1px solid var(--app-dark);
  border-radius: var(--app-radius);
  background: var(--app-white);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  outline: 1px solid rgba(255, 255, 255, .58);
  outline-offset: -1px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.ui-chat-history-empty {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 10px;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  color: var(--app-soft);
  font-size: 12px;
}

.ui-chat-history-item:hover {
  transform: translateY(-1px);
  border: 2px solid var(--app-orange);
}

.ui-chat-history-item.ui-active {
  background: rgba(255, 255, 255, .98);
  border-color: rgba(17, 17, 17, .14);
}

@media (max-width: 640px) {
  .ui-chat-history-panel {
    top: 8px;
    right: 8px;
    left: 8px;
    width: auto;
    min-width: 0;
    max-width: none;
    height: min(430px, calc(100dvh - 150px));
    min-height: min(320px, calc(100dvh - 150px));
    max-height: calc(100dvh - 150px);
  }
}

body.app-chat-delete-open {
  overflow: hidden;
}

.ui-chat-delete-confirm {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(250, 250, 250, .68);
  backdrop-filter: blur(24px) saturate(1.28);
  -webkit-backdrop-filter: blur(24px) saturate(1.28);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.ui-chat-delete-confirm[hidden] {
  display: none !important;
}

.ui-chat-delete-confirm.ui-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.st-dashboard-loading .app-library-loader {
  min-height: 220px;
  width: min(100%, 420px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  color: var(--app-text);
}

.st-dashboard-loading .app-library-loader strong {
  font-size: 22px;
  line-height: 1.15;
}

.st-dashboard-loading .app-library-loader span {
  color: var(--app-muted);
  line-height: 1.45;
}

.ui-ai-cloud-item {
  border: 1px solid rgba(17, 17, 17, .08);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  color: var(--app-text);
  box-shadow: var(--app-liquid-shadow-soft), var(--app-liquid-highlight);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  transition: background .16s ease, transform .16s ease;
  width: calc(25% - 8px);
  min-width: 160px;
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 78px;
  padding: 13px;
  border-radius: var(--app-radius);
  text-align: left;
}

.ui-ai-cloud-item:hover {
  transform: translateY(-1px);
  background: radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .18), transparent 30%), linear-gradient(180deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .045));
  box-shadow: 0 22px 58px rgba(15, 23, 42, .08);
}

.ui-ai-cloud-loading {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  color: var(--app-muted);
}

.ui-ai-cloud-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.ui-ai-cloud-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--app-text);
  font-size: 13px;
  font-weight: 850;
}

.ui-ai-cloud-item em {
  color: rgba(17, 17, 17, .58);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.ui-studio-sl-card.sl-card {
  max-width: none;
  min-height: calc(100vh - 84px);
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--app-radius);
  position: relative;
  overflow: visible;
  background: var(--app-white);
}

.ui-studio-topbar .sl-back-home {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--app-radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)), rgba(255, 255, 255, .065);
  color: #fff;
  font-size: 24px;
  font-weight: 850;
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  transition: background .16s ease, transform .16s ease, color .16s ease;
}

.ui-studio-topbar .sl-back-home:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .075)), rgba(255, 255, 255, .09);
  color: #fff;
  transform: translateY(-1px);
}

#uiStreamFilter {
  max-width: 100%;
}

#uiStreamSearch {
  max-width: 100%;
  font-weight: 750;
}

.ui-studio-tools {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  order: 1;
}

.ui-stream-card:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: var(--app-liquid-float-shadow), var(--app-liquid-highlight);
}

.ui-stream-name {
  color: #000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
}

.ui-stream-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  grid-template-columns: 1fr;
  text-transform: uppercase;
}

.ui-stream-status {
  color: #000;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .075), 0 2px 8px rgba(15, 23, 42, .04);
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .09);
  font-size: 12px;
  font-weight: 900;
  text-transform: capitalize;
  white-space: nowrap;
}

.ui-stream-card {
  border: 0;
  background: var(--app-liquid-bg);
  box-shadow: var(--app-liquid-shadow-soft), var(--app-liquid-highlight);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  color: var(--app-text);
  position: relative;
  min-width: 0;
  display: block;
  padding: 16px 58px 16px 16px;
  border-radius: var(--app-radius);
  overflow: visible;
}

#streaming-dashboard {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--app-text);
}

#streaming-dashboard svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.ui-studio-dashboard {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ui-studio-sl-card {
  background: #ffffff;
  background-image: none;
  border-color: rgba(17, 17, 17, .08);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--app-text);
}

.ui-studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 0;
  background: transparent;
}

.ui-studio-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ui-studio-brand img {
  width: 46px;
  height: 46px;
  border-radius: var(--app-radius);
  object-fit: cover;
}

.ui-studio-brand span {
  display: grid;
  gap: 1px;
}

.ui-studio-brand strong {
  font-size: 14px;
}

.ui-studio-brand em {
  font-size: 12px;
  font-style: normal;
  color: var(--app-muted);
}

.ui-studio-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  order: 3;
}



#uiStreamSearch::placeholder {
  color: var(--app-soft);
}

.ui-stream-list {
  width: 100%;
  display: grid;
  overflow: visible;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.ui-stream-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: var(--app-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .10), transparent 48%);
  pointer-events: none;
}

.ui-stream-thumb {
  display: none;
}

.ui-stream-details {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 0;
  border-radius: var(--app-radius);
  background: transparent;
}

.ui-stream-title-row {
  min-width: 0;
  padding-right: 4px;
}

.ui-stream-updated {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--app-soft);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.ui-stream-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--app-radius);
  background: var(--app-soft);
}

.ui-stream-status[data-status="live"]::before {
  background: var(--app-green);
}

.ui-stream-status[data-status="running"]::before {
  background: var(--app-green);
}

.ui-stream-status[data-status="processing"]::before {
  background: var(--app-dark);
}

.ui-stream-status[data-status="starting"]::before {
  background: var(--app-dark);
}

.ui-stream-status[data-status="uploading"]::before {
  background: var(--app-dark);
}

.ui-stream-status[data-status="deleting"]::before {
  background: var(--app-dark);
}

.ui-stream-status[data-status="stopping"]::before {
  background: var(--app-dark);
}

.ui-stream-status[data-status="restarting"]::before {
  background: var(--app-dark);
}

.ui-stream-status[data-status="error"]::before {
  background: var(--app-red);
}

.ui-stream-status[data-status="ready"]::before {
  background: var(--app-blue);
}

.ui-stream-card.ui-menu-open {
  z-index: 50;
}

.ui-stream-card-menu-wrap {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 60;
  border-radius: var(--app-radius);
}

.ui-stream-card-menu-wrap:hover .ui-card-menu-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .07)), rgba(15, 15, 15, .62);
  color: #fff;
  transform: translateY(-1px);
}

.ui-stream-card-menu-wrap:focus-within .ui-card-menu-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .07)), rgba(15, 15, 15, .62);
  color: #fff;
  transform: translateY(-1px);
}

#ai-dashboard .ui-custom-select-btn:focus {
  box-shadow: 0 0 0 4px rgba(255, 153, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .92);
}

#ai-dashboard textarea {
  width: 100%;
  resize: vertical;
}

#uiAddCoinsGrid.ui-manage-slots-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#uiAddCoinsUpdateBtn {
  justify-content: center;
}

#uiRunModuleBtn {
  justify-content: center;
}

.ui-coins-price-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ui-coins-price-line b {}

.ui-coins-price-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: var(--app-radius);
  background: rgba(255, 153, 0, .16);
  color: var(--app-dark);
}

.ui-coins-price-icon svg {
  width: 19px;
  height: 19px;
}



.ui-add-coins-grid strong {
  font-size: 22px;
}

#uiAiFilter {
  max-width: 100%;
  flex: 0 0 190px;
  font-weight: 750;
}

#uiAiSearch {
  max-width: 100%;
  font-weight: 750;
}



.ui-ai-card {
  border: 1px solid rgba(17, 17, 17, .08);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  color: var(--app-text);
  box-shadow: var(--app-liquid-shadow-soft), var(--app-liquid-highlight);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .18s ease;
  position: relative;
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--app-radius);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}

.ui-ai-card:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: var(--app-liquid-float-shadow), var(--app-liquid-highlight);
}

#ai-dashboard .ui-ai-video-options {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ui-ai-type {
  color: rgba(17, 17, 17, .62);
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: var(--app-radius);
  background: rgba(255, 153, 0, .14);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

#uiAiSearch::placeholder {
  color: var(--app-soft);
}

.ui-ai-list {
  align-items: start;
}

.ui-ai-module-loading {
  min-height: 320px;
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 0;
  text-align: center;
}

.ui-ai-module-loading .ui-spinner {
  margin: 0;
}

.ui-ai-module-loading strong {
  margin: 0;
}



.ui-ai-video-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ui-ai-option-field {
  min-width: 0;
}

.ui-ai-option-label {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.ui-ai-custom-select .ui-custom-select-btn {
  min-height: 48px;
}

.ui-ai-custom-select .ui-custom-select-btn:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, .24);
}

.ui-ai-video-processing-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 22px;
  border-radius: var(--app-radius);
  background: radial-gradient(circle at 14% 0%, rgba(255, 153, 0, .16), transparent 34%), linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035));
  text-align: center;
}

.ui-ai-video-processing-card strong {
  font-size: 18px;
  font-weight: 900;
}

.ui-ai-video-processing-card span {
  max-width: 360px;
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ui-ai-frame-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ui-ai-frame-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px;
  border-radius: var(--app-radius);
  border: 2px dashed rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .055);
  cursor: pointer;
}

.ui-ai-frame-picker input {
  display: none;
}

.ui-ai-frame-picker strong {
  display: block;
  font-size: 13px;
  font-weight: 850;
}

.ui-ai-frame-picker small {
  display: block;
  margin-top: 3px;
}

.ui-ai-frame-preview {
  overflow: hidden;
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .055);
}

.ui-ai-frame-preview img {
  width: 100%;
  max-height: 220px;
  display: block;
  object-fit: cover;
}

.ui-ai-edit-image-grid {
  grid-template-columns: 1fr;
}

.ui-ai-edit-image-grid .ui-ai-frame-preview img {
  max-height: 260px;
  object-fit: contain;
  background: rgba(0, 0, 0, .24);
}

.ui-ai-edit-image-grid .ui-file-icon {
  background: rgba(255, 255, 255, .92);
  color: #050507;
}

.ui-chat-close-toggle {
  font-size: 20px;
  line-height: 1;
}

.ui-chat-plus {
  border: 0;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .055);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  outline: 1px solid rgba(0, 0, 0, .05);
  outline-offset: -1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: var(--app-radius);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.ui-chat-message-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  align-self: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
  opacity: .78;
  visibility: visible;
  pointer-events: auto;
  position: relative;
  z-index: 3;
  transition: opacity .16s ease, transform .16s ease;
}

.ui-chat-mini-btn {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .075), 0 1px 4px rgba(15, 23, 42, .05);
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  cursor: pointer;
}

.ui-chat-mini-btn:hover {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  transform: translateY(-1px);
}

.ui-chat-mini-btn:focus {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  transform: translateY(-1px);
}

.ui-chat-branch-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 4px 0 0;
  opacity: 1;
  visibility: visible;
}

.ui-chat-branch-controls .ui-chat-mini-btn {
  min-width: 26px;
  padding: 0 7px;
}

.ui-chat-branch-controls span {
  color: var(--app-soft);
  font-size: 12px;
  font-weight: 850;
}

.ui-chat-mode-select {
  position: relative;
  flex: 0 0 auto;
  width: fit-content;
  min-width: 170px;
}

.ui-chat-shell {
  background: #ffffff;
  background-image: none;
  border-color: rgba(17, 17, 17, .08);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--app-text);
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.ui-chat-main {
  background: #ffffff;
  background-image: none;
  border-color: rgba(17, 17, 17, .08);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--app-text);
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ui-chat-messages {
  background: #ffffff;
  background-image: none;
  border-color: rgba(17, 17, 17, .08);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--app-text);
  flex: 1 1 auto;
  min-height: 360px;
  max-height: 52vh;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 30px;
  border-radius: var(--app-radius);
}

.ui-chat-composer {
  background: #ffffff;
  background-image: none;
  border-color: rgba(17, 17, 17, .08);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--app-text);
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  padding-top: 8px;
  padding-bottom: 16px;
  padding: 0 16px 16px 16px;
}

.ui-chat-send-btn {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ui-chat-message {
  color: var(--app-text);
  padding: 8px;
  width: fit-content;
  max-width: min(88%, 780px);
  display: flex;
  flex-direction: column;
}

.ui-chat-message-content {
  color: var(--app-text);
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ui-chat-stop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ui-chat-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.ui-chat-tool-btn:hover {
  background: rgba(255, 255, 255, .14);
}

.ui-chat-tool-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.ui-chat-plus svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.ui-chat-send-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.ui-chat-stop-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.ui-chat-delete-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ui-chat-history-open {
  min-width: 0;
  display: grid;
  gap: 3px;
  background: transparent;
  text-align: left;
}

.ui-chat-history-open strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  outline: none;
}

.ui-chat-history-item small {
  color: rgba(17, 17, 17, .58);
  font-size: 12px;
}

.ui-chat-history-renaming .ui-chat-history-open strong {
  white-space: normal;
  padding: 5px 7px;
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .09);
}

.ui-chat-history-actions {
  display: inline-flex;
  gap: 4px;
}

.ui-chat-history-actions button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: var(--app-radius);
  font-size: 12px;
  font-weight: 850;
}

.ui-chat-history-actions .ui-chat-history-delete {
  border-color: rgba(255, 0, 0, .20);
  background: rgba(255, 0, 0, .10);
  color: var(--app-red);
}

.ui-chat-history-loading {
  min-height: 92px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .06);
  color: var(--app-muted);
  text-align: center;
  font-size: 13px;
}

.ui-chat-empty {
  width: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 200px;
  margin: auto;
  color: var(--app-soft);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.ui-chat-user {
  align-items: flex-end;
  justify-content: flex-start;
  margin-left: auto;
}

.ui-chat-assistant {
  align-items: flex-start;
  justify-content: flex-start;
  margin-right: auto;
}

.ui-chat-user .ui-chat-bubble {
  background: rgba(255, 153, 0, .18);
  border-radius: var(--app-radius);
  padding: 10px 18px;
}

.ui-chat-message-content strong {
  font-weight: 900;
}

.ui-chat-message-content em {}

.ui-chat-bubble>code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.ui-chat-message-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  padding: 2px 5px;
  border-radius: var(--app-radius);
  background: rgba(0, 0, 0, .28);
  color: #ffd894;
  font-size: .92em;
}

.ui-chat-code-block {
  overflow: hidden;
  margin: 10px 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--app-radius);
  background: rgba(0, 0, 0, .28);
}

.ui-chat-code-head {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .05);
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 850;
}

.ui-chat-code-block pre {
  margin: 0;
  padding: 12px;
  overflow: auto;
  white-space: pre;
}

.ui-chat-code-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  padding: 0;
  background: transparent;
  color: #fff;
}

.ui-chat-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ui-chat-files span {
  padding: 7px 9px;
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .08);
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 750;
}

.ui-chat-message-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px 9px;
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .08);
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 750;
}

.ui-chat-message:hover .ui-chat-message-actions {
  opacity: 1;
}

.ui-chat-message:focus-within .ui-chat-message-actions {
  opacity: 1;
}

.ui-chat-input-wrap {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .065);
}

.ui-chat-input-wrap textarea {
  width: 100%;
  min-height: 82px;
  max-height: 180px;
  resize: vertical;
}

.ui-chat-bottom-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.ui-chat-plus input {
  display: none;
}

.ui-chat-bottom-row .ui-chat-send-btn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: var(--app-radius);
  margin-left: auto;
  font-size: 20px;
  line-height: 1;
}

.ui-chat-bottom-row .ui-chat-stop-btn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: var(--app-radius);
  margin-left: auto;
  font-size: 20px;
  line-height: 1;
  background: rgba(255, 91, 110, .18);
  color: #ffd5dc;
}

.ui-chat-bottom-row .ui-chat-stop-btn:not([hidden])+.ui-chat-send-btn {
  display: none;
}

.ui-chat-bottom-row .ui-chat-send-btn[hidden] {
  display: none !important;
}

.ui-chat-send-btn .ui-spinner {
  width: 22px;
  height: 14px;
  border-width: 3px;
  border-radius: var(--app-radius);
  margin: 0;
}

.ui-chat-bubble-loading .ui-spinner {
  width: 22px;
  height: 14px;
  border-width: 3px;
  border-radius: var(--app-radius);
  margin: 0;
}

.ui-chat-history-loading .ui-spinner {
  width: 22px;
  height: 14px;
  border-width: 3px;
  border-radius: var(--app-radius);
  margin: 0;
}

.ui-chat-delete-card {
  width: min(100%, 460px);
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  box-shadow: var(--app-liquid-float-shadow), var(--app-liquid-highlight);
}

.ui-chat-delete-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 850;
}

.ui-chat-delete-card p {
  margin: 0;
  color: var(--app-muted);
  font-size: 14px;
  line-height: 1.55;
}

.ui-chat-inline-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 24px;
}

.ui-chat-inline-loader .ui-spinner {
  width: 18px;
  height: 18px;
  margin: 0;
}

.ui-chat-message-content .ui-chat-inline-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 46px;
  min-height: 24px;
  padding: 5px 2px;
  vertical-align: middle;
}

.ui-chat-message-content .ui-chat-loader-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--app-orange);
  opacity: .42;
  animation: appChatTypingDot 1s ease-in-out infinite;
}

.ui-chat-message-content .ui-chat-loader-dot:nth-child(2) {
  animation-delay: .15s;
}

.ui-chat-message-content .ui-chat-loader-dot:nth-child(3) {
  animation-delay: .3s;
}

.ui-chat-message[data-reply-loading="1"] [data-app-chat-action="copy"] {
  display: none;
}

.ui-chat-message[data-reply-loading="1"] [data-app-chat-action="copy-code"] {
  display: none;
}

.ui-chat-message [data-app-chat-action="copy"][hidden] {
  display: none !important;
}

.ui-chat-message [data-app-chat-action="copy-code"][hidden] {
  display: none !important;
}

.ui-chat-conversation-loader {
  min-height: 240px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 28px;
  color: var(--app-muted);
  text-align: center;
}

.ui-chat-conversation-loader strong {
  color: var(--app-text);
  font-size: 14px;
  font-weight: 850;
}

.ui-slot-price-line {
  color: rgba(255, 255, 255, .86);
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .07);
  font-size: 13px;
  font-weight: 850;
}

.ui-slot-price-line * {
  color: var(--app-text);
}

.ui-slot-price-line b {
  color: var(--app-text);
}

.ui-slot-price-line span {
  color: var(--app-text);
}

#uiManageSlotsModal {
z-index: 2147483001;
}
#uiManageSlotsModal .ui-modal, #uiAddCoinsModal .ui-modal {
  max-width: 460px !important;
}
.ui-manage-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.ui-file-picker {
  border: 1px dashed #000;
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  color: var(--app-text);
  box-shadow: var(--app-liquid-shadow-soft), var(--app-liquid-highlight);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--app-radius);
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.ui-file-picker:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: var(--app-liquid-float-shadow), var(--app-liquid-highlight);
}

.ui-code-copy-btn {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .075), 0 1px 4px rgba(15, 23, 42, .05);
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  cursor: pointer;
}

.ui-code-copy-btn:hover {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  transform: translateY(-1px);
}

.ui-code-copy-btn:focus {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  transform: translateY(-1px);
}

.ui-app-shell {
  background: #ffffff;
  background-image: none;
  border-color: rgba(17, 17, 17, .08);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--app-text);
}

.ui-layout-shell {
  background: #ffffff;
  background-image: none;
  border-color: rgba(17, 17, 17, .08);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--app-text);
}

.ui-sl-card-shell {
  background: #ffffff;
  background-image: none;
  border-color: rgba(17, 17, 17, .08);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--app-text);
}

.ui-custom-select-btn {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(17, 17, 17, .12);
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .94);
  color: var(--app-text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.ui-spinner {
  width: 38px;
  height: 38px;
  border-radius: var(--app-radius);
  border: 4px solid rgba(255, 255, 255, .16);
  border-top-color: #fff;
  animation: appSpin .75s linear infinite;
}

.ui-app-shell.ui-layout-shell {
  display: block;
  width: 100%;
  min-height: 100vh;
}

.ui-empty-streams {
  grid-column: 1 / -1;
  min-height: 180px;
  display: block;
  place-items: center;
  color: var(--app-soft);
  text-align: left;
  font-size: 14px;
  font-weight: 750;
}

.ui-replacement-ready {
  width: fit-content;
  padding: 7px 10px;
  border-radius: var(--app-radius);
  color: #b8d8ff;
  background: rgba(90, 167, 255, .12);
  font-size: 12px;
  font-weight: 800;
}

.ui-replacement-processing {
  width: fit-content;
  padding: 7px 10px;
  border-radius: var(--app-radius);
  color: #ffd894;
  background: rgba(255, 153, 0, .12);
  font-size: 12px;
  font-weight: 800;
}

.ui-card-menu-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .07)), rgba(15, 15, 15, .62);
  color: #fff;
  transform: translateY(-1px);
}

.ui-card-menu-btn {
  transition: background .16s ease, color .16s ease, transform .16s ease;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--app-radius);
  color: rgba(255, 255, 255, .86);
  background: linear-gradient(135deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .045)), rgba(15, 15, 15, .54);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
}

.ui-card-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 176px;
  padding: 6px;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  z-index: 70;
  background: rgba(255, 255, 255, .96);
  color: var(--app-text);
  box-shadow: var(--app-liquid-shadow-soft);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
}

.ui-card-menu.ui-open {
  display: grid;
  gap: 3px;
}

.ui-card-menu.ui-open-up {
  top: auto;
  bottom: calc(100% + 8px);
}

.ui-card-menu-action {
  transition: background .16s ease, color .16s ease, transform .16s ease;
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border-radius: var(--app-radius);
  background: transparent;
  color: rgba(17, 17, 17, .72);
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  white-space: nowrap;
}

.ui-card-menu-action:hover {
  background: rgba(17, 17, 17, .06);
  color: var(--app-text);
}

.ui-card-menu .ui-menu-danger {
  color: #ff9aa6;
}

.ui-menu-disabled {
  opacity: .3;
}

.ui-form {
  display: grid;
  gap: 14px;
}

.ui-field {
  display: grid;
  gap: 7px;
}

.ui-field small {
  color: var(--app-soft);
  font-size: 12px;
  line-height: 1.45;
}

.ui-file-picker input {
  display: none;
}

.ui-file-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: var(--app-radius);
  background: #fff;
  color: #050507;
  font-weight: 900;
}

.ui-file-picker strong {
  display: block;
  color: var(--app-text);
}

.ui-file-picker small {
  display: block;
  margin-top: 3px;
  color: rgba(17, 17, 17, .58);
}

.ui-form-error {
  border-radius: var(--app-radius);
  background: rgba(255, 91, 110, .10);
  padding: 12px;
  color: #ffb4bd;
  font-size: 13px;
  font-weight: 750;
}

.ui-command-message {
  border-radius: var(--app-radius);
  background: rgba(40, 233, 140, .10);
  padding: 12px;
  color: #b7ffd8;
  font-size: 13px;
  font-weight: 750;
}

.ui-upload-error #uiUploadOverlayTitle {
  color: #ffb4bd;
}

.ui-upload-error #uiUploadOverlayText {}

.ui-upload-error #uiUploadOverlayStatus {
  color: #ffb4bd;
}

.ui-delete-loading {
  border-radius: var(--app-radius);
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: var(--app-muted);
}

.ui-progress {
  height: 10px;
  overflow: hidden;
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .10);
}

.ui-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: var(--app-radius);
  background: var(--app-dark);
  transition: width .16s ease;
}

.ui-upload-stats {
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  color: var(--app-text);
  box-shadow: var(--app-liquid-shadow-soft), var(--app-liquid-highlight);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  padding: 12px;
}

.ui-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.ui-stat-grid>div {
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  color: var(--app-text);
  box-shadow: var(--app-liquid-shadow-soft), var(--app-liquid-highlight);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  padding: 10px;
}

.ui-stat-grid span {
  display: block;
  color: var(--app-soft);
  font-size: 11px;
  font-weight: 800;
}

.ui-stat-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.ui-watch-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--app-radius);
  overflow: hidden;
  background: #000;
}

.ui-watch-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}



.ui-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ui-choice-card {
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  color: var(--app-text);
  box-shadow: var(--app-liquid-shadow-soft), var(--app-liquid-highlight);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  flex: 1 1 calc(50% - 5px);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  cursor: pointer;
}

.ui-choice-card:has(input:checked) {
  background: rgba(255, 255, 255, .10);
}

.ui-choice-card-disabled {
  cursor: not-allowed;
  opacity: .55;
}

.ui-choice-card:has(input:disabled) {
  cursor: not-allowed;
  opacity: .55;
}

.ui-choice-card-disabled input {
  cursor: not-allowed;
}

.ui-choice-card:has(input:disabled) input {
  cursor: not-allowed;
}

.ui-choice-card-disabled strong {
  color: var(--app-muted);
}

.ui-choice-card:has(input:disabled) strong {
  color: var(--app-muted);
}

.ui-choice-card-free-trial-disabled small::after {
  content: " Unlock with a paid streaming slot.";
  color: var(--app-dark);
  font-weight: 700;
}

.ui-choice-card strong {
  display: block;
  color: var(--app-text);
  font-size: 14px;
}

.ui-choice-card small {
  display: grid;
  margin-top: 4px;
  color: rgba(17, 17, 17, .58);
  font-size: 12px;
  line-height: 1.4;
}

.ui-schedule-picker-grid {
  border-radius: var(--app-radius);
  background: var(--app-white);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.ui-schedule-picker-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ui-schedule-date-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ui-schedule-time-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ui-schedule-picker-arrow {
  padding: 10px 12px;
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .045);
  color: var(--app-soft);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.ui-time-disabled {
  opacity: .45;
  pointer-events: none;
}

.ui-custom-select {
  position: relative;
  min-width: 0;
}

.ui-custom-select-btn::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 2px solid rgba(17, 17, 17, .54);
  border-bottom: 2px solid rgba(17, 17, 17, .54);
  transform: rotate(45deg) translateY(-2px);
}

.ui-custom-select-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 2147483600;
  display: none;
  max-height: 245px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .96);
  color: var(--app-text);
  box-shadow: var(--app-liquid-shadow-soft);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
}

.ui-custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 2147483600;
  display: none;
  max-height: 245px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .96);
  color: var(--app-text);
  box-shadow: var(--app-liquid-shadow-soft);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
}

.ui-custom-select.ui-open .ui-custom-select-options,
.ui-custom-select.ui-open .ui-custom-select-menu,
.ui-ai-custom-select.ui-open .ui-custom-select-menu {
  display: grid;
  gap: 3px;
}

.ui-custom-select-option {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border-radius: var(--app-radius);
  background: transparent;
  color: rgba(17, 17, 17, .72);
  text-align: left;
  font-weight: 750;
}

.ui-manage-slots-grid>div {
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  color: var(--app-text);
  box-shadow: var(--app-liquid-shadow-soft), var(--app-liquid-highlight);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
}

.ui-manage-slots-grid span {
  display: block;
  color: var(--app-soft);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.ui-manage-slots-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 900;
}

.ui-schedule-trial-note {
  margin: 10px 0 0;
}

.ui-ai-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: var(--app-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .10), transparent 48%);
  pointer-events: none;
}

.ui-ai-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--app-text);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
}

.ui-ai-card em {
  min-height: 64px;
  color: var(--app-muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.ui-ai-card small {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 850;
}

.ui-ai-card small b {
  color: var(--app-dark);
}

.ui-no-ai-matches {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--app-soft);
  text-align: center;
  font-size: 14px;
  font-weight: 750;
}

.ui-image-generator-actions {
  display: contents;
  gap: 10px;
  flex-wrap: wrap;
}

.ui-ai-card[hidden] {
  display: none !important;
}

.ui-upload-overlay.ui-upload-error #uiUploadOverlayTitle {
  color: #ffb4bd;
}

.ui-upload-overlay-progress {
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .06);
  padding: 12px;
}





.ui-plan-bar {
  height: 8px;
  overflow: hidden;
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .10);
}

.ui-plan-bar i {
  display: block;
  height: 100%;
  border-radius: var(--app-radius);
  background: var(--app-dark);
}





.ui-ai-card.ui-ai-selected {
  background: radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .18), transparent 30%), radial-gradient(circle at 86% 12%, rgba(255, 153, 0, .22), transparent 34%), linear-gradient(180deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .045));
  transform: translateY(-1px);
}

.ui-generated-header {
  padding-right: 42px;
}

.ui-generated-image-wrap {
  display: grid;
  gap: 14px;
}

.ui-generated-image-wrap img {
  width: 100%;
  display: block;
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .06);
}

.ui-tts-form .ui-tts-options {
  grid-template-columns: 1fr;
}

.ui-generated-audio-wrap {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.ui-generated-audio-wrap audio {
  width: 100%;
  min-height: 44px;
}

.ui-tts-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ui-tts-advanced-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .055);
}

.ui-tts-advanced-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.ui-tts-advanced-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--app-dark);
}

.ui-tts-guide-btn {
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
}

.ui-tts-advanced-note {
  color: #dfffea;
}

.ui-tts-guide-list {
  display: grid;
  gap: 8px;
}

.ui-tts-guide-list>div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, .06);
}

.ui-tts-guide-list strong {
  font-size: 13px;
}

.ui-tts-guide-list code {
  display: block;
  padding: 8px 10px;
  border-radius: var(--app-radius);
  background: var(--app-dark);
  color: #ffd894;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.ui-tts-guide-list small {
  color: var(--app-soft);
  font-size: 12px;
  line-height: 1.4;
}

b {
  color: var(--app-text);
}

.sl-card {
  background: #ffffff;
  background-image: none;
  border-color: rgba(17, 17, 17, .08);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--app-text);
}

.st-dashboard-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.st-error-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.st-error-card h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.1;
}

.st-error-card p {
  margin: 0;
  color: var(--app-muted);
  line-height: 1.5;
}

.app-library-card:hover,
.app-home .app-home-work-card:hover,
.app-home .app-home-metric-card:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: var(--app-liquid-float-shadow), var(--app-liquid-highlight);
}

.ui-chat-history-item strong {
  color: var(--app-text);
}

.ui-custom-select-option:hover,
.ui-custom-select-option:focus {
  background: rgba(17, 17, 17, .06);
  color: var(--app-text);
}

/* ==========================================================================
   06. SMALL SCREEN RESPONSIVE
   ========================================================================== */

@media (max-width: 720px) {

  .ui-modal-backdrop {
    align-items: flex-end;
    padding: 12px;
  }

  .ui-modal {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 20px;
    border-radius: var(--app-radius);
  }

  .ui-modal-header {
    padding: 0 52px 16px 0;
  }

  .ui-modal-header h2 {
    font-size: 22px;
  }

  .ui-modal-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .ui-modal .ui-form {
    padding: 0;
  }

  .app-bandwidth-head {
    display: grid;
  }

  .app-bandwidth-tabs {
    width: fit-content;
    max-width: 100%;
  }

  .app-bandwidth-chart {
    min-height: 180px;
    gap: 8px;
  }

  .app-bandwidth-bar span {
    font-size: 10px;
  }

  .ui-ai-cloud-item {
    width: calc(50% - 5px);
    min-width: 130px;
  }

  .ui-ai-frame-grid {
    grid-template-columns: 1fr;
  }

  .ui-chat-composer {
    grid-template-columns: 1fr;
  }

  .ui-chat-bottom-row {
    flex-wrap: nowrap;
  }

  .ui-chat-mode-select {
    min-width: 0;
  }

  .ui-tts-options {
    grid-template-columns: 1fr;
  }

  .ui-tts-advanced-row {
    align-items: stretch;
    flex-direction: column;
  }

}

@media (max-width: 1180px) {

  .app-library-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

}

@media (max-width: 620px) {

  .app-library-grid {
    grid-template-columns: 1fr;
  }

  .ui-stream-card {
    padding: 15px 54px 15px 15px;
  }

  .ui-stream-meta-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }

  .ui-stream-status {
    align-self: start;
  }

  .ui-studio-topbar {
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .ui-studio-brand img {
    width: 40px;
    height: 40px;
  }

  .ui-studio-header h1 {
    font-size: 36px;
  }

  .ui-stat-grid {
    grid-template-columns: 1fr;
  }

  .ui-schedule-date-fields {
    grid-template-columns: 1fr;
  }

  .ui-schedule-time-fields {
    grid-template-columns: 1fr;
  }

  .ui-manage-slots-grid {
    grid-template-columns: 1fr;
  }

  .ui-choice-card {
    flex-basis: 100%;
  }

  .ui-confirm-actions {
    flex-direction: column-reverse;
  }

  .ui-ai-card strong {
    white-space: normal;
  }

  .ui-image-generator-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ui-ai-video-options {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 1100px) {

  .app-dashboard-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  body.app-chat-fullscreen .app-chat-panel {
    display: grid;
  }

  .app-home .app-home-hero {
    grid-template-columns: 1fr;
  }

  .app-home .app-home-actions {
    justify-self: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: none;
  }

  .app-home .app-home-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-home .app-home-workspace {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 980px) {

  .app-chat-widget {
    right: 18px;
    bottom: 18px;
  }

  .app-mobile-brand,
  .app-sidebar-brand.app-mobile-brand {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 2147482600;
    display: inline-flex;
    background: transparent;
    box-shadow: none;
    border: 0;
  }

  .app-playground-mount #streaming-dashboard .ui-studio-header {
    padding-right: 0;
  }

  .app-playground-mount #streaming-dashboard .ui-studio-control-panel {
    width: 100%;
    flex-basis: auto;
    position: static;
    margin-bottom: 14px;
  }



  .app-cloud-hero {
    grid-template-columns: 1fr;
  }

  .app-cloud-hero-actions {
    width: 100%;
    justify-content: stretch;
  }



  .app-cloud-toolbar {
    grid-template-columns: 1fr;
  }

  .app-page-dashboard {
    overflow: auto;
  }

  .app-dashboard-shell {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    height: auto;
    gap: 0;
    overflow-x: hidden;
    padding-top: 60px;
  }

  .app-playground {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 100vh;
    border-radius: var(--app-radius);
  }

  .app-playground-mount {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 100vh;
    height: auto;
    padding: 68px 12px 18px;
    overflow-x: hidden;
    padding-top: 88px;
  }

  .app-playground-mount>* {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .app-playground-mount #streaming-dashboard {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .app-playground-mount #streamingApp {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .app-playground-mount #ai-dashboard {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .app-playground-mount .ui-app-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .app-playground-mount .ui-layout-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .app-playground-mount .ui-sl-card-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .app-playground-mount .ui-playground {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .app-playground-mount .ui-sl-playground {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .app-playground-mount .ui-dashboard {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .app-playground-mount .ui-studio-dashboard {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .app-playground-mount .ui-studio-ground {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .app-playground-mount .sl-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .app-playground-mount .ui-studio-sl-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .app-playground-mount .app-home-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .app-playground-mount .app-cloud-template {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .app-playground-mount .app-library-template {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .app-mobile-menu-btn {
    display: grid;
    left: auto;
    right: 14px;
    z-index: 2147482600;
    top: 14px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(17, 17, 17, .12);
    border: 1px solid rgba(17, 17, 17, .10);
  }

  body.app-sidebar-open .app-mobile-menu-btn {
    display: none;
    opacity: 0;
    pointer-events: none;
  }

  html.app-sidebar-open .app-mobile-menu-btn {
    display: none;
    opacity: 0;
    pointer-events: none;
  }

  body.app-sidebar-open>.app-mobile-brand {
    display: none;
    opacity: 0;
    pointer-events: none;
  }

  html.app-sidebar-open body>.app-mobile-brand {
    display: none;
    opacity: 0;
    pointer-events: none;
  }

  .app-sidebar {
    position: fixed;
    top: 12px;
    left: 12px;
    bottom: 12px;
    z-index: 2147483650;
    width: min(360px, 92vw);
    transform: translateX(-110%);
    transition: transform .34s cubic-bezier(.2, .8, .2, 1), box-shadow .34s ease;
    inset: 0 auto 0 0;
    max-width: 92vw;
    min-width: 0;
    min-height: 100vh;
    max-height: 100vh;
    padding: 16px;
    background: #ffffff;
    color: var(--app-text);
    box-shadow: 24px 0 60px rgba(0, 0, 0, .18);
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.app-sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  html.app-sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  body.app-sidebar-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    background: rgba(0, 0, 0, .42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  html.app-sidebar-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    background: rgba(0, 0, 0, .42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .app-sidebar-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 38px;
    max-width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: var(--app-radius);
    background: rgba(17, 17, 17, .06);
    color: var(--app-text);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
  }

  .app-sidebar-brand-row {
    padding-right: 46px;
  }

  body.app-mobile-chat-open .app-mobile-menu-btn {
    display: none;
  }

  html.app-mobile-chat-open .app-mobile-menu-btn {
    display: none;
  }

  .app-chat-widget.app-chat-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    padding: 0;
    border-radius: var(--app-radius);
  }

  .app-chat-widget.app-chat-fullscreen .app-chat-widget-panel {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: var(--app-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .app-chat-widget.app-chat-fullscreen .app-chat-panel-ready {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: var(--app-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .app-chat-widget.app-chat-fullscreen .app-chat-head {
    flex: 0 0 auto;
    width: 100%;
    min-height: 58px;
    padding: max(12px, env(safe-area-inset-top)) 14px 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--app-radius);
  }

  .app-chat-widget.app-chat-fullscreen .app-chat-mount {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    min-height: 0;
    box-sizing: border-box;
  }

  .app-chat-widget.app-chat-fullscreen .app-chat-embedded {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    min-height: 0;
    box-sizing: border-box;
  }

  .app-chat-widget.app-chat-fullscreen .ui-chat-shell {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    min-height: 0;
    box-sizing: border-box;
    display: flex;
    grid-template-columns: none;
  }

  .app-chat-widget.app-chat-fullscreen .ui-chat-main {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    min-height: 0;
    box-sizing: border-box;
  }

  .app-chat-widget.app-chat-fullscreen .ui-chat-history-list {
    margin-top: 0;
  }

  .app-chat-widget.app-chat-fullscreen .ui-chat-history-toggle {
    display: inline-grid;
    place-items: center;
  }

  .app-chat-widget.app-chat-fullscreen .app-chat-mount .ui-chat-history-toggle {
    display: inline-grid;
    place-items: center;
  }

  .app-chat-widget.app-chat-small .app-chat-widget-panel {
    width: min(420px, calc(100vw - 28px));
    max-height: calc(100vh - 90px);
  }



  .ui-chat-history-modal {
    width: calc(100vw - 20px);
    min-height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
  }

  .app-home .app-home-usage-flex {
    flex-direction: column;
  }

  .app-home .app-home-usage-flex .app-home-metrics {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-page-dashboard::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2147482500;
    height: 70px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(17, 17, 17, .10);
    border-bottom: 1px solid rgba(17, 17, 17, .08);
    pointer-events: none;
  }

  html.app-sidebar-open .app-page-dashboard::before {
    display: none;
  }

  body.app-page-dashboard.app-sidebar-open::before {
    display: none;
  }

  .app-chat-widget.app-chat-small #appChatWidgetPanel {
    opacity: 1;
    transform: translateY(0) scale(1);
    transform-origin: center center;
    transition: opacity .24s ease, transform .28s cubic-bezier(.2, .8, .2, 1);
  }

  .app-chat-widget.app-chat-fullscreen #appChatWidgetPanel {
    opacity: 1;
    transform: translateY(0) scale(1);
    transform-origin: center center;
    transition: opacity .24s ease, transform .28s cubic-bezier(.2, .8, .2, 1);
  }

  .app-chat-widget.app-chat-closing #appChatWidgetPanel {
    display: flex;
    opacity: 0;
    transform: translateY(12px) scale(.985);
    pointer-events: none;
  }

  .ui-playground {
    width: min(100% - 22px, 1240px);
    padding: 12px 0 32px;
  }

  .ui-studio-sl-card.sl-card {
    min-height: calc(100vh - 24px);
    padding: 18px;
    border-radius: var(--app-radius);
  }

  .ui-studio-ground {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    overflow: visible;
  }

  .ui-studio-control-panel {
    width: 100%;
    flex: none;
    position: static;
    top: auto;
    height: auto;
    max-height: none;
    overflow: visible;
    transform: none;
  }

  .ui-stream-list {
    grid-template-columns: 1fr;
  }

  .ui-ai-cloud-item {
    width: calc(33.333% - 7px);
  }

}

@media (max-width: 900px) {

  .app-studio-usage-widget {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-studio-coins-usage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-mobile-brand,
  .app-sidebar-brand.app-mobile-brand {
    display: inline-flex;
  }

}

@media (max-width: 560px) {

  .app-studio-usage-widget {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .app-studio-coins-usage {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .app-studio-usage-card {
    padding: 14px;
  }

}

@media (max-width: 640px) {





  .app-bandwidth-note {
    position: static;
    max-width: none;
    margin-top: 4px;
  }

  .app-bandwidth-panel {
    padding-bottom: 20px;
    min-width: 0;
    overflow: hidden;
  }

  .app-bandwidth-chart {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 6px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 42px 0 22px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    min-height: clamp(220px, 72vw, 300px);
  }

  .app-bandwidth-chart .app-bandwidth-bar {
    min-width: 0;
    width: 100%;
  }

  .app-bandwidth-chart .app-bandwidth-bar span {
    font-size: 9px;
    line-height: 1.1;
    white-space: nowrap;
    transform: translate(-50%, -10px) rotate(-90deg);
    transform-origin: center;
  }

  .app-bandwidth-chart .app-bandwidth-bar-wrap {
    flex: 0 0 clamp(28px, 9vw, 42px);
    width: clamp(28px, 9vw, 42px);
    min-width: clamp(28px, 9vw, 42px);
    max-width: clamp(28px, 9vw, 42px);
    height: clamp(170px, 58vw, 210px);
  }

  .app-bandwidth-chart .app-bandwidth-bar-wrap small {
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
  }

  .app-bandwidth-chart .app-bandwidth-empty {
    flex: 1 0 100%;
    min-width: 0;
    width: 100%;
  }

  .app-home {
    gap: 12px;
  }

  .app-home .app-home-hero {
    padding: 14px;
  }

  .app-home .app-home-metric-card {
    padding: 14px;
  }

  .app-home .app-home-work-card {
    padding: 14px;
  }

  .app-home h1 {
    font-size: clamp(42px, 15vw, 62px);
    line-height: .9;
  }

  .app-home .app-home-metrics {
    grid-template-columns: 1fr;
  }

  .app-home .app-home-actions {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
  }

  .app-home-work-btn {
    width: 100%;
    max-width: none;
  }

  .app-home .app-bandwidth-chart {
    min-height: clamp(220px, 72vw, 300px);
    overflow-x: auto;
    overflow-y: visible;
  }

  .app-home .app-home-usage-flex .app-home-metrics {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {

  .app-dashboard-shell {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
  }

  .app-chat-widget .ui-chat-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar>.app-sidebar-brand {
    display: none;
  }

  .app-playground-mount #streaming-dashboard .sl-header.ui-studio-header {
    flex-direction: column;
    display: grid;
    gap: 14px;
  }

  .app-playground-mount #streaming-dashboard .ui-studio-header {
    flex-direction: column;
    display: grid;
    gap: 14px;
  }





  .app-chat-widget.app-chat-fullscreen .ui-chat-shell {
    grid-template-columns: 1fr;
  }

  .app-playground-mount #streaming-dashboard .ui-studio-control-panel {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    min-width: 0;
    max-width: 100%;
  }

  .app-playground-mount #streaming-dashboard .app-studio-top-panel {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    min-width: 0;
    max-width: 100%;
  }

  .app-playground-mount #streamingApp {
    padding: 0;
  }

  .app-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-library-header {
    display: grid;
    justify-content: stretch;
    min-width: 0;
  }

  .app-library-tools {
    justify-content: stretch;
    min-width: 0;
    display: grid;
  }

  .app-library-status-row {
    display: grid;
  }

  .app-library-preview-actions a {
    width: 100%;
  }

  #appLibraryForm.app-library-tools {
    grid-template-columns: 1fr;
  }

  #appLibraryForm .app-library-primary-row {
    grid-template-columns: 1fr;
  }

  #appLibraryForm .app-library-filter-grid {
    grid-template-columns: 1fr;
  }

  .app-playground {
    min-height: 80vh;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .app-frame {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .app-playground-mount {
    padding: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .app-playground-mount>* {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .app-playground-mount #streaming-dashboard {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .app-playground-mount .ui-app-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .app-playground-mount .ui-layout-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .app-playground-mount .ui-studio-dashboard {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .app-playground-mount .ui-studio-ground {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .app-sidebar {
    min-height: 360px;
    z-index: 2147483650;
    background: #ffffff;
  }

  .app-sidebar-brand-row {
    margin-bottom: 12px;
    order: 0;
  }

  .app-sidebar-bottom {
    order: 3;
  }

  .app-sidebar .app-sidebar-brand-row {
    display: flex;
    width: 100%;
  }

  .app-sidebar .app-sidebar-brand {
    width: calc(100% - 50px);
    max-width: calc(100% - 50px);
  }

  .app-chat-widget.app-chat-small {
    position: fixed;
    inset: 0;
    right: auto;
    bottom: auto;
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    z-index: 2147483000;
  }

  .app-chat-widget.app-chat-fullscreen {
    position: fixed;
    inset: 0;
    right: auto;
    bottom: auto;
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    z-index: 2147483000;
  }

  #appChatWidgetPanel {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    min-width: 0;
    min-height: 0;
    border-radius: 0;
    overflow: hidden;
  }

  .app-chat-widget.app-chat-small #appChatWidgetPanel {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    min-width: 0;
    min-height: 0;
    border-radius: 0;
    overflow: hidden;
  }

  .app-chat-widget.app-chat-fullscreen #appChatWidgetPanel {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    min-width: 0;
    min-height: 0;
    border-radius: 0;
    overflow: hidden;
  }

  #appChatWidgetPanel .ui-chat-shell {
    min-height: 0;
    height: 100%;
  }

  #appChatWidgetPanel .ui-chat-main {
    min-height: 0;
    height: 100%;
  }



  #appChatWidgetPanel .ui-chat-messages {
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }


}

/* Final dashboard overrides: keep desktop toolbars horizontal, mobile stacked. */
@media (min-width: 521px) {

  .ui-dashboard-tools.ui-hero-dashboard-tools.ui-studio-tools {
    display: flex;
    grid-template-columns: none;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
  }

  .ui-dashboard-tools.ui-hero-dashboard-tools.ui-studio-tools>* {
    width: auto;
    min-width: min(180px, 100%);
    max-width: 100%;
    flex: 0 1 auto;
  }

  .ui-dashboard-tools.ui-hero-dashboard-tools.ui-studio-tools input {
    flex: 1 1 240px;
  }

}

@media (max-width: 520px) {

  .ui-dashboard-tools.ui-hero-dashboard-tools.ui-studio-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    justify-items: stretch;
    gap: 10px;
  }

  .ui-dashboard-tools.ui-hero-dashboard-tools.ui-studio-tools>* {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

}

.app-cloud-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  box-shadow: var(--app-liquid-shadow-soft), var(--app-liquid-highlight);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

.app-cloud-row-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.app-cloud-row-meta,
.app-cloud-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
  color: rgba(17, 17, 17, .58);
}

.app-library-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--app-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  border: 1px solid rgba(17, 17, 17, .08);
  box-shadow: var(--app-liquid-shadow-soft), var(--app-liquid-highlight);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.app-library-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: rgba(17, 17, 17, .05);
}

.app-library-card-body {
  display: grid;
  gap: 4px;
  padding: 10px;
}

@media (max-width: 760px) {

  .app-cloud-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .app-cloud-row-meta,
  .app-cloud-row-actions {
    justify-content: flex-start;
  }

}

@media (max-width: 980px) and (orientation: landscape) {

  .app-chat-widget.app-chat-small {
    height: 100dvh;
    min-height: 100dvh;
  }

  .app-chat-widget.app-chat-fullscreen {
    height: 100dvh;
    min-height: 100dvh;
  }

  #appChatWidgetPanel {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
  }

  #appChatWidgetPanel .ui-chat-shell {
    height: 100%;
    min-height: 100%;
  }

  #appChatWidgetPanel .ui-chat-main {
    height: 100%;
    min-height: 0;
  }



  #appChatWidgetPanel .ui-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
  }

}

@media (prefers-reduced-motion: reduce) {

  .app-chat-widget {
    transition: none;
  }

  .app-chat-widget-panel {
    transition: none;
  }

  .app-sidebar {
    transition: none;
  }

}

@media (min-width: 981px) and (max-height: 680px) and (orientation: landscape) {

  .app-chat-widget.app-chat-small {
    top: 10px;
    right: 16px;
    bottom: 10px;
    left: auto;
    width: min(420px, calc(100vw - 32px));
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    min-height: 0;
  }

  .app-chat-widget.app-chat-fullscreen {
    top: 10px;
    right: 16px;
    bottom: 10px;
    left: auto;
    width: min(420px, calc(100vw - 32px));
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    min-height: 0;
  }

  .app-chat-widget.app-chat-small #appChatWidgetPanel {
    position: fixed;
    top: 10px;
    right: 16px;
    bottom: 10px;
    left: auto;
    width: min(420px, calc(100vw - 32px));
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    min-height: 0;
  }

  .app-chat-widget.app-chat-fullscreen #appChatWidgetPanel {
    position: fixed;
    top: 10px;
    right: 16px;
    bottom: 10px;
    left: auto;
    width: min(420px, calc(100vw - 32px));
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    min-height: 0;
  }

  #appChatWidgetPanel .app-chat-mount {
    min-height: 0;
    height: 100%;
  }

  #appChatWidgetPanel .app-chat-embedded {
    min-height: 0;
    height: 100%;
  }

  #appChatWidgetPanel .ui-chat-shell {
    min-height: 0;
    height: 100%;
    max-height: none;
  }

  #appChatWidgetPanel .ui-chat-main {
    min-height: 0;
    height: 100%;
    max-height: none;
  }



  #appChatWidgetPanel .ui-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }

}

@media (min-width: 821px) and (max-width: 980px) and (orientation: landscape) {

  .app-chat-widget.app-chat-small {
    position: fixed;
    inset: auto 18px 18px auto;
    width: min(420px, calc(100vw - 36px));
    height: auto;
    min-height: 0;
    max-height: calc(100dvh - 36px);
    max-width: calc(100vw - 36px);
    z-index: 2147483000;
  }

  .app-chat-widget.app-chat-fullscreen {
    position: fixed;
    inset: auto 18px 18px auto;
    width: min(420px, calc(100vw - 36px));
    height: auto;
    min-height: 0;
    max-height: calc(100dvh - 36px);
    max-width: calc(100vw - 36px);
    z-index: 2147483000;
  }

  .app-chat-widget.app-chat-small #appChatWidgetPanel {
    position: fixed;
    inset: auto 18px 18px auto;
    width: min(420px, calc(100vw - 36px));
    height: min(680px, calc(100dvh - 36px));
    min-height: 0;
    max-height: calc(100dvh - 36px);
    max-width: calc(100vw - 36px);
    border-radius: var(--app-radius);
    overflow: hidden;
  }

  .app-chat-widget.app-chat-fullscreen #appChatWidgetPanel {
    position: fixed;
    inset: auto 18px 18px auto;
    width: min(420px, calc(100vw - 36px));
    height: min(680px, calc(100dvh - 36px));
    min-height: 0;
    max-height: calc(100dvh - 36px);
    max-width: calc(100vw - 36px);
    border-radius: var(--app-radius);
    overflow: hidden;
  }

  .app-chat-widget.app-chat-small .app-chat-head {
    display: flex;
    min-height: 58px;
    flex: 0 0 auto;
    padding: 12px;
  }

  .app-chat-widget.app-chat-fullscreen .app-chat-head {
    display: flex;
    min-height: 58px;
    flex: 0 0 auto;
    padding: 12px;
  }





  .app-chat-widget.app-chat-small .app-chat-mount {
    min-height: 0;
    height: 100%;
  }

  .app-chat-widget.app-chat-fullscreen .app-chat-mount {
    min-height: 0;
    height: 100%;
  }

  .app-chat-widget.app-chat-small .app-chat-embedded {
    min-height: 0;
    height: 100%;
  }

  .app-chat-widget.app-chat-fullscreen .app-chat-embedded {
    min-height: 0;
    height: 100%;
  }

}

@media (min-width: 981px) {

  .ui-studio-dashboard {
    overflow: visible;
  }

  .ui-studio-sl-card.sl-card {
    overflow: visible;
  }

  .ui-playground {
    overflow: visible;
  }

  .ui-studio-ground {
    overflow: visible;
  }

  .ui-stream-list {
    overflow: visible;
  }

  .ui-studio-control-panel {
    position: static;
    align-self: flex-start;
    height: auto;
    max-height: none;
    overflow: visible;
    transform: none;
    z-index: 20;
  }

}

@media (min-width: 1380px) {

  .ui-playground {
    width: min(100% - 56px, 1480px);
  }

  .ui-stream-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 430px) {

  .ui-ai-cloud-item {
    width: 100%;
  }

}

/* ==========================================================================
   07. KEYFRAMES
   ========================================================================== */

@keyframes appSpin {
  to {
    transform: rotate(360deg);
  }

  ;
}

@keyframes appFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes appChatFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes appSidebarBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes appChatFloatIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes appChatTypingDot {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: .38;
  }

  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* Authentication */
.app-dashboard-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483400;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.app-dashboard-auth-modal[hidden] {
  display: none !important;
}

.app-dashboard-auth-card {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100dvh - 48px);
  min-width: 0;
  margin: auto;
  padding: clamp(20px, 5vw, 24px);
  overflow-y: auto;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--app-radius);
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .78), transparent 38%), rgba(255, 255, 255, .96);
  color: var(--app-text);
  box-shadow: 0 24px 80px rgba(17, 17, 17, .14), var(--app-liquid-highlight);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
}

body.app-auth-modal-open {
  overflow: hidden;
}

body.app-auth-modal-open::before,
body.app-auth-modal-open .app-mobile-menu-btn,
body.app-auth-modal-open .app-mobile-brand {
  display: none;
}

.app-auth-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0 0 18px auto;
}

.app-auth-brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: var(--app-radius);
  object-fit: cover;
}

.app-auth-brand span {
  display: grid;
  gap: 3px;
}

.app-auth-brand strong {
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.app-auth-brand em {
  color: var(--app-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.2;
}

.app-auth-header {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
}

.app-auth-header h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 950;
  line-height: 1.03;
}

.app-auth-header p {
  margin: 0;
  color: var(--app-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.app-auth-panel,
.app-auth-form {
  display: grid;
  gap: 12px;
}

.app-auth-field {
  display: block;
  margin: 0;
}

.app-auth-field input {
  min-height: 52px;
  font-size: 15px;
  font-weight: 750;
}

.app-auth-field input::placeholder {
  color: rgba(0, 0, 0, .46);
  opacity: 1;
}

.app-auth-field input:focus {
  background: #ffffff;
}

.app-auth-error,
.app-auth-message {
  padding: 12px;
  border-radius: var(--app-radius);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.app-auth-error {
  border: 1px solid rgba(180, 35, 47, .18);
  background: #fff0f1;
  color: #a11925;
}

.app-auth-message {
  border: 1px solid rgba(18, 138, 80, .22);
  background: #eaf7f0;
  color: #086638;
}

.app-auth-policy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
}

.app-auth-policy input {
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--app-orange);
}

.app-auth-policy a {
  color: var(--app-text);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--app-orange);
  text-underline-offset: 3px;
}

.app-auth-code {
  display: flex;
  justify-content: center;
  gap: clamp(5px, 1.8vw, 8px);
  width: 100%;
}

.app-auth-code input {
  width: clamp(38px, 10vw, 48px);
  min-width: 0;
  min-height: clamp(48px, 12vw, 54px);
  padding: 0;
  text-align: center;
  font-size: clamp(20px, 5vw, 24px);
  font-weight: 900;
  line-height: 1;
}
