:root {
  --assets-rail-width: 320px;
  --bg: #050508;
  --surface: rgba(18, 20, 32, 0.72);
  --surface2: rgba(28, 32, 48, 0.85);
  --border: rgba(120, 130, 180, 0.22);
  --border-glow: rgba(108, 140, 255, 0.45);
  --text: #e8eaf0;
  --muted: #8b92a8;
  --accent: #6c8cff;
  --accent2: #9b7bff;
  --accent3: #3dd6ff;
  --success: #3dd68c;
  --danger: #ff6b7a;
  --radius: 14px;
  --neon-blue: rgba(108, 140, 255, 0.55);
  --neon-purple: rgba(155, 123, 255, 0.45);
  --neon-cyan: rgba(61, 214, 255, 0.4);
  --glass-bg: rgba(12, 14, 26, 0.48);
  --glass-bg-strong: rgba(16, 20, 36, 0.58);
  --glass-border: rgba(255, 255, 255, 0.11);
  --glass-blur: blur(22px) saturate(1.5);
  --glass-blur-sm: blur(16px) saturate(1.4);
  --glass-shine: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

#bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#bg-fx::before {
  content: "";
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 20% 20%, rgba(108, 140, 255, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 80% 10%, rgba(155, 123, 255, 0.18) 0%, transparent 38%),
    radial-gradient(circle at 60% 80%, rgba(61, 214, 255, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 10% 70%, rgba(255, 107, 122, 0.06) 0%, transparent 35%);
  animation: aurora 18s ease-in-out infinite alternate;
}

.bg-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: var(--neon-blue);
  top: 10%;
  left: 5%;
  animation-duration: 14s;
}

.orb-2 {
  width: 220px;
  height: 220px;
  background: var(--neon-purple);
  top: 55%;
  right: 8%;
  animation-duration: 18s;
  animation-delay: -4s;
}

.orb-3 {
  width: 160px;
  height: 160px;
  background: var(--neon-cyan);
  bottom: 15%;
  left: 35%;
  animation-duration: 11s;
  animation-delay: -2s;
}

.orb-4 {
  width: 120px;
  height: 120px;
  background: rgba(61, 214, 136, 0.35);
  top: 30%;
  right: 28%;
  animation-duration: 16s;
  animation-delay: -6s;
}

.orb-5 {
  width: 200px;
  height: 200px;
  background: rgba(155, 123, 255, 0.3);
  bottom: 8%;
  right: 40%;
  animation-duration: 20s;
  animation-delay: -8s;
}

.bg-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.012) 2px,
    rgba(255, 255, 255, 0.012) 4px
  );
  pointer-events: none;
  opacity: 0.5;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3%, -4%) scale(1.05); }
  66% { transform: translate(-2%, 3%) scale(0.95); }
}

#bg-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
}

@keyframes aurora {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-4%, 3%) rotate(2deg); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulseBar {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(108, 140, 255, 0.5); }
  50% { opacity: 0.85; box-shadow: 0 0 16px rgba(61, 214, 255, 0.6); }
}

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

@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 12px var(--neon-blue), 0 0 24px rgba(108, 140, 255, 0.15); }
  50% { box-shadow: 0 0 20px var(--neon-purple), 0 0 36px rgba(155, 123, 255, 0.25); }
}

@keyframes fabPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

@keyframes previewPop {
  from { opacity: 0; transform: scale(0.92) translateX(8px); filter: blur(4px); }
  to { opacity: 1; transform: scale(1) translateX(0); filter: blur(0); }
}

@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes titleGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(108, 140, 255, 0.35)); }
  50% { filter: drop-shadow(0 0 16px rgba(61, 214, 255, 0.45)); }
}

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

.hidden { display: none !important; }

#login-screen,
#app {
  position: relative;
  z-index: 1;
}

#app.app-shell {
  --assets-rail-width: 320px;
  display: flex;
  max-width: 100%;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

#app.app-shell.hidden {
  display: none !important;
}

.sidebar {
  flex-shrink: 0;
  width: 88px;
  padding: clamp(0.75rem, 2vw, 1.25rem) 0.5rem;
  border-right: 1px solid var(--border);
  background: rgba(8, 9, 14, 0.55);
  backdrop-filter: blur(10px);
  box-shadow: inset -1px 0 0 rgba(108, 140, 255, 0.08), 4px 0 24px rgba(0, 0, 0, 0.2);
}

.workspace {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(0.75rem, 2vw, 1.25rem) clamp(0.85rem, 2vw, 1.5rem) clamp(0.75rem, 2vw, 1rem);
  overflow: hidden;
  background: rgba(5, 7, 12, 0.32);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 80px rgba(108, 140, 255, 0.03);
}

.main-area {
  flex: 1;
  min-width: 0;
  padding: clamp(0.75rem, 2vw, 1.25rem) clamp(0.85rem, 3vw, 1.5rem) 3rem;
}

.site-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  margin-bottom: 1rem;
}

.site-header-spacer {
  grid-column: 1;
  min-width: 0;
}

