@font-face {
  font-family: "Ryan Bold";
  src: url("/assets/fonts/theboldfont.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --lc-bg: #060912;
  --lc-surface: #0c1220;
  --lc-surface-raised: #111a2b;
  --lc-surface-soft: rgba(15, 23, 39, 0.76);
  --lc-line: rgba(157, 198, 255, 0.14);
  --lc-line-strong: rgba(113, 208, 255, 0.34);
  --lc-text: #f7faff;
  --lc-muted: #8f9db4;
  --lc-cyan: #38c9ff;
  --lc-blue: #5874ff;
  --lc-violet: #9d76ff;
  --lc-yellow: #ffdf55;
  --lc-green: #48dfae;
  --lc-red: #ff6f82;
  --lc-radius-sm: 10px;
  --lc-radius: 18px;
  --lc-radius-lg: 28px;
  --lc-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--lc-bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--lc-text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
}

svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.lc-admin-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% -8%, rgba(42, 119, 255, 0.18), transparent 33rem),
    radial-gradient(circle at -12% 36%, rgba(56, 201, 255, 0.1), transparent 30rem),
    linear-gradient(145deg, #060911 0%, #080d19 50%, #060912 100%);
}

.lc-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.lc-background::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.28;
  background-image: radial-gradient(rgba(151, 205, 255, 0.5) 0.6px, transparent 0.6px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

.lc-background span {
  position: absolute;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.12;
}

.lc-background span:nth-child(1) {
  top: 12%;
  right: 5%;
  background: var(--lc-cyan);
}

.lc-background span:nth-child(2) {
  top: 48%;
  left: -6rem;
  background: var(--lc-blue);
}

.lc-background span:nth-child(3) {
  right: 20%;
  bottom: -8rem;
  background: var(--lc-violet);
}

.lc-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px max(22px, calc((100vw - 1380px) / 2));
  border-bottom: 1px solid var(--lc-line);
  background: rgba(5, 8, 16, 0.8);
  backdrop-filter: blur(22px) saturate(145%);
}

.lc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--lc-text);
  text-decoration: none;
}

.lc-brand img {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(96, 208, 255, 0.46);
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(56, 201, 255, 0.14);
}

.lc-brand > span {
  display: grid;
  min-width: 0;
  line-height: 1;
}

.lc-brand strong {
  font-family: "Ryan Bold", Inter, sans-serif;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
}

.lc-brand small {
  margin-top: 6px;
  color: var(--lc-muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lc-topbar-actions,
.lc-hero-actions,
.lc-preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lc-view-link,
.lc-primary-button,
.lc-secondary-button,
.lc-icon-button,
.lc-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--lc-radius-sm);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, filter 160ms ease;
}

.lc-view-link,
.lc-secondary-button {
  padding: 0 15px;
  border-color: var(--lc-line);
  color: #dbe6f7;
  background: rgba(18, 27, 44, 0.76);
}

.lc-view-link:hover,
.lc-secondary-button:hover,
.lc-icon-button:hover {
  border-color: var(--lc-line-strong);
  color: #fff;
  background: rgba(28, 43, 69, 0.9);
}

.lc-primary-button {
  padding: 0 17px;
  color: #041019;
  background: linear-gradient(125deg, #62e2ff, #42b7ff 58%, #8591ff);
  box-shadow: 0 10px 28px rgba(52, 171, 255, 0.19), inset 0 1px rgba(255, 255, 255, 0.42);
}

.lc-primary-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.lc-icon-button {
  width: 42px;
  padding: 0;
  border-color: var(--lc-line);
  color: var(--lc-muted);
  background: rgba(18, 27, 44, 0.76);
}

.lc-shell {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 72px;
}

.lc-auth-card {
  position: relative;
  width: min(570px, 100%);
  margin: clamp(32px, 9vh, 100px) auto 0;
  padding: clamp(28px, 5vw, 50px);
  overflow: hidden;
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius-lg);
  background:
    linear-gradient(145deg, rgba(21, 33, 57, 0.94), rgba(8, 13, 24, 0.96)),
    var(--lc-surface);
  box-shadow: var(--lc-shadow);
  text-align: center;
}

.lc-auth-card::before {
  position: absolute;
  top: -10rem;
  left: calc(50% - 10rem);
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: rgba(48, 175, 255, 0.16);
  filter: blur(65px);
  content: "";
}

.lc-auth-mark {
  position: relative;
  width: 94px;
  height: 94px;
  margin: 0 auto 24px;
}

.lc-auth-mark img {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(77, 203, 255, 0.5);
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 18px 50px rgba(20, 112, 255, 0.28);
}

.lc-auth-mark span {
  position: absolute;
  right: -8px;
  bottom: -6px;
  display: grid;
  width: 34px;
  height: 34px;
  border: 4px solid #0d1525;
  border-radius: 50%;
  place-items: center;
  color: #07141b;
  background: var(--lc-green);
}

.lc-eyebrow {
  margin: 0 0 8px;
  color: var(--lc-cyan);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lc-auth-card h1,
.lc-hero h1 {
  margin: 0;
  font-family: "Ryan Bold", Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.lc-auth-card h1 {
  position: relative;
  font-size: clamp(2.25rem, 7vw, 3.6rem);
  line-height: 0.98;
}

.lc-auth-copy {
  position: relative;
  max-width: 430px;
  margin: 20px auto 0;
  color: var(--lc-muted);
  line-height: 1.65;
}

.lc-login-button {
  position: relative;
  min-height: 48px;
  margin-top: 26px;
  padding-inline: 24px;
}

.lc-security-note {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 24px;
  color: #75869f;
  font-size: 0.72rem;
}

.lc-inline-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--lc-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.lc-inline-status.is-error,
.lc-sync-message.is-error {
  color: #ff9dab;
}

.lc-dashboard {
  animation: lc-rise 420ms ease both;
}

.lc-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 18px 2px 32px;
}

.lc-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--lc-cyan);
  box-shadow: 0 0 0 4px rgba(56, 201, 255, 0.1), 0 0 18px rgba(56, 201, 255, 0.65);
  animation: lc-pulse 2s ease-in-out infinite;
}