.site-title {
  grid-column: 2;
  margin: 0;
  text-align: center;
  justify-self: center;
  max-width: 100%;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-header .user-bar {
  grid-column: 3;
  justify-self: end;
  position: static;
  transform: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
  min-width: 0;
  gap: 0.5rem 0.65rem;
}

.balance-compact {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-shadow: var(--glass-shine);
}

.balance-compact:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 16px rgba(108, 140, 255, 0.12);
}

.balance-compact .balance-box {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  backdrop-filter: none;
  max-width: none;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--muted);
}

.balance-compact .btn-sm {
  padding: 0.2rem 0.45rem;
  font-size: 0.72rem;
}

.balance-hint {
  font-size: 0.65rem;
  color: var(--accent3);
  white-space: nowrap;
  margin-left: 0.15rem;
}

.balance-hint.is-error {
  color: var(--danger);
  white-space: normal;
  max-width: 140px;
  line-height: 1.25;
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.brand p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: clamp(0.78rem, 1.5vw, 0.88rem);
}

.user-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.balance-box {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: min(420px, 100%);
  margin-bottom: 0.5rem;
}

.tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.sidebar-tabs {
  flex-direction: column;
  flex-wrap: nowrap;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  gap: 0.45rem;
}

.sidebar-tabs .tab-btn {
  width: 100%;
  padding: 0.65rem 0.35rem;
  border-radius: 10px;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 640px) {
  #app.app-shell:not(.hidden) {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
  }

  .sidebar-tabs {
    flex-direction: row;
    overflow-x: auto;
  }

  .sidebar-tabs .tab-btn {
    width: auto;
    flex-shrink: 0;
    padding: 0.55rem 1rem;
  }

  .site-header .user-bar {
    position: static;
    transform: none;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
  }

  .site-header {
    flex-direction: column;
  }
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: clamp(0.82rem, 1.5vw, 0.92rem);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative;
}

.tab-btn:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.3), rgba(155, 123, 255, 0.22));
  color: #fff;
  border-color: var(--border-glow);
  box-shadow: 0 0 24px rgba(108, 140, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent3), transparent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--neon-cyan);
}

.content-area {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--glass-shine), 0 12px 40px rgba(0, 0, 0, 0.28);
  padding: clamp(0.55rem, 1.5vw, 0.85rem);
}

.panel {
  display: none;
  height: 100%;
}

.panel.active {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.param-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
}

.param-card-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.2rem;
  -webkit-overflow-scrolling: touch;
}

.param-card .form-actions {
  flex-shrink: 0;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}


.mobile-scroll-hint {
  display: none;
}


@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card-fill {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.preview-card .preview-box-fill {
  flex: 1;
  min-height: clamp(180px, 30vh, 420px);
  padding: 0.35rem;
}

.preview-box img,
.preview-box video,
.preview-box .preview-media {
  max-width: 100%;
  max-height: 420px;
}

.preview-box.preview-box-fill:has(.preview-media) {
  align-items: stretch;
  justify-content: stretch;
}

.preview-box.preview-box-fill .preview-media {
  width: 100%;
  height: 100%;
  min-height: clamp(160px, 28vh, 400px);
  max-height: none;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #000;
}

.assets-rail {
  flex-shrink: 0;
  width: var(--assets-rail-width, 320px);
  min-width: 0;
  border-left: 1px solid var(--border);
  background: rgba(8, 9, 14, 0.45);
  backdrop-filter: blur(10px);
  padding: clamp(0.65rem, 1.5vw, 1rem);
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  overflow: hidden;
  transition: width 0.22s ease;
}

.assets-rail-resizer {
  position: absolute;
  left: -10px;
  top: 0;
  bottom: 0;
  width: 20px;
  cursor: col-resize;
  z-index: 25;
  touch-action: none;
}

.assets-rail-resizer::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(108, 140, 255, 0.45), transparent);
  opacity: 0.35;
  transition: opacity 0.2s;
}

.assets-rail:hover .assets-rail-resizer::after,
body.assets-rail-resizing .assets-rail-resizer::after {
  opacity: 0.85;
}

.assets-rail-edge-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 3.35rem;
  padding: 0;
  border: 1.5px solid rgba(108, 140, 255, 0.55);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(24, 28, 48, 0.98) 0%, rgba(10, 12, 22, 0.98) 100%);
  color: var(--accent3);
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(108, 140, 255, 0.18),
    0 4px 20px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(108, 140, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.22s ease, background 0.22s, border-color 0.22s, box-shadow 0.22s;
}

.assets-rail-edge-toggle:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: linear-gradient(180deg, rgba(42, 48, 78, 0.98) 0%, rgba(16, 20, 36, 0.98) 100%);
  border-color: rgba(61, 214, 255, 0.75);
  box-shadow:
    0 0 0 1px rgba(61, 214, 255, 0.25),
    0 6px 26px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(61, 214, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.assets-rail-edge-toggle:active {
  transform: translate(-50%, -50%) scale(1);
}

.assets-rail-edge-toggle .assets-toggle-chevron {
  width: auto;
  height: auto;
  background: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent3);
  text-shadow: 0 0 8px rgba(61, 214, 255, 0.6);
  line-height: 1;
}

body.assets-rail-resizing {
  cursor: col-resize;
  user-select: none;
}

.assets-rail:not(.assets-rail--open) .assets-rail-resizer {
  cursor: default;
  left: auto;
  right: 0;
  width: 100%;
}

.assets-rail:not(.assets-rail--open) .assets-rail-resizer::after {
  display: none;
}

.asset-hover-preview {
  position: absolute;
  right: calc(100% + 0.5rem);
  top: 0;
  width: min(300px, 28vw);
  z-index: 60;
  pointer-events: none;
}

.asset-hover-preview:not(.hidden) {
  animation: previewPop 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.asset-hover-preview-inner {
  margin: 0;
  padding: 0.45rem;
  background: rgba(12, 14, 22, 0.96);
  border: 1px solid var(--border-glow);
  box-shadow:
    0 0 0 1px rgba(108, 140, 255, 0.15),
    0 12px 48px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(108, 140, 255, 0.12);
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
}

.asset-hover-preview-inner::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(108, 140, 255, 0.08), transparent, rgba(61, 214, 255, 0.06), transparent);
  animation: spin 12s linear infinite;
  pointer-events: none;
}

.asset-hover-preview-inner img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: calc(100vh - 6.5rem);
  object-fit: contain;
  display: block;
  border-radius: 6px;
  background: #000;
}

.asset-hover-preview-inner img.is-portrait {
  max-height: min(calc(100vh - 5.5rem), 78vh);
  max-width: min(100%, 280px);
}

.asset-hover-preview-inner img.is-landscape {
  max-height: min(calc(100vh - 8rem), 360px);
}

#asset-hover-caption {
  margin: 0;
  font-size: 0.72rem;
  text-align: center;
  width: 100%;
}

@media (max-width: 900px) {
  .asset-hover-preview {
    display: none !important;
  }
}

.assets-rail-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 0.65rem;
}

.assets-rail-header {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 0 0.35rem;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  background: rgba(108, 140, 255, 0.1);
}

.assets-rail-header .assets-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(90deg, var(--text), rgba(200, 210, 255, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.assets-toggle-chevron {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.65rem;
  color: var(--muted);
  transition: transform 0.25s ease;
}

.assets-toggle-chevron::before {
  content: "▶";
}

.assets-rail:not(.assets-rail--open) .assets-toggle-chevron::before {
  content: "◀";
}

.assets-rail:not(.assets-rail--open) .assets-toggle-chevron {
  transform: none;
}

.assets-rail-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.assets-rail:not(.assets-rail--open) {
  width: 20px !important;
  padding: 0;
  border-left: none;
  background: transparent;
  overflow: visible;
}

.assets-rail:not(.assets-rail--open) .assets-rail-inner {
  visibility: hidden;
  pointer-events: none;
}

.assets-rail:not(.assets-rail--open) .assets-rail-body {
  display: none;
}

.assets-rail:not(.assets-rail--open) .assets-rail-edge-toggle {
  left: auto;
  right: 0;
  transform: translateY(-50%);
  width: 16px;
  height: 2.85rem;
  border-radius: 10px 0 0 10px;
  border-right: none;
  border-left: 1.5px solid rgba(108, 140, 255, 0.55);
  padding: 0 0 0 2px;
  box-shadow:
    -2px 0 14px rgba(0, 0, 0, 0.38),
    0 0 18px rgba(108, 140, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.assets-rail:not(.assets-rail--open) .assets-rail-edge-toggle:hover {
  transform: translateY(-50%) scale(1.05);
}

.assets-rail:not(.assets-rail--open) .assets-rail-edge-toggle:active {
  transform: translateY(-50%) scale(0.98);
}

.assets-rail:not(.assets-rail--open) .assets-rail-edge-toggle .assets-toggle-chevron {
  font-size: 0.68rem;
  transform: translateX(1px);
}

.assets-hint {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
}

.asset-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.assets-grid-scroll {
  flex: 1;
  min-height: 120px;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: min-content;
  align-content: start;
  gap: 0.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.15rem;
  scrollbar-width: thin;
}

.assets-grid-scroll .asset-item {
  width: 100%;
  align-self: start;
}

.chat-root {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  contain: layout style;
}

.chat-root .chat-fab,
.chat-root .chat-popup:not(.hidden) {
  pointer-events: auto;
}

.chat-fab {
  position: absolute;
  top: auto;
  left: auto;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0));
  right: calc(1.25rem + env(safe-area-inset-right, 0));
  z-index: 2;
  border: 1px solid var(--border-glow);
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.45), rgba(155, 123, 255, 0.4));
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(108, 140, 255, 0.25);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
  overflow: visible;
}

.chat-fab-glow {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
  opacity: 0.35;
  z-index: -1;
  filter: blur(8px);
  animation: fabPulse 2.5s ease-in-out infinite;
}

.chat-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(108, 140, 255, 0.4), 0 0 32px rgba(61, 214, 255, 0.2);
}