.lc-hero h1 {
  font-size: clamp(3.1rem, 7vw, 6rem);
  line-height: 0.86;
  text-shadow: 0 12px 36px rgba(48, 154, 255, 0.13);
}

.lc-hero-copy > p:last-child {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--lc-muted);
  font-size: clamp(0.94rem, 1.6vw, 1.06rem);
  line-height: 1.6;
}

.lc-hero-actions {
  flex: none;
}

.lc-metrics {
  display: grid;
  grid-template-columns: 1.28fr repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.lc-metric {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 118px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius);
  background: linear-gradient(145deg, rgba(17, 26, 44, 0.86), rgba(10, 16, 28, 0.88));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.15);
}

.lc-metric-main {
  grid-template-columns: 46px minmax(0, 1fr) auto;
}

.lc-metric::after {
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(72, 151, 255, 0.06);
  filter: blur(16px);
  content: "";
}

.lc-metric-icon,
.lc-section-icon {
  display: grid;
  flex: none;
  place-items: center;
  color: var(--lc-cyan);
  background: rgba(56, 201, 255, 0.09);
  border: 1px solid rgba(56, 201, 255, 0.2);
}

.lc-metric-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 1.25rem;
}

.lc-metric-icon.violet {
  color: #b698ff;
  border-color: rgba(157, 118, 255, 0.22);
  background: rgba(157, 118, 255, 0.09);
}

.lc-metric-icon.amber {
  color: var(--lc-yellow);
  border-color: rgba(255, 223, 85, 0.2);
  background: rgba(255, 223, 85, 0.08);
}

.lc-metric-icon.cyan {
  color: #74eaff;
}

.lc-metric > div {
  display: grid;
  min-width: 0;
}

.lc-metric small {
  margin-bottom: 4px;
  color: var(--lc-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lc-metric strong {
  overflow: hidden;
  font-size: 1.22rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-subline {
  overflow: hidden;
  margin-top: 5px;
  color: #74849c;
  font-size: 0.68rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(143, 157, 180, 0.2);
  border-radius: 999px;
  color: #a6b3c6;
  background: rgba(143, 157, 180, 0.08);
  font-size: 0.64rem;
  font-weight: 900;
  white-space: nowrap;
}

.lc-status-pill.is-good {
  border-color: rgba(72, 223, 174, 0.3);
  color: #74e9c0;
  background: rgba(72, 223, 174, 0.09);
}

.lc-status-pill.is-warning {
  border-color: rgba(255, 223, 85, 0.3);
  color: #ffe67c;
  background: rgba(255, 223, 85, 0.08);
}

.lc-status-pill.is-danger {
  border-color: rgba(255, 111, 130, 0.3);
  color: #ff9daa;
  background: rgba(255, 111, 130, 0.08);
}

.lc-status-pill.is-muted,
.lc-status-pill.subtle {
  color: var(--lc-muted);
  background: rgba(143, 157, 180, 0.06);
}

.lc-status-pill.subtle .lc-live-dot {
  width: 6px;
  height: 6px;
  margin-right: 1px;
}

.lc-control-grid {
  display: grid;
  grid-template-columns: minmax(350px, 0.72fr) minmax(520px, 1.28fr);
  gap: 16px;
  align-items: stretch;
}

.lc-panel {
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius);
  background: linear-gradient(145deg, rgba(15, 23, 39, 0.95), rgba(8, 13, 24, 0.96));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.19);
}

.lc-settings,
.lc-preview-panel,
.lc-library-panel {
  padding: clamp(18px, 2.3vw, 26px);
}

.lc-panel-heading,
.lc-heading-group {
  display: flex;
  align-items: center;
  gap: 13px;
}

.lc-panel-heading {
  margin-bottom: 22px;
}

.lc-panel-heading-split {
  justify-content: space-between;
  gap: 20px;
}

.lc-section-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 1.08rem;
}

.lc-panel-heading h2 {
  margin: 0;
  font-size: clamp(1.14rem, 2.3vw, 1.42rem);
  letter-spacing: -0.02em;
}

.lc-panel-heading .lc-eyebrow {
  margin-bottom: 4px;
  font-size: 0.6rem;
}

.lc-panel-heading p:last-child:not(.lc-eyebrow) {
  max-width: 650px;
  margin: 7px 0 0;
  color: var(--lc-muted);
  font-size: 0.77rem;
  line-height: 1.45;
}

.lc-toggle-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
  padding: 15px;
  border: 1px solid rgba(72, 223, 174, 0.18);
  border-radius: 13px;
  background: rgba(72, 223, 174, 0.045);
}

.lc-toggle-row > span {
  display: grid;
  gap: 3px;
}

.lc-toggle-row strong {
  font-size: 0.83rem;
}

.lc-toggle-row small {
  color: var(--lc-muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.lc-toggle-row input {
  position: absolute;
  right: 15px;
  width: 48px;
  height: 28px;
  margin: 0;
  opacity: 0;
}

.lc-toggle-row > i {
  position: relative;
  width: 48px;
  height: 28px;
  flex: none;
  border-radius: 999px;
  background: #303a4b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: background 180ms ease;
  pointer-events: none;
}

.lc-toggle-row > i::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.28);
  content: "";
  transition: transform 180ms ease;
}

.lc-toggle-row input:checked + i {
  background: linear-gradient(120deg, #2dcc98, #4ee8b5);
}

.lc-toggle-row input:checked + i::after {
  transform: translateX(20px);
}

.lc-toggle-row input:focus-visible + i {
  outline: 3px solid rgba(56, 201, 255, 0.25);
  outline-offset: 2px;
}

.lc-field-grid {
  display: grid;
  gap: 15px;
}

.lc-field-grid-two {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  margin-top: 15px;
}

.lc-field-full {
  grid-column: 1 / -1;
}

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

.lc-field > span {
  color: #dce7f7;
  font-size: 0.72rem;
  font-weight: 800;
}

.lc-field > span em {
  color: #687991;
  font-size: 0.61rem;
  font-style: normal;
  font-weight: 700;
}

.lc-field > small {
  color: #6f8098;
  font-size: 0.64rem;
  line-height: 1.4;
}

.lc-input-wrap {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius-sm);
  background: rgba(4, 8, 16, 0.66);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.lc-input-wrap:focus-within {
  border-color: rgba(56, 201, 255, 0.56);
  box-shadow: 0 0 0 3px rgba(56, 201, 255, 0.08);
}

.lc-input-wrap > svg {
  justify-self: center;
  color: #6f8098;
}

.lc-input-wrap input,
.lc-input-wrap select {
  width: 100%;
  height: 44px;
  min-width: 0;
  padding: 0 10px 0 0;
  border: 0;
  outline: 0;
  color: var(--lc-text);
  background: transparent;
  font-size: 0.77rem;
}

.lc-input-wrap input::placeholder {
  color: #45536a;
}

.lc-input-wrap select {
  color-scheme: dark;
  cursor: pointer;
}

.lc-number-wrap {
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.lc-number-wrap em {
  padding-right: 10px;
  color: var(--lc-muted);
  font-size: 0.68rem;
  font-style: normal;
}

.lc-channel-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--lc-line);
  border-radius: 12px;
  background: rgba(17, 26, 43, 0.64);
}