.chat-popup {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.chat-popup:not(.hidden) {
  pointer-events: auto;
}

.chat-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.chat-popup:not(.hidden) .chat-popup-panel {
  animation: chatSlideUp 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.chat-popup-panel {
  position: absolute;
  top: auto;
  left: auto;
  bottom: calc(4.75rem + env(safe-area-inset-bottom, 0));
  right: calc(1.25rem + env(safe-area-inset-right, 0));
  width: min(360px, calc(100vw - 2.5rem));
  height: min(480px, calc(100vh - 8rem));
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 0.85rem;
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(108, 140, 255, 0.2),
    0 0 48px rgba(108, 140, 255, 0.1);
  border: 1px solid var(--border-glow);
}

.chat-popup-panel .chat-messages {
  flex: 1;
  min-height: 0;
}

.chat-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  flex-shrink: 0;
}

.chat-messages {
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.35rem 0;
  margin-bottom: 0.65rem;
}

.chat-bubble {
  max-width: 92%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.28), rgba(155, 123, 255, 0.18));
  border: 1px solid rgba(108, 140, 255, 0.4);
  box-shadow: 0 2px 12px rgba(108, 140, 255, 0.15);
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: var(--surface2);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.chat-compose {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex-shrink: 0;
}

.chat-compose textarea {
  min-height: 56px;
  resize: vertical;
  font-family: inherit;
}

@media (max-width: 900px) {
  #app.app-shell:not(.hidden) {
    flex-direction: column;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  body {
    overflow: hidden;
  }

  .sidebar {
    order: 1;
    flex-shrink: 0;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 0.4rem 0.5rem;
    background: rgba(8, 9, 14, 0.85);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
  }

  .sidebar-tabs {
    flex-direction: row;
    justify-content: center;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-tabs .tab-btn {
    width: auto;
    flex: 1;
    min-width: 0;
    max-width: 7rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
  }

  .workspace {
    order: 2;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0.5rem 0.55rem 0.35rem;
    border-left: none;
    border-right: none;
  }

  .site-header {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-bottom: 0.5rem;
    gap: 0.35rem;
  }

  .site-header-spacer {
    display: none;
  }

  .site-title {
    grid-column: 1;
    font-size: 1.35rem;
  }

  .site-header .user-bar {
    grid-column: 1;
    justify-self: stretch;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    gap: 0.35rem;
  }

  .balance-compact {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }

  .balance-hint.is-error {
    max-width: 100%;
    white-space: normal;
  }

  #user-name {
    font-size: 0.78rem;
    max-width: 5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .content-area {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.45rem;
    border-radius: var(--radius);
    scroll-behavior: smooth;
  }

  .panel.active {
    min-height: auto;
    height: auto;
  }


  /* 生图/视频：手机端参数区完整展示，预览在下方滑动查看 */
  #panel-pic.active,
  #panel-mv.active {
    display: block;
    min-height: auto;
    height: auto;
  }

  #panel-pic .grid-2,
  #panel-mv .grid-2 {
    flex: none;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  #panel-pic .param-card,
  #panel-mv .param-card {
    max-height: none;
    flex: none;
    height: auto;
  }

  #panel-pic .param-card-scroll,
  #panel-mv .param-card-scroll {
    overflow: visible;
    flex: none;
    max-height: none;
  }

  #panel-pic .preview-card,
  #panel-mv .preview-card {
    flex: none;
    height: auto;
    min-height: 0;
  }

  #panel-pic .preview-card.card-fill,
  #panel-mv .preview-card.card-fill {
    height: auto;
  }

  .mobile-scroll-hint {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
    padding: 0.15rem 0 0.35rem;
    margin: 0;
    letter-spacing: 0.02em;
    opacity: 0.85;
  }

  #panel-pic .preview-card .preview-box-fill,
  #panel-mv .preview-card .preview-box-fill {
    min-height: min(52vh, 380px);
  }

  #panel-pic .preview-box.preview-box-fill .preview-media,
  #panel-mv .preview-box.preview-box-fill .preview-media {
    min-height: min(48vh, 340px);
  }


  .grid-2 {
    gap: 0.65rem;
  }

  .card {
    padding: 0.75rem;
  }

  .card:hover {
    transform: none;
  }

  .preview-card .preview-box-fill {
    min-height: clamp(140px, 28vh, 240px);
  }

  .preview-box.preview-box-fill .preview-media {
    min-height: clamp(120px, 24vh, 220px);
  }

  textarea {
    min-height: 88px;
    font-size: 16px;
  }

  input, select, textarea {
    font-size: 16px;
  }

  .assets-rail {
    order: unset;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: var(--assets-rail-width, min(85vw, 320px));
    min-width: 0;
    min-height: 0;
    border-left: 1px solid var(--glass-border);
    border-top: none;
    padding: calc(env(safe-area-inset-top, 0) + 3.1rem) 0.35rem env(safe-area-inset-bottom, 0);
    background: rgba(8, 9, 14, 0.94);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    z-index: 95;
    box-shadow: -10px 0 36px rgba(0, 0, 0, 0.45);
  }

  .assets-rail:not(.assets-rail--open) {
    width: 20px !important;
    box-shadow: none;
    background: transparent;
    padding-right: 0;
  }

  .assets-rail--open .assets-rail-body {
    max-height: none;
  }

  .assets-rail--open .assets-grid-scroll {
    max-height: none;
  }

  .assets-rail-inner {
    padding: 0.45rem;
  }

  .asset-hover-preview {
    display: none !important;
  }

  .chat-fab {
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0));
    right: calc(0.85rem + env(safe-area-inset-right, 0));
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
  }

  .chat-popup-panel {
    right: calc(0.85rem + env(safe-area-inset-right, 0));
    left: auto;
    width: min(360px, calc(100vw - 1.7rem));
    bottom: calc(4.25rem + env(safe-area-inset-bottom, 0));
    height: min(55vh, 420px);
  }

  .hist-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hist-list-card .table-wrap {
    max-height: 40vh;
  }

  table.jobs {
    min-width: 520px;
    font-size: 0.78rem;
  }

  .login-card {
    animation: none;
    padding: 1.5rem;
  }
}