.lc-channel-icon {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  place-items: center;
  color: #b8a2ff;
  background: rgba(157, 118, 255, 0.1);
}

.lc-channel-card > div {
  display: grid;
  min-width: 0;
}

.lc-channel-card small,
.lc-channel-card span:not(.lc-channel-icon):not(.lc-mini-state) {
  overflow: hidden;
  color: var(--lc-muted);
  font-size: 0.63rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-channel-card strong {
  overflow: hidden;
  margin: 2px 0;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-mini-state {
  padding: 5px 7px;
  border-radius: 999px;
  color: var(--lc-muted);
  background: rgba(143, 157, 180, 0.08);
  font-size: 0.58rem;
  font-weight: 900;
}

.lc-mini-state.is-good {
  color: #74e9c0;
  background: rgba(72, 223, 174, 0.09);
}

.lc-mini-state.is-warning {
  color: #ffe67c;
  background: rgba(255, 223, 85, 0.08);
}

.lc-save-button {
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
}

.lc-preview-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.lc-preview-panel .lc-panel-heading {
  flex: none;
}

.lc-preview-frame {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  flex: 1;
  border: 1px solid rgba(116, 202, 255, 0.22);
  border-radius: 16px;
  background: #03050a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 24px 50px rgba(0, 0, 0, 0.28);
  aspect-ratio: 16 / 9;
}

.lc-preview-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.lc-preview-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: rgba(235, 245, 255, 0.72);
  background: rgba(2, 5, 12, 0.72);
  backdrop-filter: blur(10px);
  font-size: 0.58rem;
  font-weight: 800;
  pointer-events: none;
}

.lc-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 14px;
}

.lc-preview-footer code {
  overflow: hidden;
  color: #7889a3;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-preview-footer a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  color: var(--lc-cyan);
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
}

.lc-library-panel {
  margin-top: 16px;
}

.lc-sync-message {
  max-width: 380px;
  color: var(--lc-muted);
  font-size: 0.7rem;
  line-height: 1.4;
  text-align: right;
}

.lc-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lc-media-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--lc-line);
  border-radius: 15px;
  background: rgba(7, 12, 22, 0.72);
  transition: transform 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.lc-media-card:hover {
  border-color: rgba(93, 189, 255, 0.32);
  transform: translateY(-2px);
}

.lc-media-card.is-pinned {
  border-color: rgba(255, 223, 85, 0.48);
  box-shadow: 0 0 0 1px rgba(255, 223, 85, 0.08), 0 16px 38px rgba(0, 0, 0, 0.2);
}

.lc-media-card.is-hidden-media {
  opacity: 0.62;
}

.lc-card-media {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(56, 201, 255, 0.12), transparent 60%),
    #050914;
  aspect-ratio: 16 / 10;
}

.lc-card-media > img,
.lc-card-media > video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lc-card-audio-preview {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 10px;
  padding: 24px;
  place-content: center;
  color: #fff;
  text-align: center;
}

.lc-card-audio-preview svg {
  width: 42px;
  height: 42px;
  margin: auto;
  color: #57d9ff;
}

.lc-card-audio-preview strong {
  max-width: 220px;
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-card-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(transparent, rgba(2, 5, 11, 0.78));
  content: "";
  pointer-events: none;
}

.lc-media-kind {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: #edf6ff;
  background: rgba(4, 8, 16, 0.66);
  backdrop-filter: blur(8px);
  font-size: 0.58rem;
  font-weight: 800;
}

.lc-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: rgba(5, 10, 20, 0.58);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
}

.lc-card-body {
  padding: 13px;
}