.card {
  position: relative;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: clamp(0.9rem, 2vw, 1.2rem);
  box-shadow: var(--glass-shine), 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.35), transparent 40%, rgba(61, 214, 255, 0.2), transparent 70%, rgba(155, 123, 255, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.card:hover {
  border-color: rgba(108, 140, 255, 0.4);
  box-shadow: 0 12px 48px rgba(108, 140, 255, 0.1), 0 0 0 1px rgba(108, 140, 255, 0.08);
  transform: translateY(-1px);
}

.card:hover::before {
  opacity: 1;
}

.card h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 600;
  background: linear-gradient(90deg, var(--text), rgba(200, 210, 255, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.65rem 0 0.3rem;
}

label.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  width: auto;
  white-space: nowrap;
  cursor: pointer;
  color: var(--text);
  font-size: 0.88rem;
}

label.inline-check input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  padding: 0;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 0.75rem 0 0.25rem;
}

input, select, textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-glow);
  box-shadow: 0 0 0 3px rgba(108, 140, 255, 0.15);
}

textarea {
  min-height: 120px;
  resize: vertical;
  font-family: ui-monospace, monospace;
  line-height: 1.45;
}

.row-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 140, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn-primary:hover:not(:disabled)::after {
  transform: translateX(100%);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108, 140, 255, 0.55), 0 0 24px rgba(61, 214, 255, 0.2);
}

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

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--border-glow);
  color: var(--text);
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
}

.preview-box {
  min-height: clamp(200px, 35vw, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(108, 140, 255, 0.08) 0%, transparent 70%),
    rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  box-shadow: var(--glass-shine), inset 0 0 30px rgba(0, 0, 0, 0.2);
}

.preview-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 40px rgba(108, 140, 255, 0.04);
  pointer-events: none;
}

.progress.is-active > div {
  animation: pulseBar 1.2s ease-in-out infinite, gradientShift 2s linear infinite;
}

.progress {
  height: 8px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
  margin: 0.75rem 0;
}

.progress > div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent3), var(--success));
  background-size: 200% 100%;
  width: 0%;
  transition: width 0.35s ease;
  animation: pulseBar 1.5s ease-in-out infinite;
}

.progress > div[style*="width: 0"],
.progress > div[style*="width:0"] {
  animation: none;
}

.status-text {
  font-size: 0.85rem;
  color: var(--muted);
}

.error-text {
  color: var(--danger);
  font-size: 0.85rem;
  white-space: pre-wrap;
}

/* Dropzone */
.dropzone {
  position: relative;
  min-height: 120px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  text-align: center;
}

.dropzone:hover {
  border-color: rgba(108, 140, 255, 0.5);
  background: rgba(108, 140, 255, 0.08);
  box-shadow: 0 0 20px rgba(108, 140, 255, 0.12);
}

.dropzone.drag-over {
  border-color: var(--accent3);
  background: rgba(61, 214, 255, 0.1);
  box-shadow: 0 0 32px rgba(61, 214, 255, 0.25);
  transform: scale(1.01);
}

.dropzone.has-image {
  padding: 0.5rem;
  min-height: 140px;
}

.dropzone-icon {
  font-size: 1.75rem;
  opacity: 0.6;
}

.dropzone-text {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.dropzone-preview {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 8px;
}

.dropzone-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.dropzone input[type="file"] {
  display: none;
}

.dropzone-uploading .dropzone-text::after {
  content: " …";
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.dropzone-large {
  min-height: 88px;
  padding: 0.65rem;
  margin-bottom: 0.65rem;
}

.dropzone-large .dropzone-icon {
  font-size: 1.25rem;
}

.dropzone-large .dropzone-text {
  font-size: 0.78rem;
  line-height: 1.3;
}

.dropzone-large .dropzone-text small {
  display: none;
}

.hist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  flex: 1;
  height: 100%;
  min-height: 0;
}

.hist-list-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.hist-list-card .table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.hist-detail-card {
  min-height: 0;
}

.jobs-selectable tbody tr {
  cursor: pointer;
}

.jobs-selectable tbody tr.selected {
  background: rgba(108, 140, 255, 0.12);
}

.jobs-selectable tbody tr:hover {
  background: rgba(108, 140, 255, 0.06);
}

.hist-row-actions {
  white-space: nowrap;
}

.asset-grid.assets-grid-scroll {
  display: grid;
}

.asset-item {
  position: relative;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s, box-shadow 0.25s;
  height: fit-content;
}

.asset-item:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: var(--border-glow);
  box-shadow: 0 8px 28px rgba(108, 140, 255, 0.2), 0 0 0 1px rgba(108, 140, 255, 0.15);
}

.asset-delete {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  z-index: 2;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.asset-delete:hover {
  background: var(--danger);
  opacity: 1;
  box-shadow: 0 0 12px rgba(255, 107, 122, 0.5);
}

.asset-item img {
  width: 100%;
  height: 100%;
  display: block;
}

.asset-thumb {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 96px;
  background: rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-thumb img.ratio-portrait,
.asset-thumb img.ratio-square {
  object-fit: contain;
}

.asset-thumb img.ratio-landscape {
  object-fit: cover;
  object-position: center;
}

.asset-meta {
  padding: 0.3rem 0.45rem 0.2rem;
  font-size: 0.72rem;
  line-height: 1.25;
}

.asset-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  padding: 0 0.35rem 0.35rem;
}

.asset-actions .btn-sm {
  padding: 0.18rem 0.2rem;
  font-size: 0.65rem;
  white-space: nowrap;
  line-height: 1.2;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.jobs {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.85rem;
}

table.jobs th, table.jobs td {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

table.jobs th { color: var(--muted); font-weight: 500; }

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  font-size: 0.72rem;
  background: var(--surface2);
  border: 1px solid var(--border);
}

.badge.ok {
  color: var(--success);
  border-color: rgba(61, 214, 140, 0.35);
  box-shadow: 0 0 10px rgba(61, 214, 140, 0.15);
}

.badge.fail {
  color: var(--danger);
  border-color: rgba(255, 107, 122, 0.35);
}

.badge.run {
  color: var(--accent3);
  border-color: rgba(61, 214, 255, 0.35);
  animation: neonPulse 2s ease-in-out infinite;
}

#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-card {
  text-align: center;
  max-width: 400px;
  width: 100%;
  padding: 2rem;
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 60px rgba(108, 140, 255, 0.15), 0 20px 60px rgba(0, 0, 0, 0.4);
}

.login-card h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent2);
}

.login-status {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
  min-height: 1.2em;
}

.login-status.is-error {
  color: var(--danger);
}

.login-status.hidden {
  display: none !important;
}
  display: none !important;
}

.login-card .btn-primary {
  min-width: 8rem;
}

.content-area::-webkit-scrollbar,
.param-card-scroll::-webkit-scrollbar,
.assets-grid-scroll::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.content-area::-webkit-scrollbar-thumb,
.param-card-scroll::-webkit-scrollbar-thumb,
.assets-grid-scroll::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 99px;
}

.content-area::-webkit-scrollbar-track,
.param-card-scroll::-webkit-scrollbar-track,
.assets-grid-scroll::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 99px;
}

.hint { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

.hint-sm {
  font-size: 0.78rem;
  margin-top: 0.35rem;
}

.form-actions { margin-top: 1rem; }

.mode-hint {
  margin: 0.35rem 0 0.75rem;
  padding: 0.5rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.dropzone-video .dropzone-preview {
  max-height: 120px;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.asset-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  background: #000;
}


/* --- 云端特效广场 --- */
.fx-layout .fx-param-card {
  min-width: 0;
}

.fx-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.fx-template-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(8, 10, 18, 0.65);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-align: left;
  padding: 0;
}

.fx-template-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(108, 140, 255, 0.2);
  transform: translateY(-2px);
}

.fx-template-card.is-selected {
  border-color: rgba(61, 214, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(61, 214, 255, 0.35), 0 8px 28px rgba(0, 0, 0, 0.35);
}

.fx-template-cover {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #000;
  overflow: hidden;
}

.fx-template-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s;
}

.fx-template-card:hover .fx-template-cover img.fx-cover-still {
  opacity: 0;
}

.fx-template-card .fx-cover-anim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s;
}

.fx-template-card:hover .fx-cover-anim {
  opacity: 1;
}

.fx-template-body {
  padding: 0.45rem 0.5rem 0.55rem;
}

.fx-template-title {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.fx-template-desc {
  margin: 0;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fx-template-tag {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.62rem;
  background: rgba(108, 140, 255, 0.15);
  color: rgba(200, 210, 255, 0.95);
  border: 1px solid rgba(108, 140, 255, 0.25);
}

.fx-selected-title {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent3);
}

.fx-form-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.65rem;
}

.fx-or-pic-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
}

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

/* --- 广场 Phase3 工具栏 --- */
.fx-plaza-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
}
.fx-plaza-tabs {
  display: flex;
  gap: 0.35rem;
}
.fx-tab-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.82rem;
  cursor: pointer;
}
.fx-tab-btn.active {
  color: var(--accent2);
  border-color: rgba(108, 140, 255, 0.45);
  background: rgba(108, 140, 255, 0.12);
}
.fx-search-input {
  flex: 1 1 160px;
  min-width: 140px;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}