.lc-card-author {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.lc-card-avatar {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  overflow: hidden;
  flex: none;
  border: 1px solid rgba(109, 211, 255, 0.26);
  border-radius: 50%;
  place-items: center;
  color: #08101d;
  background: linear-gradient(145deg, #6fe8ff, #7d85ff);
}

.lc-card-avatar b {
  font-size: 0.75rem;
}

.lc-card-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lc-card-author > span:last-child {
  display: grid;
  min-width: 0;
}

.lc-card-author strong,
.lc-card-author small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-card-author strong {
  font-size: 0.75rem;
}

.lc-card-author small {
  margin-top: 3px;
  color: var(--lc-muted);
  font-size: 0.59rem;
}

.lc-card-filename {
  overflow: hidden;
  margin: 12px 0 0;
  color: #8392a9;
  font-size: 0.63rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-card-caption {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  color: #dce7f7;
  font-size: 0.66rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.lc-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.lc-card-badges span {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.55rem;
  font-weight: 900;
}

.lc-card-badges .is-pin {
  color: #ffe77d;
  background: rgba(255, 223, 85, 0.1);
}

.lc-card-badges .is-hide {
  color: #ff9caa;
  background: rgba(255, 111, 130, 0.09);
}

.lc-card-badges .lc-source-badge {
  color: #83ddff;
  background: rgba(56, 201, 255, 0.09);
}

.lc-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 13px;
}

.lc-card-action {
  min-width: 0;
  min-height: 35px;
  padding: 0 7px;
  border-color: var(--lc-line);
  color: #9fadc1;
  background: rgba(20, 30, 49, 0.72);
  font-size: 0.61rem;
}

.lc-card-action:hover {
  border-color: rgba(56, 201, 255, 0.36);
  color: #eaf8ff;
}

.lc-card-action.is-active {
  border-color: rgba(255, 223, 85, 0.28);
  color: #ffe77d;
  background: rgba(255, 223, 85, 0.08);
}

.lc-card-action.is-danger:hover {
  border-color: rgba(255, 111, 130, 0.36);
  color: #ff9caa;
  background: rgba(255, 111, 130, 0.07);
}

.lc-empty-state {
  padding: clamp(42px, 7vw, 76px) 20px;
  border: 1px dashed rgba(116, 202, 255, 0.2);
  border-radius: 15px;
  color: var(--lc-muted);
  background: rgba(5, 10, 19, 0.4);
  text-align: center;
}

.lc-empty-state > span {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 15px;
  border-radius: 16px;
  place-items: center;
  color: var(--lc-cyan);
  background: rgba(56, 201, 255, 0.08);
  font-size: 1.4rem;
}

.lc-empty-state h3 {
  margin: 0 0 7px;
  color: var(--lc-text);
}

.lc-empty-state p {
  margin: 0;
  font-size: 0.8rem;
}

.lc-button-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: lc-spin 650ms linear infinite;
}

.lc-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: min(390px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid rgba(72, 223, 174, 0.28);
  border-radius: 11px;
  color: #defbef;
  background: rgba(12, 29, 29, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.lc-toast.is-visible {
  opacity: 1;
  transform: none;
}

.lc-toast.is-error {
  border-color: rgba(255, 111, 130, 0.34);
  color: #ffdce1;
  background: rgba(41, 15, 24, 0.96);
}

/* Public LiveCGChat screen */
.lc-viewer-page {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #03050a;
}

.lc-viewer {
  position: fixed;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  color: var(--lc-text);
  background:
    radial-gradient(circle at 50% 36%, rgba(47, 103, 202, 0.11), transparent 38%),
    linear-gradient(145deg, #03050a, #070b14 55%, #03050a);
}

.lc-viewer::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(95, 147, 218, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 147, 218, 0.025) 1px, transparent 1px);
  background-size: clamp(34px, 4vw, 64px) clamp(34px, 4vw, 64px);
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
  content: "";
}

.lc-viewer-ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.lc-viewer-ambient span {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.11;
  animation: lc-drift 16s ease-in-out infinite alternate;
}

.lc-viewer-ambient span:nth-child(1) {
  top: -18%;
  left: -8%;
  width: 46vw;
  height: 46vw;
  background: #245eff;
}

.lc-viewer-ambient span:nth-child(2) {
  right: -12%;
  bottom: -20%;
  width: 48vw;
  height: 48vw;
  background: #22bfff;
  animation-delay: -6s;
}

.lc-viewer-ambient span:nth-child(3) {
  top: 28%;
  left: 45%;
  width: 22vw;
  height: 22vw;
  background: #8b5fff;
  opacity: 0.06;
  animation-delay: -10s;
}

.lc-viewer-author {
  position: absolute;
  top: max(22px, env(safe-area-inset-top));
  left: max(24px, env(safe-area-inset-left));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: min(430px, calc(100vw - 190px));
  padding: 8px 15px 8px 8px;
  border: 1px solid rgba(137, 201, 255, 0.2);
  border-radius: 999px;
  background: rgba(7, 12, 23, 0.76);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(130%);
  animation: lc-author-in 460ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.lc-avatar-wrap {
  position: relative;
  display: grid;
  width: clamp(42px, 4vw, 52px);
  height: clamp(42px, 4vw, 52px);
  overflow: hidden;
  flex: none;
  border: 1px solid rgba(90, 212, 255, 0.5);
  border-radius: 50%;
  place-items: center;
  color: #07111e;
  background: linear-gradient(145deg, #72eaff, #7882ff);
  box-shadow: 0 0 24px rgba(56, 201, 255, 0.2);
}

.lc-avatar-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lc-avatar-wrap b {
  font-size: 1rem;
}

.lc-author-copy {
  display: grid;
  min-width: 0;
  padding-right: 3px;
}

.lc-author-copy small {
  margin-bottom: 3px;
  color: #7f91aa;
  font-size: clamp(0.53rem, 0.7vw, 0.65rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lc-author-copy strong {
  overflow: hidden;
  font-size: clamp(0.82rem, 1.4vw, 1.05rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-viewer-brand {
  position: absolute;
  top: max(28px, env(safe-area-inset-top));
  right: max(30px, env(safe-area-inset-right));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(223, 238, 255, 0.7);
  font-family: "Ryan Bold", Inter, sans-serif;
  font-size: clamp(0.64rem, 1vw, 0.78rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lc-viewer-brand .lc-live-dot {
  width: 6px;
  height: 6px;
}

.lc-media-stage {
  position: absolute;
  inset: clamp(98px, 12vh, 132px) clamp(28px, 5vw, 92px) clamp(46px, 7vh, 78px);
  z-index: 5;
}

.lc-media-stage::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  border: 2px solid rgba(71, 210, 255, 0.38);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3);
  pointer-events: none;
  content: "";
}

.lc-media-stage.is-presenting::after {
  animation: lc-reveal-wave 900ms cubic-bezier(0.16, 0.72, 0.2, 1) both;
}

.lc-media-glow {
  position: absolute;
  inset: 8% 10%;
  z-index: -1;
  overflow: hidden;
  border-radius: 50%;
  opacity: 0.22;
  filter: blur(65px) saturate(130%);
  transform: scale(1.04);
}

.lc-media-glow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lc-media-slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.lc-display-media {
  grid-area: 1 / 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border: 1px solid rgba(148, 203, 255, 0.16);
  border-radius: clamp(12px, 2vw, 24px);
  object-fit: contain;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.018);
  opacity: 0;
  transform: scale(0.975) translateY(8px);
  transition: opacity 440ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 440ms ease;
}

.lc-display-media.is-active {
  opacity: 1;
  transform: none;
  animation: lc-media-arrive 720ms cubic-bezier(0.16, 0.82, 0.2, 1) both;
}

.lc-audio-element {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lc-display-media.is-leaving {
  opacity: 0;
  filter: blur(5px);
  transform: scale(1.015);
}

.lc-viewer-page[data-fit="cover"] .lc-media-stage {
  inset: clamp(90px, 10vh, 116px) 0 0;
}

.lc-viewer-page[data-fit="cover"] .lc-display-media {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

.lc-viewer-page[data-fit="cover"] .lc-media-glow {
  display: none;
}

.lc-waiting {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  width: min(620px, calc(100vw - 42px));
  padding: 30px;
  text-align: center;
  transform: translate(-50%, -50%);
  animation: lc-rise-center 600ms ease both;
}

.lc-waiting-logo {
  position: relative;
  width: clamp(92px, 12vw, 128px);
  height: clamp(92px, 12vw, 128px);
  margin: 0 auto 28px;
}

.lc-waiting-logo img {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  border: 1px solid rgba(80, 211, 255, 0.35);
  border-radius: 27%;
  object-fit: cover;
  box-shadow: 0 20px 65px rgba(29, 119, 255, 0.26);
}

.lc-waiting-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(76, 201, 255, 0.13);
  border-top-color: rgba(92, 218, 255, 0.7);
  border-radius: 50%;
  animation: lc-spin 5s linear infinite;
}

.lc-waiting-ring::before,
.lc-waiting-ring::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.lc-waiting-ring::before {
  inset: 8px;
  border: 1px dashed rgba(124, 143, 255, 0.18);
  animation: lc-spin 8s linear infinite reverse;
}

.lc-waiting-ring::after {
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--lc-cyan);
  box-shadow: 0 0 16px var(--lc-cyan);
}

.lc-waiting h1 {
  margin: 0;
  font-family: "Ryan Bold", Inter, sans-serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.lc-waiting > p:not(.lc-eyebrow):not(.lc-screen-reader-status) {
  max-width: 520px;
  margin: 18px auto 0;
  color: var(--lc-muted);
  font-size: clamp(0.84rem, 1.4vw, 1rem);
  line-height: 1.6;
}

.lc-waiting-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  padding: 8px 12px;
  border: 1px solid rgba(143, 157, 180, 0.14);
  border-radius: 999px;
  color: #8d9bb0;
  background: rgba(15, 23, 39, 0.56);
  font-size: 0.68rem;
  font-weight: 800;
}

.lc-waiting-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #748198;
  box-shadow: 0 0 10px rgba(116, 129, 152, 0.4);
}

.lc-waiting-status.is-online i {
  background: var(--lc-green);
  box-shadow: 0 0 12px rgba(72, 223, 174, 0.65);
}

.lc-waiting-status.is-paused i {
  background: var(--lc-yellow);
  box-shadow: 0 0 12px rgba(255, 223, 85, 0.5);
}

.lc-waiting-status.is-error i {
  background: var(--lc-red);
  box-shadow: 0 0 12px rgba(255, 111, 130, 0.55);
}

.lc-viewer-progress {
  position: absolute;
  right: clamp(28px, 5vw, 92px);
  bottom: max(22px, env(safe-area-inset-bottom));
  left: clamp(28px, 5vw, 92px);
  z-index: 30;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(164, 199, 238, 0.12);
}

.lc-viewer-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lc-blue), var(--lc-cyan), #a8efff);
  box-shadow: 0 0 12px rgba(56, 201, 255, 0.52);
}

.lc-screen-reader-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.lc-viewer-page.is-embedded .lc-viewer-author {
  transform-origin: top left;
}

.lc-overlay-root,
.lc-viewer-page.is-overlay,
.lc-viewer-page.is-overlay .lc-viewer {
  background: transparent !important;
}

.lc-viewer-page.is-overlay .lc-viewer::before,
.lc-viewer-page.is-overlay .lc-viewer-ambient,
.lc-viewer-page.is-overlay .lc-viewer-brand,
.lc-viewer-page.is-overlay .lc-waiting,
.lc-viewer-page.is-overlay .lc-viewer-progress {
  display: none !important;
}

.lc-viewer-page.is-overlay .lc-media-stage,
.lc-viewer-page.is-overlay[data-fit="cover"] .lc-media-stage {
  inset: 2vh 2vw;
}

.lc-viewer-page.is-overlay .lc-display-media {
  max-width: 96vw;
  max-height: 96vh;
  border: 0;
  border-radius: clamp(10px, 1.4vw, 22px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4), 0 0 55px rgba(47, 162, 255, 0.12);
  object-fit: contain;
}

.lc-viewer-page.is-overlay[data-fit="cover"] .lc-display-media {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
  object-fit: cover;
}

.lc-viewer-page.is-overlay .lc-media-glow {
  opacity: 0.14;
}

@keyframes lc-progress {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes lc-spin {
  to { transform: rotate(360deg); }
}

@keyframes lc-pulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

@keyframes lc-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes lc-rise-center {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes lc-author-in {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}

@keyframes lc-media-arrive {
  0% { opacity: 0; filter: blur(18px) saturate(1.5); transform: scale(0.78) translateY(28px); }
  58% { opacity: 1; filter: blur(0) saturate(1.08); transform: scale(1.025) translateY(-3px); }
  100% { opacity: 1; filter: none; transform: none; }
}

@keyframes lc-reveal-wave {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.28); }
  28% { opacity: 0.72; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); }
}

@keyframes lc-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(0.96); }
  to { transform: translate3d(4%, 5%, 0) scale(1.06); }
}

@media (max-width: 1180px) {
  .lc-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lc-control-grid {
    grid-template-columns: minmax(330px, 0.84fr) minmax(460px, 1.16fr);
  }

  .lc-media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .lc-shell {
    width: min(100% - 28px, 760px);
    padding-top: 30px;
  }

  .lc-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .lc-control-grid {
    grid-template-columns: 1fr;
  }

  .lc-preview-frame {
    min-height: 0;
  }

  .lc-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .lc-topbar {
    min-height: 64px;
    padding: 8px 12px;
  }

  .lc-brand img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .lc-brand small,
  .lc-view-link span {
    display: none;
  }

  .lc-view-link {
    width: 42px;
    padding: 0;
  }

  .lc-shell {
    width: min(100% - 20px, 580px);
    padding: 22px 0 40px;
  }

  .lc-auth-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .lc-hero {
    padding-bottom: 24px;
  }

  .lc-hero h1 {
    font-size: clamp(3rem, 18vw, 4.6rem);
  }

  .lc-hero-actions {
    width: 100%;
  }

  .lc-hero-actions button {
    min-width: 0;
    flex: 1;
    padding-inline: 10px;
    font-size: 0.72rem;
  }

  .lc-metrics {
    grid-template-columns: 1fr;
  }

  .lc-metric,
  .lc-metric-main {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 94px;
  }

  .lc-metric-icon {
    width: 42px;
    height: 42px;
  }

  .lc-field-grid-two {
    grid-template-columns: 1fr;
  }

  .lc-settings,
  .lc-preview-panel,
  .lc-library-panel {
    padding: 16px;
  }

  .lc-panel-heading-split {
    align-items: flex-start;
  }

  .lc-library-panel > .lc-panel-heading {
    flex-direction: column;
  }

  .lc-sync-message {
    max-width: none;
    text-align: left;
  }

  .lc-media-grid {
    grid-template-columns: 1fr;
  }

  .lc-card-media {
    aspect-ratio: 16 / 9;
  }

  .lc-toast {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: none;
  }

  .lc-viewer-author {
    top: max(12px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    max-width: calc(100vw - 90px);
    padding: 5px 11px 5px 5px;
    gap: 8px;
  }

  .lc-avatar-wrap {
    width: 38px;
    height: 38px;
  }

  .lc-viewer-brand {
    top: max(24px, env(safe-area-inset-top));
    right: max(13px, env(safe-area-inset-right));
  }

  .lc-viewer-brand strong {
    display: none;
  }

  .lc-media-stage {
    inset: 76px 12px 42px;
  }

  .lc-viewer-page[data-fit="cover"] .lc-media-stage {
    inset: 68px 0 0;
  }

  .lc-viewer-progress {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 14px;
  }

  .lc-waiting {
    padding: 20px 8px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .lc-viewer-author {
    top: 10px;
    left: 12px;
    padding: 5px 10px 5px 5px;
  }

  .lc-avatar-wrap {
    width: 36px;
    height: 36px;
  }

  .lc-viewer-brand {
    top: 18px;
    right: 16px;
  }

  .lc-media-stage {
    inset: 62px 22px 25px;
  }

  .lc-viewer-page[data-fit="cover"] .lc-media-stage {
    inset: 58px 0 0;
  }

  .lc-viewer-progress {
    right: 24px;
    bottom: 10px;
    left: 24px;
  }

  .lc-waiting-logo {
    width: 74px;
    height: 74px;
    margin-bottom: 16px;
  }

  .lc-waiting h1 {
    font-size: clamp(1.8rem, 6vw, 3rem);
  }

  .lc-waiting > p:not(.lc-eyebrow) {
    margin-top: 10px;
  }

  .lc-waiting-status {
    margin-top: 12px;
  }
}

/* LiveCGChat 1.4: admin tests and configurable presentation. */
.lc-settings-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: #71829b;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lc-settings-divider::before,
.lc-settings-divider::after {
  height: 1px;
  flex: 1;
  background: var(--lc-line);
  content: "";
}

.lc-toggle-compact {
  min-height: 64px;
  margin-top: 2px;
}

.lc-test-panel {
  margin-top: 18px;
}

.lc-test-form {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 16px;
  align-items: stretch;
}

.lc-test-drop {
  display: flex;
  min-height: 126px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px dashed rgba(83, 203, 255, 0.34);
  border-radius: 14px;
  color: #dcecff;
  background: rgba(8, 18, 33, 0.62);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.lc-test-drop:hover {
  border-color: rgba(83, 203, 255, 0.7);
  background: rgba(13, 31, 52, 0.74);
  transform: translateY(-1px);
}

.lc-test-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lc-test-drop-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  place-items: center;
  color: var(--lc-cyan);
  background: rgba(56, 201, 255, 0.1);
  font-size: 1.35rem;
}

.lc-test-drop > span:last-child {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.lc-test-drop strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-test-drop small {
  color: var(--lc-muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.lc-textarea-wrap {
  align-items: flex-start;
  min-height: 86px;
  padding-top: 12px;
}

.lc-textarea-wrap textarea {
  width: 100%;
  min-height: 60px;
  resize: vertical;
  border: 0;
  outline: 0;
  color: var(--lc-text);
  background: transparent;
  line-height: 1.45;
}

.lc-test-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.lc-test-actions .lc-inline-status {
  margin: 0 auto 0 0;
}

.lc-test-actions .lc-primary-button {
  min-width: 190px;
}

/* The selected size is calculated from a 1920x1080 reference in JS. */
.lc-viewer-caption {
  font-size: var(--lc-caption-size, 58px);
}

.lc-viewer-caption.is-medium { font-size: var(--lc-caption-size-medium, 48px); }
.lc-viewer-caption.is-long { font-size: var(--lc-caption-size-long, 38px); }
.lc-viewer-caption.is-very-long { font-size: var(--lc-caption-size-very-long, 29px); }

.lc-viewer-page[data-caption-font="uni-sans"] .lc-viewer-caption {
  font-family: "Uni Sans Heavy", Impact, sans-serif;
}

.lc-viewer-page[data-caption-font="ryan-bold"] .lc-viewer-caption {
  font-family: "Ryan Bold", Impact, sans-serif;
}

.lc-viewer-page[data-caption-font="impact"] .lc-viewer-caption {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

.lc-viewer-page[data-caption-font="system"] .lc-viewer-caption {
  font-family: Inter, ui-sans-serif, "Segoe UI", Arial, sans-serif;
  font-weight: 900;
}

.lc-viewer-page[data-caption-case="original"] .lc-viewer-caption { text-transform: none; }
.lc-viewer-page[data-caption-case="uppercase"] .lc-viewer-caption { text-transform: uppercase; }

.lc-viewer-caption.is-center {
  transform: translate(-50%, -50%);
}

.lc-viewer-page[data-entrance-animation="slide"] .lc-display-media.is-active {
  animation: lc-media-config-slide 520ms cubic-bezier(0.16, 0.82, 0.2, 1) both;
}

.lc-viewer-page[data-entrance-animation="slide"] .lc-viewer-author {
  animation: lc-author-clean-arrive 460ms 80ms cubic-bezier(0.16, 0.82, 0.2, 1) both;
}

.lc-viewer-page[data-entrance-animation="slide"] .lc-viewer-caption {
  animation: lc-caption-clean-arrive 440ms 120ms cubic-bezier(0.16, 0.82, 0.2, 1) both;
}

.lc-viewer-page[data-entrance-animation="fade"] .lc-display-media.is-active,
.lc-viewer-page[data-entrance-animation="fade"] .lc-viewer-author,
.lc-viewer-page[data-entrance-animation="fade"] .lc-viewer-caption {
  animation: lc-config-fade 420ms ease-out both;
}

.lc-viewer-page[data-entrance-animation="none"] .lc-display-media,
.lc-viewer-page[data-entrance-animation="none"] .lc-display-media.is-active,
.lc-viewer-page[data-entrance-animation="none"] .lc-viewer-author,
.lc-viewer-page[data-entrance-animation="none"] .lc-viewer-caption {
  opacity: 1;
  transform: none;
  transition: none;
  animation: none;
}

.lc-viewer-page[data-entrance-animation="none"] .lc-viewer-caption,
.lc-viewer-page[data-entrance-animation="none"] .lc-viewer-caption.is-center {
  transform: translate(-50%, var(--lc-caption-center-y, 0));
}

.lc-viewer-page[data-entrance-animation="none"] .lc-viewer-caption.is-center {
  --lc-caption-center-y: -50%;
}

.lc-viewer-page[data-entrance-animation="pop"] .lc-viewer-caption.is-center {
  animation: lc-caption-center-pop 440ms 140ms cubic-bezier(0.16, 0.82, 0.2, 1) both;
}

.lc-viewer-page[data-entrance-animation="slide"] .lc-viewer-caption.is-center {
  animation-name: lc-caption-center-slide;
}

.lc-viewer-page[data-entrance-animation="fade"] .lc-viewer-caption.is-center {
  animation-name: lc-caption-center-fade;
}

@keyframes lc-media-config-slide {
  from { opacity: 0; transform: translateY(7vh); }
  to { opacity: 1; transform: none; }
}

@keyframes lc-config-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lc-caption-center-pop {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)) scale(0.94); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes lc-caption-center-slide {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 22px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes lc-caption-center-fade {
  from { opacity: 0; transform: translate(-50%, -50%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@media (max-width: 760px) {
  .lc-test-form { grid-template-columns: 1fr; }
  .lc-test-actions { grid-column: 1; align-items: stretch; flex-direction: column; }
  .lc-test-actions .lc-primary-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* LiveCGChat viewer: event-only, clean and transparent-overlay friendly. */
@font-face {
  font-family: "Uni Sans Heavy";
  src: url("/assets/fonts/uni-sans-heavy-caps.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 900;
}

.lc-viewer-page {
  background: #03050a;
}

.lc-viewer {
  background: #03050a;
}

.lc-viewer::before,
.lc-viewer-ambient,
.lc-media-glow {
  display: none !important;
  content: none !important;
}

.lc-media-stage,
.lc-viewer-page[data-fit="cover"] .lc-media-stage,
.lc-viewer-page.is-overlay .lc-media-stage,
.lc-viewer-page.is-overlay[data-fit="cover"] .lc-media-stage {
  inset: 2vh 2vw;
}

.lc-media-stage::after,
.lc-media-stage.is-presenting::after {
  display: none;
  content: none;
  animation: none;
}

.lc-media-slot {
  inset: 0;
}

.lc-display-media,
.lc-viewer-page[data-fit="cover"] .lc-display-media,
.lc-viewer-page.is-overlay .lc-display-media,
.lc-viewer-page.is-overlay[data-fit="cover"] .lc-display-media {
  display: block;
  width: auto;
  height: auto;
  max-width: 96vw;
  max-height: 96vh;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
  opacity: 0;
  filter: none;
  transform: scale(0.9) translateY(24px);
  transform-origin: center;
  transition: opacity 420ms ease-out, transform 560ms cubic-bezier(0.16, 0.82, 0.2, 1);
  will-change: opacity, transform;
}

.lc-display-media.is-active {
  opacity: 1;
  filter: none;
  transform: none;
  animation: lc-media-clean-arrive 560ms cubic-bezier(0.16, 0.82, 0.2, 1) both;
}

.lc-viewer-author {
  top: max(18px, env(safe-area-inset-top));
  left: max(18px, env(safe-area-inset-left));
  gap: 10px;
  max-width: min(56vw, 520px);
  padding: 7px 15px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(5, 7, 12, 0.72);
  box-shadow: none;
  backdrop-filter: blur(12px) saturate(120%);
  animation: lc-author-clean-arrive 460ms 90ms cubic-bezier(0.16, 0.82, 0.2, 1) both;
}

.lc-avatar-wrap {
  width: clamp(36px, 4vw, 48px);
  height: clamp(36px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: #fff;
  color: #050505;
  box-shadow: none;
}

.lc-viewer-author-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.lc-viewer-author-copy > strong {
  overflow: hidden;
  color: #fff;
  font-family: Inter, ui-sans-serif, "Segoe UI", Arial, sans-serif;
  font-size: clamp(0.78rem, 1.25vw, 1rem);
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-text-stroke: 0.35px rgba(0, 0, 0, 0.9);
}

.lc-viewer-audio-info {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: min(44vw, 420px);
  color: rgba(228, 241, 255, 0.78);
  font-family: Inter, ui-sans-serif, "Segoe UI", Arial, sans-serif;
  font-size: clamp(0.62rem, 0.95vw, 0.76rem);
  font-weight: 650;
  line-height: 1.15;
}

.lc-viewer-audio-info > :first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-viewer-audio-info > :last-child {
  flex: none;
  color: #57d9ff;
}

.lc-viewer-caption {
  position: absolute;
  right: auto;
  bottom: max(3vh, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 30;
  width: min(90vw, 1180px);
  margin: 0;
  color: #fff;
  font-family: "Uni Sans Heavy", Impact, sans-serif;
  font-size: clamp(1.55rem, 3.6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0.015em;
  overflow-wrap: anywhere;
  pointer-events: none;
  text-align: center;
  text-transform: uppercase;
  -webkit-text-stroke: clamp(0.8px, 0.11vw, 1.6px) #000;
  transform: translateX(-50%);
  animation: lc-caption-clean-arrive 440ms 140ms cubic-bezier(0.16, 0.82, 0.2, 1) both;
}

.lc-viewer-caption.is-medium {
  font-size: clamp(1.3rem, 3vw, 2.8rem);
}

.lc-viewer-caption.is-long {
  font-size: clamp(1.05rem, 2.35vw, 2.15rem);
  line-height: 1.06;
}

.lc-viewer-caption.is-very-long {
  font-size: clamp(0.88rem, 1.8vw, 1.55rem);
  line-height: 1.05;
}

.lc-waiting {
  padding: 20px;
  animation: lc-rise-center 260ms ease-out both;
}

.lc-waiting h1 {
  font-size: clamp(1.75rem, 4vw, 3.5rem);
}

.lc-overlay-root,
.lc-viewer-page.is-overlay,
.lc-viewer-page.is-overlay .lc-viewer {
  background: transparent !important;
}

.lc-viewer-page.is-overlay .lc-waiting {
  display: none !important;
}

@keyframes lc-media-clean-arrive {
  0% { opacity: 0; transform: scale(0.9) translateY(24px); }
  68% { opacity: 1; transform: scale(1.012) translateY(-3px); }
  100% { opacity: 1; transform: none; }
}

@keyframes lc-author-clean-arrive {
  from { opacity: 0; transform: translateX(-18px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes lc-caption-clean-arrive {
  from { opacity: 0; transform: translate(-50%, 16px) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 640px) {
  .lc-viewer-author {
    top: max(10px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
    max-width: calc(100vw - 82px);
    padding: 5px 11px 5px 5px;
  }

  .lc-avatar-wrap {
    width: 34px;
    height: 34px;
  }

  .lc-viewer-caption { font-size: clamp(1.35rem, 7vw, 2.4rem); }
  .lc-viewer-caption.is-medium { font-size: clamp(1.15rem, 5.8vw, 2rem); }
  .lc-viewer-caption.is-long { font-size: clamp(1rem, 4.8vw, 1.65rem); }
  .lc-viewer-caption.is-very-long { font-size: clamp(0.84rem, 4vw, 1.35rem); }

}

@media (max-height: 520px) and (orientation: landscape) {
  .lc-viewer-author {
    top: 8px;
    left: 10px;
    padding: 4px 10px 4px 4px;
  }

  .lc-avatar-wrap {
    width: 32px;
    height: 32px;
  }

  .lc-viewer-caption { font-size: clamp(1.15rem, 5.5vh, 2.1rem); }
  .lc-viewer-caption.is-medium { font-size: clamp(1rem, 4.7vh, 1.8rem); }
  .lc-viewer-caption.is-long { font-size: clamp(0.9rem, 4vh, 1.5rem); }
  .lc-viewer-caption.is-very-long { font-size: clamp(0.78rem, 3.5vh, 1.2rem); }
}

/* Keep configurable viewer rules last so legacy responsive defaults cannot override them. */
.lc-viewer-caption { font-size: var(--lc-caption-size, 58px); }
.lc-viewer-caption.is-medium { font-size: var(--lc-caption-size-medium, 48px); }
.lc-viewer-caption.is-long { font-size: var(--lc-caption-size-long, 38px); }
.lc-viewer-caption.is-very-long { font-size: var(--lc-caption-size-very-long, 29px); }
.lc-viewer-page[data-caption-font="uni-sans"] .lc-viewer-caption { font-family: "Uni Sans Heavy", Impact, sans-serif; }
.lc-viewer-page[data-caption-font="ryan-bold"] .lc-viewer-caption { font-family: "Ryan Bold", Impact, sans-serif; }
.lc-viewer-page[data-caption-font="impact"] .lc-viewer-caption { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; }
.lc-viewer-page[data-caption-font="system"] .lc-viewer-caption { font-family: Inter, ui-sans-serif, "Segoe UI", Arial, sans-serif; font-weight: 900; }
.lc-viewer-page[data-caption-case="original"] .lc-viewer-caption { text-transform: none; }
.lc-viewer-page[data-caption-case="uppercase"] .lc-viewer-caption { text-transform: uppercase; }
.lc-viewer-caption.is-center { transform: translate(-50%, -50%); }
.lc-viewer-page[data-entrance-animation="slide"] .lc-display-media.is-active { animation: lc-media-config-slide 520ms cubic-bezier(0.16, 0.82, 0.2, 1) both; }
.lc-viewer-page[data-entrance-animation="slide"] .lc-viewer-author { animation: lc-author-clean-arrive 460ms 80ms cubic-bezier(0.16, 0.82, 0.2, 1) both; }
.lc-viewer-page[data-entrance-animation="slide"] .lc-viewer-caption { animation: lc-caption-clean-arrive 440ms 120ms cubic-bezier(0.16, 0.82, 0.2, 1) both; }
.lc-viewer-page[data-entrance-animation="fade"] .lc-display-media.is-active,
.lc-viewer-page[data-entrance-animation="fade"] .lc-viewer-author,
.lc-viewer-page[data-entrance-animation="fade"] .lc-viewer-caption { animation: lc-config-fade 420ms ease-out both; }
.lc-viewer-page[data-entrance-animation="none"] .lc-display-media,
.lc-viewer-page[data-entrance-animation="none"] .lc-display-media.is-active,
.lc-viewer-page[data-entrance-animation="none"] .lc-viewer-author,
.lc-viewer-page[data-entrance-animation="none"] .lc-viewer-caption { opacity: 1; transform: none; transition: none; animation: none; }
.lc-viewer-page[data-entrance-animation="none"] .lc-viewer-caption { transform: translateX(-50%); }
.lc-viewer-page[data-entrance-animation="none"] .lc-viewer-caption.is-center { transform: translate(-50%, -50%); }
.lc-viewer-page[data-entrance-animation="pop"] .lc-viewer-caption.is-center { animation: lc-caption-center-pop 440ms 140ms cubic-bezier(0.16, 0.82, 0.2, 1) both; }
.lc-viewer-page[data-entrance-animation="slide"] .lc-viewer-caption.is-center { animation-name: lc-caption-center-slide; }
.lc-viewer-page[data-entrance-animation="fade"] .lc-viewer-caption.is-center { animation-name: lc-caption-center-fade; }