.fx-sync-status {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.75;
}
.fx-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.fx-chip {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  cursor: pointer;
}
.fx-chip.is-active {
  color: var(--accent2);
  border-color: rgba(108, 140, 255, 0.45);
}
.fx-load-more {
  width: 100%;
  margin-bottom: 0.5rem;
}

/* Phase 4: Comfy 工作流工作室 */
.fx-studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.fx-studio-header h2 {
  margin: 0;
}
.fx-view-switch {
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 2px;
}
.fx-view-btn {
  border: none;
  background: transparent;
  color: var(--text-muted, #9ca3af);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}
.fx-view-btn.active {
  background: rgba(139, 92, 246, 0.35);
  color: #fff;
}
.fx-subview.hidden {
  display: none !important;
}
.fx-quick-panel {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.fx-quick-link-row {
  margin: 0.5rem 0 0;
}
.fx-hub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.fx-tag-ok {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}
.fx-tag-warn {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
}
.fx-studio-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.fx-comfy-iframe {
  width: 100%;
  min-height: 520px;
  height: calc(100vh - 280px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #1a1a2e;
}
.fx-plaza-actions.hidden,
.fx-quick-actions.hidden {
  display: none !important;
}

/* Phase 4b: 广场弹窗 + 大工作室布局 */
.fx-studio-layout {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  gap: 0.75rem;
  align-items: stretch;
  min-height: calc(100vh - 200px);
}
.fx-studio-layout.fx-preview-collapsed {
  grid-template-columns: 1fr;
}
.fx-comfy-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.75rem;
}
.fx-comfy-card .fx-comfy-iframe {
  flex: 1;
  min-height: 520px;
  height: auto;
}
.fx-preview-card.hidden {
  display: none !important;
}
.fx-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.fx-modal.hidden {
  display: none !important;
}
.fx-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}
.fx-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 96vw);
  max-height: 88vh;
  overflow: auto;
  padding: 1rem 1.25rem;
}
.fx-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.fx-modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
}
.fx-modal-grid {
  max-height: 50vh;
  overflow-y: auto;
}
.fx-modal-actions {
  margin: 0.75rem 0 0;
  text-align: right;
}
@media (max-width: 900px) {
  .fx-studio-layout {
    grid-template-columns: 1fr;
  }
}

/* Comfy Hub 前后对比滑块 */
.fx-compare {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0d0d18;
  border-radius: inherit;
  user-select: none;
  touch-action: none;
}
.fx-compare-compact {
  aspect-ratio: 4 / 3;
}
.fx-compare-after,
.fx-compare-before img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.fx-compare-before {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid rgba(255, 255, 255, 0.92);
}
.fx-compare-before img {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  max-width: none;
}
.fx-compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  z-index: 3;
  pointer-events: none;
}
.fx-compare-handle::after {
  content: "↔";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #1f2937;
}
.fx-compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}
.fx-template-cover .fx-compare {
  border-radius: 8px 8px 0 0;
}

/* 广场简介 / 双语（右侧详情栏） */
.fx-hub-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.fx-hub-detail-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}
.fx-bilingual {
  display: grid;
  gap: 0.65rem;
}
.fx-bilingual.is-split {
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .fx-bilingual.is-split {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
}
.fx-lang-block {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.fx-lang-label {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.35rem;
}
.fx-hub-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #e5e7eb;
  white-space: pre-wrap;
}
.fx-hub-ext {
  margin-top: 0.5rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #d1d5db;
  white-space: pre-wrap;
}
.fx-card-desc-zh {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #a5b4fc;
}
.fx-preview-compare-label {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: #9ca3af;
}


.fx-modal-panel-wide {
  width: min(1180px, 98vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.fx-plaza-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 0.85rem;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.fx-plaza-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.fx-modal-grid {
  max-height: none;
  flex: 0 0 auto;
  overflow: visible;
  min-height: 0;
}
.fx-plaza-detail-rail {
  min-width: 0;
  max-height: min(68vh, 640px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}
.fx-plaza-detail-empty {
  margin: 0;
  padding: 2rem 0.75rem;
  text-align: center;
  font-size: 0.88rem;
  color: #9ca3af;
  line-height: 1.6;
}
.fx-plaza-detail-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.fx-hub-detail-media {
  flex-shrink: 0;
}
.fx-hub-detail-media .fx-compare,
.fx-hub-detail-media > img {
  max-height: 180px;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
}
.fx-hub-detail-media .fx-compare-before img {
  height: 180px;
}
.fx-hub-detail-title {
  font-size: 0.95rem;
}
.fx-hub-desc,
.fx-hub-ext {
  font-size: 0.82rem;
  line-height: 1.5;
}
.fx-bilingual.is-split .fx-lang-block {
  padding: 0.5rem 0.6rem;
}
.fx-plaza-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.5rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.fx-plaza-detail-actions .btn {
  width: 100%;
  justify-content: center;
}
.fx-studio-steps {
  margin: 0.35rem 0.5rem 0.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
}
#btn-fx-run-workflow:not(:disabled) {
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.45), 0 4px 14px rgba(124, 58, 237, 0.25);
}
.preview-box.fx-preview-compare {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0.5rem;
  overflow: auto;
}
.fx-preview-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.fx-preview-compare-label {
  width: 100%;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  line-height: 1.4;
  flex-shrink: 0;
}
.fx-preview-inner .fx-compare {
  flex: 1;
  min-height: 160px;
  max-height: min(42vh, 380px);
  border-radius: 8px;
}
@media (max-width: 860px) {
  .fx-plaza-split {
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
  }
  .fx-plaza-detail-rail {
    max-height: 42vh;
  }
  .fx-modal-panel-wide {
    overflow: auto;
  }
}

/* 广场左侧网格：固定卡片比例，禁止压扁 */
.fx-modal-grid.fx-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 0.65rem;
  align-content: start;
}
.fx-hub-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.fx-hub-card .fx-template-cover {
  aspect-ratio: 3 / 4;
  min-height: 120px;
  flex-shrink: 0;
}
.fx-hub-card .fx-template-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fx-hub-card .fx-template-body {
  flex: 0 0 auto;
}
.fx-hub-scroll-sentinel {
  height: 1px;
  margin-top: 0.25rem;
}
.fx-plaza-split {
  grid-template-columns: minmax(0, 1fr) 300px;
  height: min(68vh, 620px);
  max-height: min(68vh, 620px);
}
.fx-plaza-detail-rail {
  width: 300px;
  max-width: 300px;
  max-height: none;
  height: 100%;
  align-self: stretch;
}
.fx-hub-io-summary,
.fx-hub-notes {
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
}
.fx-hub-io-summary h4,
.fx-hub-notes h4 {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  color: #c4b5fd;
  font-weight: 600;
}
.fx-hub-io-summary ul {
  margin: 0;
  padding-left: 1rem;
}
.fx-hub-notes {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  max-height: none;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 工作室：可调参数面板 */
.fx-wf-panel {
  margin: 0.5rem 0.65rem 0.35rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.06);
}
.fx-wf-panel.hidden { display: none !important; }
.fx-wf-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.fx-wf-panel-title {
  margin: 0;
  font-size: 0.95rem;
}
.fx-wf-output-hint {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
}
.fx-wf-usage-note {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  white-space: pre-wrap;
  max-height: 6rem;
  overflow-y: auto;
}
.fx-wf-inputs {
  display: grid;
  gap: 0.55rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.fx-wf-field label {
  display: block;
  font-size: 0.78rem;
  color: #c4b5fd;
  margin-bottom: 0.25rem;
}
.fx-wf-field input,
.fx-wf-field textarea {
  width: 100%;
  font-size: 0.85rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #e5e7eb;
}
.fx-wf-field textarea {
  min-height: 4.5rem;
  resize: vertical;
}
.fx-wf-field-hint {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 0.2rem;
}
.fx-wf-panel-actions {
  margin: 0.65rem 0 0;
}
.fx-comfy-iframe-collapsed {
  height: 0 !important;
  min-height: 0 !important;
  border: none !important;
  opacity: 0;
  pointer-events: none;
}
.fx-comfy-iframe.fx-comfy-iframe-show {
  flex: 1;
  min-height: 480px;
  height: calc(100vh - 240px);
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 860px) {
  .fx-plaza-split {
    height: auto;
    max-height: none;
  }
  .fx-plaza-detail-rail {
    width: 100%;
    max-width: none;
    max-height: 38vh;
  }
}


/* Pic reference slots */
#pic-refs-grid > div.pic-ref-disabled {
  opacity: 0.45;
  pointer-events: none;
}

#pic-refs-grid > div.pic-ref-disabled .dropzone {
  cursor: not-allowed;
}


/* Pic multi reference images */
.pic-ref-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.pic-ref-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.pic-ref-index {
  flex-shrink: 0;
  min-width: 2.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent2, #8b9dff);
}

.pic-ref-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.pic-ref-item .pic-ref-remove {
  margin-left: auto;
}

#pic-ref-limit-hint.pic-ref-over {
  color: #f87171;
}

.pic-refs-add-zone.pic-ref-drop-full {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}


.fx-hub-insight-banner {
  margin: 0.5rem 0 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  border: 1px solid rgba(255, 193, 77, 0.35);
  background: rgba(255, 193, 77, 0.08);
  color: rgba(255, 230, 180, 0.95);
}

.fx-hub-insight-banner.is-ok {
  border-color: rgba(120, 220, 160, 0.35);
  background: rgba(80, 200, 140, 0.08);
  color: rgba(200, 255, 220, 0.95);
}

.fx-hub-prompts,
.fx-hub-nodes {
  margin-top: 0.45rem;
}

.fx-hub-prompts h4,
.fx-hub-nodes h4,
.fx-hub-io-summary h4 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
}

.fx-hub-prompt-item {
  margin-bottom: 0.55rem;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fx-hub-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
}

.fx-hub-prompt-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.fx-hub-prompt-text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 12rem;
  overflow: auto;
}

.fx-hub-nodes-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

.fx-template-tag.fx-tag-fal-easy {
  border-color: rgba(120, 220, 160, 0.45);
  color: rgba(180, 255, 210, 0.95);
}
