/* ═══════════════════════════════════════════════════════════════
   Giamix App UI — living backgrounds, glass, unified shell
   ═══════════════════════════════════════════════════════════════ */

:root {
  --gx-lime: #b8ff3b;
  --gx-green: #7cff5b;
  --gx-lime-soft: rgba(184, 255, 59, 0.1);
  --gx-purple: #7c3aed;
  --gx-violet: #8b5cf6;
  --gx-indigo: #6366f1;
  --gx-cyan: #06b6d4;
  --gx-glass: rgba(9, 9, 11, 0.72);
  --gx-glass-border: rgba(255, 255, 255, 0.08);
  --gx-radius-xl: 18px;
  --gx-radius-lg: 16px;
  --gx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gx-sidebar-w: 260px;
  --gx-sidebar-w-collapsed: 72px;
}

/* ── Ambient — clean CSS mesh, no raster assets ── */

.gx-ambient,
.gx-app .gx-ambient,
.gx-home .gx-ambient,
.editor-body .gx-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #050505;
}

.gx-mesh {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(120, 200, 80, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 45% at 88% 12%, rgba(200, 240, 49, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 8% 28%, rgba(60, 180, 120, 0.1), transparent 45%),
    #080a08;
  animation: gx-mesh-drift 22s ease-in-out infinite alternate;
}

.gx-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 30%, transparent 38%, rgba(0, 0, 0, 0.48) 100%);
  animation: gx-mesh-vignette 18s ease-in-out infinite alternate;
}

.gx-float {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.55;
  will-change: transform;
}

.gx-float--lime {
  width: min(58vw, 520px);
  height: min(58vw, 520px);
  left: 8%;
  bottom: -8%;
  background: radial-gradient(circle, rgba(200, 240, 49, 0.28) 0%, transparent 68%);
  animation: gx-float-lime 18s ease-in-out infinite;
}

.gx-float--violet {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  right: 10%;
  top: 12%;
  background: radial-gradient(circle, rgba(100, 220, 140, 0.22) 0%, transparent 70%);
  animation: gx-float-violet 22s ease-in-out infinite;
  animation-delay: -6s;
}

.gx-float--blue {
  width: min(68vw, 560px);
  height: min(68vw, 560px);
  left: 28%;
  top: -12%;
  background: radial-gradient(circle, rgba(80, 190, 110, 0.18) 0%, transparent 65%);
  animation: gx-float-blue 20s ease-in-out infinite;
  animation-delay: -4s;
}

.gx-float--pink {
  width: min(52vw, 460px);
  height: min(52vw, 460px);
  right: -4%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(160, 230, 90, 0.16) 0%, transparent 68%);
  animation: gx-float-pink 24s ease-in-out infinite;
  animation-delay: -10s;
}

@keyframes gx-float-blue {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(-6%, 8%) scale(1.08); opacity: 0.9; }
}

@keyframes gx-float-pink {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
  50% { transform: translate(-8%, -6%) scale(1.06); opacity: 0.85; }
}

@keyframes gx-mesh-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(1.5%, -1%) scale(1.03); }
}

@keyframes gx-mesh-vignette {
  0% { opacity: 0.92; }
  100% { opacity: 1; }
}

@keyframes gx-float-lime {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.65; }
  50% { transform: translate(8%, -10%) scale(1.1); opacity: 0.95; }
}

@keyframes gx-float-violet {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
  50% { transform: translate(-7%, 12%) scale(1.08); opacity: 0.85; }
}

@keyframes gx-home-pulse {
  0% { opacity: 0.75; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .gx-mesh,
  .gx-mesh::after,
  .gx-float {
    animation: none !important;
  }
}

/* legacy — hidden */
.gx-aurora, .gx-orb, .gx-bg-blob, .gx-vignette, .gx-grain, .ws-grid { display: none !important; }

/* Hide legacy backgrounds */
.ws-grid { display: none !important; }
body.gx-app::before,
body.gx-home::before,
body.editor-body::before {
  display: none !important;
}

@keyframes gx-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.gx-composer.gx-shake {
  animation: gx-shake 0.4s var(--gx-ease);
}

/* ── App shell ── */

.gx-app,
.gx-home {
  min-height: 100dvh;
  background: transparent;
  color: var(--text);
  overflow-x: hidden;
}

html {
  background: #080a08;
}

.gx-app .page,
.gx-app .nav,
.gx-app .templates-shell > .templates-header,
.gx-home .page,
.gx-home .nav {
  display: none !important;
}

.gx-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
}

.gx-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--gx-sidebar-w);
  z-index: 40;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: 12px 12px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.88) 0%, rgba(5, 5, 5, 0.85) 100%);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
  transition: width 0.28s var(--gx-ease);
  overflow: hidden;
}

.gx-shell.is-collapsed {
  --gx-sidebar-w: var(--gx-sidebar-w-collapsed);
}

.gx-main {
  min-width: 0;
  min-height: 100dvh;
  margin-left: var(--gx-sidebar-w);
  padding: 20px 28px 28px;
  transition: margin-left 0.28s var(--gx-ease);
}

.gx-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 4px 10px;
  min-height: 44px;
}

.gx-sidebar-head .gx-logo {
  flex: 1;
  min-width: 0;
}

.gx-sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(161, 161, 170, 0.9);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.gx-sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}

.gx-shell.is-collapsed .gx-sidebar-toggle .gx-toggle-expand { display: block; }
.gx-shell.is-collapsed .gx-sidebar-toggle .gx-toggle-collapse { display: none; }
.gx-shell:not(.is-collapsed) .gx-sidebar-toggle .gx-toggle-expand { display: none; }
.gx-shell:not(.is-collapsed) .gx-sidebar-toggle .gx-toggle-collapse { display: block; }

.gx-shell.is-collapsed .gx-logo span,
.gx-shell.is-collapsed .gx-nav-item > span:last-child,
.gx-shell.is-collapsed .gx-recent,
.gx-shell.is-collapsed .gx-pro-pill span:last-child,
.gx-shell.is-collapsed .gx-profile-mount .profile-brief,
.gx-shell.is-collapsed .gx-profile-mount .profile-chevron {
  display: none !important;
}

.gx-shell.is-collapsed .gx-logo {
  justify-content: center;
  padding: 0;
  width: 100%;
}

.gx-shell.is-collapsed .gx-sidebar-head {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 8px;
  padding: 4px 0 10px;
}

.gx-shell.is-collapsed .gx-nav {
  width: 100%;
  align-items: center;
}

.gx-shell.is-collapsed .gx-nav-item {
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  margin: 0 auto;
}

.gx-shell.is-collapsed .gx-nav-item .icon,
.gx-shell.is-collapsed .gx-nav-item .icon-sm {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.gx-shell.is-collapsed .gx-pro-pill {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  box-sizing: border-box;
}

.gx-shell.is-collapsed .gx-pro-pill .icon,
.gx-shell.is-collapsed .gx-pro-pill .icon-xs {
  width: 18px;
  height: 18px;
}

.gx-shell.is-collapsed .gx-profile-mount .profile-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 44px;
  height: 44px;
  min-height: 44px;
  box-sizing: border-box;
  margin: 0 auto;
  border-radius: 16px;
}

.gx-shell.is-collapsed .gx-profile-mount .profile-avatar,
.gx-shell.is-collapsed .gx-profile-mount .profile-avatar-letter {
  width: 32px;
  height: 32px;
  margin: 0;
  flex-shrink: 0;
}

.gx-shell.is-collapsed .gx-sidebar-foot {
  width: 100%;
  align-items: center;
}

.gx-shell.is-collapsed .gx-sidebar-toggle {
  width: 44px;
  height: 44px;
}

.gx-shell.is-collapsed .gx-sidebar {
  padding: 12px 8px 14px;
}

.gx-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 0;
}

.gx-logo .logo-img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.gx-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}

.gx-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  color: rgba(161, 161, 170, 0.95);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s var(--gx-ease), background 0.2s var(--gx-ease), box-shadow 0.2s var(--gx-ease);
  box-sizing: border-box;
}

.gx-nav-item .icon,
.gx-nav-item .icon-sm {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.gx-nav-item:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.05);
}

.gx-nav-item.active {
  color: var(--gx-lime);
  background: rgba(184, 255, 59, 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(184, 255, 59, 0.18),
    0 0 24px rgba(184, 255, 59, 0.08);
}

.gx-recent {
  min-height: 0;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gx-recent-label {
  margin: 0 0 8px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.35);
}

.gx-recent-list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
}

.gx-recent-empty {
  margin: 0;
  padding: 8px 10px;
  font-size: 0.76rem;
  color: rgba(245, 245, 247, 0.4);
  line-height: 1.45;
}

.gx-recent-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: rgba(245, 245, 247, 0.5);
  text-decoration: none;
  font-size: 0.8rem;
  transition: background 0.15s, color 0.15s;
}

.gx-recent-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.gx-recent-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gx-sidebar-foot {
  flex-shrink: 0;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gx-pro-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(228, 228, 231, 0.9);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.gx-pro-pill:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.08);
  transform: none;
}

.gx-profile-mount .profile-trigger,
.gx-profile-mount .btn-google {
  width: 100%;
  border-radius: 12px;
}

.gx-profile-mount .profile-trigger {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
  min-height: 44px;
  cursor: pointer;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.gx-profile-mount .profile-trigger:hover {
  border-color: rgba(184, 255, 59, 0.15);
  background: rgba(184, 255, 59, 0.05);
}

.gx-profile-mount {
  position: relative;
  z-index: 50;
  width: 100%;
}

.gx-profile-mount .nav-profile {
  position: relative;
  width: 100%;
}

.profile-trigger.is-open {
  border-color: rgba(200, 240, 49, 0.35) !important;
  background: rgba(200, 240, 49, 0.08) !important;
}

.profile-dropdown--portal {
  position: fixed;
  top: auto;
  right: auto;
  min-width: 288px;
  z-index: 500;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.profile-usage-row.is-full .profile-usage-fill {
  background: #f87171;
}

.profile-usage-warn {
  margin: 8px 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #f87171;
}

.profile-usage-warn a {
  color: var(--gx-lime);
  text-decoration: underline;
}

/* ── Home hero (compact) ── */

.gx-home .gx-shell {
  display: block;
}

.gx-app .gx-main,
.gx-home .gx-main {
  position: relative;
  z-index: 1;
}

.gx-app .gx-main::before,
.gx-home .gx-main::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--gx-sidebar-w);
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 65% at 58% 72%, rgba(200, 240, 49, 0.16), transparent 58%),
    radial-gradient(ellipse 55% 48% at 18% 28%, rgba(80, 200, 120, 0.14), transparent 54%),
    radial-gradient(ellipse 45% 40% at 82% 18%, rgba(60, 170, 100, 0.1), transparent 50%);
  animation: gx-home-pulse 14s ease-in-out infinite alternate;
}

.gx-home .gx-main::before {
  display: none;
}

.gx-app .gx-main > *,
.gx-home .gx-main > *:not(.gx-home-fx):not(.gx-home-stage) {
  position: relative;
  z-index: 1;
}

.gx-app .gx-shell.is-collapsed .gx-main::before,
.gx-home .gx-shell.is-collapsed .gx-main::before {
  left: var(--gx-sidebar-w-collapsed);
}

.gx-home .gx-main.gx-home-main {
  width: calc(100vw - var(--gx-sidebar-w));
  margin-left: var(--gx-sidebar-w);
  padding: 0;
  min-height: 100dvh;
  display: block;
  overflow: visible;
  box-sizing: border-box;
}

.gx-home .gx-shell.is-collapsed .gx-main.gx-home-main {
  width: calc(100vw - var(--gx-sidebar-w-collapsed));
  margin-left: var(--gx-sidebar-w-collapsed);
}

.gx-home-main {
  position: relative;
  min-width: 0;
}

.gx-home-fx {
  position: fixed;
  left: var(--gx-sidebar-w);
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 85% 60% at 50% 100%, rgba(80, 200, 100, 0.35), transparent 58%),
    radial-gradient(ellipse 50% 40% at 15% 75%, rgba(200, 240, 49, 0.2), transparent 52%),
    #050807;
}

.gx-home .gx-shell.is-collapsed .gx-home-fx {
  left: var(--gx-sidebar-w-collapsed);
}

.gx-home-aurora-wrap {
  position: absolute;
  inset: -8%;
  overflow: hidden;
}

.gx-home-aurora-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  filter: blur(42px) saturate(1.2) brightness(0.92);
  transform: scale(1.12);
}

.gx-home-aurora-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 88%, rgba(200, 240, 49, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(5, 8, 7, 0.72) 0%, rgba(5, 8, 7, 0.18) 42%, rgba(5, 8, 7, 0.35) 100%),
    linear-gradient(90deg, rgba(5, 8, 7, 0.28) 0%, transparent 16%, transparent 84%, rgba(5, 8, 7, 0.28) 100%);
  pointer-events: none;
}

.gx-home-stage {
  position: fixed;
  inset: 0;
  left: var(--gx-sidebar-w);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
  box-sizing: border-box;
  pointer-events: none;
}

.gx-home .gx-shell.is-collapsed .gx-home-stage {
  left: var(--gx-sidebar-w-collapsed);
}

.gx-home-stack {
  width: min(100%, 640px);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  animation: gx-fade-up 0.7s var(--gx-ease) both;
}

.gx-home-hero-text {
  text-align: center;
  width: 100%;
  margin-bottom: 4px;
}

.gx-home .gx-greeting-sub {
  margin: 0 auto 28px;
  max-width: 480px;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(245, 245, 247, 0.52);
  line-height: 1.55;
  animation: gx-fade-up 0.7s var(--gx-ease) 0.05s both;
}

.gx-home .gx-greeting {
  width: 100%;
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
  color: #f5f5f7;
  animation: gx-greeting-in 0.9s var(--gx-ease) both, gx-greeting-shimmer 8s ease-in-out 1.2s infinite;
}

@keyframes gx-greeting-in {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes gx-greeting-shimmer {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 40px rgba(200, 240, 49, 0.15); }
}

.gx-home .gx-greeting em {
  font-style: normal;
  color: var(--gx-lime);
}

.gx-name-gradient {
  background: linear-gradient(120deg, #c8f031 0%, #86efac 42%, #4ade80 78%, #a3e635 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gx-eyebrow {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gx-lime);
  opacity: 0.9;
}

.gx-greeting {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 3.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.gx-greeting em {
  font-style: normal;
  color: var(--gx-lime);
}

.gx-greeting-sub {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(245, 245, 247, 0.5);
  line-height: 1.55;
}

/* Home composer — узкая длинная строка по центру */
.gx-home .gx-composer-zone {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  animation: gx-fade-up 0.6s var(--gx-ease) 0.08s both;
}

.gx-home-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  animation: gx-fade-up 0.65s var(--gx-ease) 0.14s both;
}

.gx-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(245, 245, 247, 0.72);
  background: rgba(8, 14, 10, 0.55);
  border: 1px solid rgba(200, 240, 49, 0.1);
  backdrop-filter: blur(12px);
}

.gx-home-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
  animation: gx-fade-up 0.7s var(--gx-ease) 0.2s both;
}

.gx-showcase-card {
  position: relative;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(8, 14, 10, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.25s var(--gx-ease), border-color 0.25s;
}

.gx-showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(200, 240, 49, 0.12), transparent 55%);
  pointer-events: none;
}

.gx-showcase-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 240, 49, 0.22);
}

.gx-showcase-card strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 0.92rem;
  color: #f5f5f7;
}

.gx-showcase-card p {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(245, 245, 247, 0.5);
  line-height: 1.45;
}

.gx-showcase-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gx-lime, #c8f031);
}

.gx-showcase-card--bot::after {
  background: radial-gradient(circle at 20% 0%, rgba(42, 171, 238, 0.14), transparent 55%);
}

.gx-composer-hero {
  width: 100%;
  position: relative;
  border-radius: 16px;
  background: rgba(8, 14, 10, 0.88);
  border: 1px solid rgba(200, 240, 49, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(200, 240, 49, 0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.gx-composer-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(200, 240, 49, 0.35) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: gx-composer-border 5s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.6;
}

@keyframes gx-composer-border {
  0%, 100% { background-position: 100% 0; opacity: 0.35; }
  50% { background-position: 0% 0; opacity: 0.85; }
}

.gx-composer-hero:focus-within::before {
  opacity: 1;
}

.gx-composer-hero:focus-within {
  border-color: rgba(200, 240, 49, 0.28);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(200, 240, 49, 0.08);
}

.gx-home .gx-prompt {
  min-height: 48px;
  max-height: 100px;
  padding: 14px 16px 4px;
  font-size: 1.02rem;
  line-height: 1.45;
}

.gx-home .gx-composer-foot {
  padding: 4px 10px 10px;
}

.gx-composer-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Icon sizes — чуть крупнее, как в референсах */
.icon-xs { width: 16px; height: 16px; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; flex-shrink: 0; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-lg { width: 28px; height: 28px; flex-shrink: 0; }

.gx-attach-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 245, 247, 0.65);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--gx-ease);
}

.gx-attach-btn .icon,
.gx-attach-btn .icon-xs,
.gx-attach-btn .icon-sm {
  width: 18px;
  height: 18px;
}

.compose-tool-icon .icon,
.compose-tool-icon.icon,
.compose-tool-btn .icon-sm {
  width: 18px;
  height: 18px;
}

.gx-attach-btn:hover {
  background: rgba(200, 240, 49, 0.1);
  color: var(--gx-lime);
  transform: scale(1.05);
}

.gx-attach-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
  animation: gx-fade-up 0.3s var(--gx-ease) both;
}

.gx-attach-list.hidden {
  display: none;
}

.gx-attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(200, 240, 49, 0.15);
  background: rgba(8, 14, 10, 0.8);
  font-size: 0.75rem;
  color: rgba(245, 245, 247, 0.75);
}

.gx-attach-chip img {
  border-radius: 6px;
  object-fit: cover;
}

.gx-attach-chip button {
  border: none;
  background: transparent;
  color: rgba(245, 245, 247, 0.45);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
}

.gx-attach-chip button:hover {
  color: var(--gx-lime);
}

.gx-mode-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.gx-mode-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(245, 245, 247, 0.45);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.gx-mode-icon .icon,
.gx-mode-icon .icon-xs,
.gx-mode-icon .icon-sm {
  width: 18px;
  height: 18px;
}

.gx-mode-icon.active {
  background: rgba(200, 240, 49, 0.12);
  color: var(--gx-lime);
}

.gx-mode-icon:hover {
  color: rgba(245, 245, 247, 0.8);
}

.gx-ideas-pill {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(200, 240, 49, 0.15);
  background: rgba(8, 14, 10, 0.65);
  color: rgba(245, 245, 247, 0.75);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.gx-ideas-pill:hover {
  background: rgba(200, 240, 49, 0.08);
  border-color: rgba(200, 240, 49, 0.28);
  color: var(--text);
}

.gx-home .gx-ideas {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 4px 0;
}

.gx-home .gx-ideas.hidden {
  display: none !important;
}

/* Lovable-style composer (other pages) */
.gx-composer-zone {
  width: 100%;
  max-width: 820px;
  animation: gx-fade-up 0.6s var(--gx-ease) 0.06s both;
}

.gx-composer {
  border-radius: 20px;
  background: rgba(14, 14, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.gx-composer:focus-within {
  border-color: rgba(200, 240, 49, 0.28);
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(200, 240, 49, 0.1);
}

.gx-mode-row {
  display: flex;
  gap: 6px;
  padding: 12px 14px 0;
}

.gx-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(245, 245, 247, 0.45);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.gx-mode-pill.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.gx-prompt {
  width: 100%;
  min-height: 128px;
  padding: 18px 20px;
  margin: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 1.15rem;
  line-height: 1.55;
  resize: none;
}

.gx-prompt:focus {
  outline: none;
  box-shadow: none;
}

.gx-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 14px;
}

.gx-composer-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gx-chip-btn,
.gx-link-muted {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.gx-chip-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.gx-chip-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.gx-link-muted {
  color: rgba(245, 245, 247, 0.45);
}

.gx-link-muted:hover {
  color: var(--text);
}

.gx-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: var(--gx-lime);
  color: #0a0a0a;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s var(--gx-ease), box-shadow 0.2s;
  box-shadow: 0 0 0 0 rgba(200, 240, 49, 0.4);
}

.gx-send:hover {
  transform: translateY(-2px) scale(1.04);
  opacity: 0.95;
  box-shadow: 0 4px 24px rgba(200, 240, 49, 0.35);
}

.gx-composer-hero.gx-shake {
  animation: gx-shake 0.4s ease;
}

@keyframes gx-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.gx-ideas {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.gx-idea {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(245, 245, 247, 0.55);
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.2s var(--gx-ease);
}

.gx-idea:hover {
  border-color: rgba(200, 240, 49, 0.3);
  color: var(--text);
  background: var(--gx-lime-soft);
  transform: translateY(-1px);
}

.gx-hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.74rem;
  color: rgba(245, 245, 247, 0.35);
}

/* Metrics — minimal */
.gx-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  max-width: 560px;
  margin: 32px auto 0;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--gx-ease), transform 0.6s var(--gx-ease);
}

.gx-metrics.is-visible {
  opacity: 1;
  transform: none;
}

.gx-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: rgba(245, 245, 247, 0.55);
}

.gx-metric-icon {
  color: rgba(245, 245, 247, 0.35);
  display: flex;
}

.gx-metric-num {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: #f5f5f7;
  font-variant-numeric: tabular-nums;
}

.gx-metric-label {
  color: rgba(245, 245, 247, 0.45);
}

.gx-pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  max-width: 640px;
  margin: 20px auto 0;
  padding: 0 8px;
}

.gx-pillar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(245, 245, 247, 0.4);
}

.gx-pillar .icon-xs {
  color: rgba(200, 240, 49, 0.55);
}

@media (max-width: 560px) {
  .gx-metrics {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .gx-metric { justify-content: center; }
  .gx-pillars { flex-direction: column; align-items: center; }
}

.gx-page-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 48px;
  font-size: 0.78rem;
  color: rgba(245, 245, 247, 0.35);
}

.gx-page-foot a {
  color: inherit;
  text-decoration: none;
  margin-left: 14px;
}

.gx-page-foot a:hover {
  color: var(--text);
}

.gx-page-foot-minimal {
  margin-top: auto;
  padding-top: 32px;
  opacity: 0.45;
  font-size: 0.78rem;
}

@keyframes gx-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Inner pages (pricing, projects, templates) ── */

.gx-page-head {
  margin-bottom: 28px;
  animation: gx-fade-up 0.6s var(--gx-ease) both;
}

.gx-page-head h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gx-page-head .hero-sub,
.gx-page-head p {
  margin: 0;
  color: rgba(245, 245, 247, 0.5);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.55;
}

.gx-app .pricing-hero,
.gx-app .projects-head,
.gx-app .templates-hero {
  margin-bottom: 28px;
}

.gx-app .pricing-hero h1,
.gx-app .projects-head h1,
.gx-app .templates-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gx-app .pricing-grid,
.gx-app .projects-grid,
.gx-app .templates-grid {
  animation: gx-fade-up 0.6s var(--gx-ease) 0.1s both;
}

.gx-app .project-card,
.gx-app .price-card,
.gx-app .template-card {
  border-radius: var(--gx-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--gx-glass);
  backdrop-filter: blur(16px);
  transition: transform 0.3s var(--gx-ease), border-color 0.3s, box-shadow 0.3s;
}

.gx-app .project-card:hover,
.gx-app .price-card:hover,
.gx-app .template-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 240, 49, 0.18);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.gx-app .filter-btn,
.gx-app .templates-tab {
  border-radius: 999px;
  transition: all 0.2s var(--gx-ease);
}

.gx-app .filter-btn.active,
.gx-app .templates-tab.active {
  background: var(--gx-lime-soft);
  border-color: rgba(200, 240, 49, 0.25);
  color: var(--gx-lime);
}

.gx-app .faq-item,
.gx-app .pricing-faq {
  border-radius: var(--gx-radius-lg);
}

.gx-app .faq-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 8px;
  padding: 4px 16px;
}

.gx-app .projects-login-card,
.gx-app .settings-main .settings-card {
  border-radius: var(--gx-radius-xl);
  border: 1px solid var(--gx-glass-border);
  background: var(--gx-glass);
  backdrop-filter: blur(20px);
}

.gx-app .btn-primary {
  background: var(--gx-lime);
  color: #0a0a0a;
  border: none;
  box-shadow: none;
  transition: opacity 0.2s;
}

.gx-app .btn-primary:hover {
  opacity: 0.9;
  transform: none;
  box-shadow: none;
}

.gx-app .btn-ghost {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.gx-app .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
}

/* Editor ambient */
.editor-body {
  background: transparent !important;
}

.editor-body .editor-shell {
  position: relative;
  z-index: 1;
}

.editor-body .editor-sidebar {
  background: linear-gradient(180deg, rgba(12, 12, 16, 0.9), rgba(8, 8, 10, 0.65)) !important;
  backdrop-filter: blur(28px);
  border-right-color: rgba(255, 255, 255, 0.05) !important;
}

.editor-body .editor-toolbar {
  background: rgba(10, 10, 12, 0.75) !important;
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

/* Responsive */
@media (max-width: 960px) {
  :root {
    --gx-sidebar-w: 0px;
  }

  .gx-sidebar {
    transform: translateX(-100%);
    width: min(280px, 88vw);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
  }

  .gx-shell.is-mobile-open .gx-sidebar {
    transform: none;
    width: min(280px, 88vw);
  }

  .gx-shell.is-mobile-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
  }

  .gx-main {
    margin-left: 0;
    padding: 56px 14px 24px;
  }

  .gx-home .gx-main.gx-home-main {
    width: 100vw;
    margin-left: 0;
    padding: 0;
  }

  .gx-home-fx,
  .gx-home-stage {
    left: 0 !important;
  }

  .gx-home-stage {
    padding: 72px 16px 24px;
  }

  .gx-mobile-menu-btn {
    display: flex !important;
  }
}

.gx-mobile-menu-btn {
  display: none;
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 45;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 480px) {
  .gx-greeting { font-size: 1.55rem; }
}

/* Inner page extras */
.gx-app .page,
.gx-app main {
  max-width: none;
  padding: 0;
}

.gx-app .footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(245, 245, 247, 0.35);
  font-size: 0.78rem;
}

.gx-app .cta-band {
  margin-top: 48px;
  padding: 28px 32px;
  border-radius: var(--gx-radius-xl);
  border: 1px solid rgba(200, 240, 49, 0.12);
  background: linear-gradient(135deg, rgba(200, 240, 49, 0.06), rgba(155, 109, 255, 0.06));
  backdrop-filter: blur(16px);
}

.gx-app .pricing-faq h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.gx-app .eyebrow {
  color: var(--gx-lime);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gx-app .modal-overlay,
.gx-app .detail-overlay,
.gx-home .login-gate,
.gx-app .login-gate {
  z-index: 200;
}

.gx-app .detail-panel,
.gx-app .modal {
  background: rgba(14, 14, 18, 0.92);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--gx-radius-lg);
}

.gx-app .projects-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  animation: gx-fade-up 0.6s var(--gx-ease) both;
}

.gx-app .templates-shell {
  max-width: none;
  padding: 0;
}

.gx-app .settings-main {
  animation: gx-fade-up 0.6s var(--gx-ease) both;
}

.gx-app .billing-success-card {
  border-radius: var(--gx-radius-xl);
  border: 1px solid var(--gx-glass-border);
  background: var(--gx-glass);
  backdrop-filter: blur(20px);
  padding: 48px 32px;
  text-align: center;
  max-width: 480px;
  margin: 40px auto;
  animation: gx-fade-up 0.6s var(--gx-ease) both;
}

/* ═══════════════════════════════════════════════════════════════
   Editor v2 — Lork-style toolbar
   ═══════════════════════════════════════════════════════════════ */

.editor-body .editor-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  height: 100dvh;
}

.editor-body.editor-no-sidebar .editor-shell,
.editor-body .editor-shell.editor-shell--full {
  grid-template-columns: minmax(0, 1fr) !important;
}

.editor-body.editor-no-sidebar .editor-sidebar {
  display: none !important;
}

.gx-ebar-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(200, 240, 49, 0.15);
  background: rgba(200, 240, 49, 0.05);
  color: rgba(200, 240, 49, 0.85);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.gx-ebar-back:hover {
  background: rgba(200, 240, 49, 0.12);
  border-color: rgba(200, 240, 49, 0.3);
  color: var(--gx-lime);
}

.gx-ebar-mode-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-left: 4px;
}

.gx-ebar-mode-tabs .mode-tab {
  padding: 5px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgba(245, 245, 247, 0.5);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.gx-ebar-mode-tabs .mode-tab.active {
  background: rgba(200, 240, 49, 0.14);
  color: var(--gx-lime);
}

.compose-header--compact h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.compose-header--compact p {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: rgba(245, 245, 247, 0.45);
}

.gx-bot-compose {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gx-bot-hint {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: rgba(200, 240, 49, 0.45);
}

.gx-bot-toolbar {
  background: rgba(4, 10, 6, 0.95) !important;
  border-bottom: 1px solid rgba(200, 240, 49, 0.12) !important;
  padding: 8px 10px !important;
}

.gx-bot-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid rgba(200, 240, 49, 0.15);
  background: rgba(200, 240, 49, 0.06);
  color: rgba(200, 240, 49, 0.9);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.gx-bot-tool:hover {
  background: rgba(200, 240, 49, 0.12);
  border-color: rgba(200, 240, 49, 0.3);
}

.gx-bot-tool--icon {
  padding: 6px 9px;
  min-width: 32px;
  justify-content: center;
}

.gx-bot-tool .icon,
.gx-bot-tool .icon-xs {
  width: 14px;
  height: 14px;
}

.editor-body .bot-flow-root {
  border: 1px solid rgba(200, 240, 49, 0.1) !important;
  border-radius: 0 0 12px 12px !important;
  background: transparent !important;
}

.editor-body .editor-sidebar {
  width: 240px;
  flex-shrink: 0;
  padding: 12px !important;
}

.editor-body .gx-editor-bar {
  position: relative;
  z-index: 60;
  display: flex !important;
  grid-template-columns: unset !important;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 8, 10, 0.88) !important;
  backdrop-filter: blur(24px);
  min-height: 46px;
  flex-shrink: 0;
}

.editor-body .editor-nav-center,
.editor-body .toolbar-left .editor-mobile-tabs,
.editor-body .toolbar-meta .toolbar-badge {
  display: none !important;
}

.gx-ebar-left,
.gx-ebar-center,
.gx-ebar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.gx-ebar-center {
  flex: 1;
  justify-content: flex-start;
  max-width: none;
}
.gx-ebar-right {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.gx-ebar-logo {
  display: flex;
  align-items: center;
  margin-right: 4px;
  flex-shrink: 0;
}
.gx-ebar-logo .logo-img { height: 24px; width: auto; }

.gx-ebar-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gx-ebar-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(245, 245, 247, 0.5);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.gx-ebar-tab.is-disabled,
.gx-ebar-tab:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gx-ebar-tab:hover { color: var(--text); }
.gx-ebar-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gx-ebar-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(245, 245, 247, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gx-ebar-refresh {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 245, 247, 0.6);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.gx-ebar-refresh:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.gx-ebar-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(245, 245, 247, 0.55);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 9px;
  transition: color 0.2s, background 0.2s;
}
.gx-ebar-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.gx-ebar-btn-ghost {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 245, 247, 0.75);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.gx-ebar-btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}
.gx-ebar-btn-ghost:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gx-ebar-btn-publish {
  padding: 6px 12px;
  border-radius: 9px;
  border: none;
  background: #fafafa;
  color: #0a0a0a;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
  box-shadow: none;
}

.gx-ebar-btn-publish:hover:not(:disabled) {
  opacity: 0.88;
  transform: none;
  box-shadow: none;
}
.gx-ebar-btn-publish:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.gx-ebar-profile .nav-profile { position: relative; }
.gx-ebar-profile .profile-trigger {
  padding: 4px 8px;
  min-height: 36px;
  border-radius: 10px;
}

.editor-body .editor-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.editor-body .editor-workspace {
  flex: 1;
  min-height: 0;
}

/* Editor view modes */
.editor-body.editor-view-preview .editor-compose,
.editor-body.editor-view-preview .editor-split-resizer {
  display: none !important;
}

.editor-body.editor-view-preview .editor-workspace-resizable {
  grid-template-columns: 1fr !important;
}

.editor-body.editor-view-build .editor-preview .preview-chrome {
  display: flex;
}

.gx-ebar-visual-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(200, 240, 49, 0.22);
  background: rgba(200, 240, 49, 0.06);
  color: rgba(200, 240, 49, 0.9);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.gx-ebar-visual-btn:hover:not(:disabled) {
  background: rgba(200, 240, 49, 0.12);
  border-color: rgba(200, 240, 49, 0.38);
  color: var(--gx-lime);
}

.gx-ebar-visual-btn.active {
  background: rgba(200, 240, 49, 0.16);
  border-color: rgba(200, 240, 49, 0.5);
  color: var(--gx-lime);
  box-shadow: 0 0 0 1px rgba(200, 240, 49, 0.15);
}

.gx-ebar-visual-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gx-ebar-visual-label {
  display: inline;
}

.editor-preview.is-visual-mode {
  overflow: visible !important;
}

.editor-preview.is-visual-mode .preview-frame-wrap {
  overflow: visible !important;
  background-color: #0a120e;
  background-image:
    linear-gradient(rgba(200, 240, 49, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 240, 49, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}

.editor-body.editor-code-open .editor-preview,
.editor-body.editor-code-open .editor-split-resizer {
  display: none !important;
}

.editor-body.editor-code-open #editor-code-panel {
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  grid-column: 3;
}

.editor-body.editor-code-open .editor-workspace-resizable {
  grid-template-columns: minmax(280px, 38%) minmax(0, 1fr) !important;
}

.preview-frame-wrap {
  position: relative;
  overflow: visible !important;
}

.gx-visual-popup {
  position: absolute;
  z-index: 60;
  pointer-events: auto;
  width: max-content;
  max-width: min(420px, calc(100% - 20px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.55));
}

.gx-visual-popup.hidden {
  display: none !important;
}

.gx-visual-popup .gx-visual-float-bar {
  margin-top: 0;
}

.gx-vf-opacity {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: rgba(200, 240, 49, 0.75);
  cursor: pointer;
  flex-shrink: 0;
}

.gx-vf-opacity:hover,
.gx-vf-opacity.is-open {
  background: rgba(200, 240, 49, 0.1);
  color: var(--gx-lime);
}

.gx-vf-opacity-pop {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(6, 12, 8, 0.98);
  border: 1px solid rgba(200, 240, 49, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  z-index: 10;
  white-space: nowrap;
}

.gx-vf-opacity.is-open .gx-vf-opacity-pop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gx-vf-opacity-pop input[type="range"] {
  width: 88px;
  accent-color: var(--gx-lime);
  cursor: pointer;
}

.gx-vf-opacity-val {
  font-size: 0.7rem;
  color: rgba(200, 240, 49, 0.7);
  min-width: 28px;
  text-align: right;
}

.gx-vf-color--fill .gx-vf-color-swatch {
  inset: 4px;
}

.gx-visual-float {
  position: relative;
  z-index: auto;
  pointer-events: auto;
  width: 100%;
  max-width: none;
  display: block;
}

.gx-preview-visual-bar .gx-visual-float-bar {
  margin-top: 0;
}

.gx-vf-color {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: transparent;
  color: rgba(200, 240, 49, 0.75);
  cursor: pointer;
  flex-shrink: 0;
}

.gx-vf-color:hover {
  background: rgba(200, 240, 49, 0.1);
  color: var(--gx-lime);
}

.gx-vf-color-swatch {
  position: absolute;
  inset: 5px;
  border-radius: 5px;
  background: var(--swatch, #fff);
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  z-index: 0;
}

.gx-vf-color .icon,
.gx-vf-color .icon-xs {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.8));
  pointer-events: none;
}

.gx-vf-color input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: none;
  padding: 0;
  cursor: pointer;
}

.gx-visual-float.hidden {
  display: none !important;
}

.gx-visual-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(200, 240, 49, 0.15);
  border: 1px solid rgba(200, 240, 49, 0.35);
  color: var(--gx-lime);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.gx-visual-tag:active {
  cursor: grabbing;
}

.gx-compose-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  padding: 10px 12px 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.gx-agent-box--pretty .compose-input-site {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 64px;
  padding: 6px 4px 10px !important;
  font-size: 0.95rem;
  line-height: 1.45;
}

.gx-agent-box--pretty .gx-agent-toolbar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
  margin-top: 2px;
}

.gx-agent-box--pretty .gx-agent-send {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  padding: 0;
}

.gx-agent-box--pretty .gx-agent-send .btn-text {
  display: grid;
  place-items: center;
}

.compose-slug-label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(161, 161, 170, 0.9);
}

.editor-body.editor-bolt .gx-compose-advanced {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.gx-visual-float-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 6px;
  border-radius: 14px;
  background: rgba(6, 12, 8, 0.97);
  border: 1px solid rgba(200, 240, 49, 0.18);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(200, 240, 49, 0.06);
  flex-wrap: nowrap;
  backdrop-filter: blur(16px);
}

.gx-vf-ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: none;
  border-radius: 10px;
  background: rgba(200, 240, 49, 0.1);
  color: var(--gx-lime);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.gx-vf-ai:hover {
  background: rgba(200, 240, 49, 0.18);
}

.gx-vf-divider {
  width: 1px;
  height: 22px;
  background: rgba(200, 240, 49, 0.15);
  margin: 0 2px;
}

.gx-vf-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: rgba(200, 240, 49, 0.75);
  cursor: pointer;
  flex-shrink: 0;
}

.gx-vf-icon .icon,
.gx-vf-icon .icon-xs,
.gx-vf-icon .icon-sm {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.gx-vf-icon:hover {
  background: rgba(200, 240, 49, 0.1);
  color: var(--gx-lime);
}

.gx-vf-icon input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: none;
  padding: 0;
  cursor: pointer;
}

.gx-vf-icon:has(input[type="color"]) .icon,
.gx-vf-icon:has(input[type="color"]) .icon-xs {
  pointer-events: none;
}

.gx-vf-close {
  margin-left: 2px;
}

.gx-element-ai-pop {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(6, 12, 8, 0.98);
  border: 1px solid rgba(200, 240, 49, 0.15);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
  width: 100%;
  box-sizing: border-box;
}

.gx-element-ai-pop.hidden {
  display: none !important;
}

.gx-element-ai-pop input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(200, 240, 49, 0.15);
  background: rgba(0, 0, 0, 0.35);
  font: inherit;
  font-size: 0.82rem;
  color: #e8f0ea;
}

.gx-element-ai-pop input::placeholder {
  color: rgba(200, 240, 49, 0.35);
}

.gx-vf-ai-submit {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: var(--gx-lime);
  color: #0a0c0a;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.gx-vf-ai-submit:hover {
  opacity: 0.92;
}

.editor-body.editor-view-code .editor-compose,
.editor-body.editor-view-code .editor-preview,
.editor-body.editor-view-code .editor-split-resizer {
  display: none !important;
}

.editor-body.editor-view-code .editor-workspace-resizable {
  grid-template-columns: 1fr !important;
}

.editor-body.editor-view-code #editor-code-panel {
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  grid-column: 1 / -1;
}

.editor-panel.editor-code {
  display: none;
  flex-direction: column;
  min-height: 0;
  background: rgba(6, 6, 8, 0.6);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.gx-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.gx-code-file {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(245, 245, 247, 0.75);
}

.gx-code-status {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(245, 245, 247, 0.4);
  margin-left: 6px;
}

.gx-code-actions {
  display: flex;
  gap: 6px;
}

.gx-code-btn {
  padding: 6px 10px !important;
  font-size: 0.74rem !important;
}

.gx-code-view {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 16px 18px;
  overflow: auto;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(220, 255, 180, 0.9);
  background: rgba(0, 0, 0, 0.35);
  scrollbar-width: thin;
}

.gx-code-view code {
  white-space: pre-wrap;
  word-break: break-word;
}

#editor-code-panel.is-loading .gx-code-view {
  opacity: 0.45;
}

.gx-ebar-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 245, 247, 0.65);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.gx-ebar-icon-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.gx-ebar-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.editor-body .preview-chrome {
  padding: 0;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  flex-shrink: 0;
}

.preview-chrome-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
}

.preview-chrome-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.gx-preview-visual-toggle {
  flex-shrink: 0;
}

.gx-preview-visual-bar {
  padding: 8px 12px 10px;
  border-top: 1px solid rgba(200, 240, 49, 0.1);
  background: rgba(4, 10, 6, 0.98);
}

.gx-preview-visual-bar.hidden {
  display: none !important;
}

.gx-preview-visual-hint {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(200, 240, 49, 0.45);
}

.gx-preview-visual-hint.hidden {
  display: none;
}

#gx-visual-tools.hidden {
  display: none !important;
}

.preview-chrome-left .gx-visual-tag {
  margin: 0;
  flex-shrink: 0;
}

.preview-chrome-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-chrome-actions .btn-editor-prominent.active {
  background: rgba(200, 240, 49, 0.12);
  border-color: rgba(200, 240, 49, 0.35);
  color: var(--gx-lime);
}

.editor-body .visual-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.editor-body .visual-toolbar.hidden {
  display: none !important;
}

.visual-toolbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.visual-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(245, 245, 247, 0.85);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.visual-icon-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.visual-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.visual-color-btn {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: pointer;
}

.visual-color-btn input[type="color"] {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border: none;
  padding: 0;
  cursor: pointer;
}

[data-gx-tip] {
  position: relative;
}

[data-gx-tip]::after {
  content: attr(data-gx-tip);
  position: absolute;
  z-index: 80;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(18, 18, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(245, 245, 247, 0.92);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  max-width: 220px;
  white-space: normal;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s var(--gx-ease), transform 0.18s var(--gx-ease), visibility 0.18s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

[data-gx-tip]:hover::after,
[data-gx-tip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

[data-gx-tip-pos="bottom"]::after {
  bottom: auto;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-4px);
}

[data-gx-tip-pos="bottom"]:hover::after,
[data-gx-tip-pos="bottom"]:focus-visible::after {
  transform: translateX(-50%) translateY(0);
}

.plan-gate-card {
  text-align: center;
}

.plan-gate-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gx-lime);
  background: rgba(200, 240, 49, 0.1);
  border: 1px solid rgba(200, 240, 49, 0.22);
}

.plan-gate-actions {
  flex-direction: column;
  gap: 8px;
}

.plan-gate-actions .btn-primary,
.plan-gate-actions .btn-ghost {
  width: 100%;
  justify-content: center;
}

.gx-publish-domain-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(200, 240, 49, 0.25);
  background: rgba(200, 240, 49, 0.08);
  color: var(--gx-lime);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--gx-ease), border-color 0.2s var(--gx-ease);
}

.gx-publish-domain-btn:hover {
  background: rgba(200, 240, 49, 0.14);
  border-color: rgba(200, 240, 49, 0.4);
}

.gx-publish-slug-link {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  color: rgba(200, 240, 49, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gx-publish-slug-link:hover {
  color: var(--gx-lime);
}

/* Publish modal */
.gx-publish-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.gx-publish-overlay.hidden {
  display: none !important;
}

.gx-publish-overlay:not(.hidden) {
  display: flex;
}

.gx-publish-card {
  width: min(440px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 14, 18, 0.95);
  backdrop-filter: blur(24px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: gx-fade-up 0.35s var(--gx-ease) both;
}

.gx-publish-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gx-publish-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.gx-publish-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gx-publish-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(245, 245, 247, 0.5);
}

.gx-publish-url-row {
  display: flex;
  gap: 8px;
}

.gx-publish-url-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
}

.gx-publish-copy {
  width: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.gx-publish-domain-lock {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.gx-publish-domain-lock p {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: rgba(245, 245, 247, 0.45);
}

.gx-publish-foot {
  padding: 14px 18px 18px;
}

.gx-publish-foot .gx-ebar-btn-publish {
  width: 100%;
  padding: 12px;
  font-size: 0.9rem;
}

.editor-body .bot-node {
  border-radius: 12px !important;
  background: rgba(8, 14, 10, 0.95) !important;
  border: 1px solid rgba(200, 240, 49, 0.16) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.editor-body .bot-node.is-selected {
  border-color: rgba(200, 240, 49, 0.5) !important;
  box-shadow: 0 0 0 1px rgba(200, 240, 49, 0.25), 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}

.editor-body .bot-node-title,
.editor-body .bot-node-text {
  background: rgba(0, 0, 0, 0.25) !important;
  border-color: rgba(200, 240, 49, 0.12) !important;
}

.editor-body .bot-node-start-badge {
  background: rgba(200, 240, 49, 0.15) !important;
  color: var(--gx-lime) !important;
}

@media (max-width: 900px) {
  .gx-ebar-center { display: none; }
  .gx-ebar-mode-tabs .mode-tab { padding: 5px 8px; font-size: 0.7rem; }
  .gx-ebar-visual-label { display: none; }
  .gx-ebar-btn-publish { padding: 7px 11px; font-size: 0.74rem; }
  .gx-ebar-visual-btn { padding: 6px 9px; }
  .gx-visual-popup { max-width: calc(100% - 12px); }
  .gx-visual-popup .gx-vf-ai { font-size: 0.72rem; padding: 6px 8px; }
  .gx-vf-ai { padding: 7px 9px; font-size: 0.72rem; }
  .gx-home-main { padding: 0; }
  .gx-home-stage { padding: 72px 16px 24px; }
  .gx-home-showcase { grid-template-columns: 1fr; }
  .gx-composer-zone { max-width: 100%; }
}

/* Auth gate */
.auth-gate-card { max-width: 420px; }
.auth-gate-sub { margin: 0 0 16px !important; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.auth-tab {
  border: none;
  border-radius: 9px;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(245, 245, 247, 0.55);
  background: transparent;
  cursor: pointer;
}
.auth-tab.active {
  color: #f5f5f7;
  background: rgba(200, 240, 49, 0.12);
  box-shadow: inset 0 0 0 1px rgba(200, 240, 49, 0.2);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: #f5f5f7;
  font: inherit;
  box-sizing: border-box;
}
.auth-error {
  margin: 0;
  font-size: 0.8rem;
  color: #f87171;
}
.auth-hint {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(200, 240, 49, 0.85);
}
.auth-phone-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.auth-phone-country-wrap {
  position: relative;
  flex: 0 0 auto;
  min-width: 108px;
}
.auth-phone-flag {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 1;
}
.auth-phone-country {
  width: 100%;
  height: 100%;
  padding: 12px 10px 12px 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: #f5f5f7;
  font: inherit;
  appearance: none;
  cursor: pointer;
}
.auth-phone-input {
  flex: 1;
  min-width: 0;
}
.auth-code-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.auth-code-input {
  flex: 1;
  min-width: 0;
  letter-spacing: 0.15em;
  font-variant-numeric: tabular-nums;
}
.auth-send-code {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 10px 12px;
  font-size: 0.8rem;
}
.gx-notifications {
  position: relative;
  flex-shrink: 0;
}
.gx-notif-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 245, 247, 0.85);
  cursor: pointer;
  position: relative;
}
.gx-notif-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.gx-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #c8f031;
  color: #0a0a0c;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.gx-notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, 88vw);
  max-height: 360px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  z-index: 600;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.gx-notif-panel:not(.hidden) {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.gx-notif-panel.is-positioned:not(.hidden) {
  transform: translateY(0) scale(1);
}
.gx-notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}
.gx-notif-read-all {
  border: none;
  background: none;
  color: #c8f031;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.gx-notif-list {
  overflow-y: auto;
  padding: 6px;
}
.gx-notif-empty {
  margin: 16px;
  text-align: center;
  color: rgba(245, 245, 247, 0.45);
  font-size: 0.85rem;
}
.gx-notif-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}
.gx-notif-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.gx-notif-item.is-unread {
  background: rgba(200, 240, 49, 0.06);
}
.gx-notif-item-title {
  font-size: 0.85rem;
  font-weight: 600;
}
.gx-notif-item-body {
  font-size: 0.75rem;
  color: rgba(245, 245, 247, 0.55);
}
.gx-notif-item-time {
  font-size: 0.7rem;
  color: rgba(245, 245, 247, 0.35);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: rgba(245, 245, 247, 0.35);
  font-size: 0.75rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.btn-telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
}
.auth-hint { margin: 12px 0 0 !important; font-size: 0.75rem !important; text-align: center; }
.profile-login-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(200, 240, 49, 0.25);
  background: rgba(200, 240, 49, 0.1);
  color: var(--gx-lime);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.domains-search {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 20px 0;
}
.domains-search input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: #f5f5f7;
  font: inherit;
}
.domains-result {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(200, 240, 49, 0.15);
  background: rgba(8, 14, 10, 0.75);
  max-width: 520px;
}

/* Зелёное выделение текста и фокуса */
.gx-app ::selection,
.gx-home ::selection,
.editor-body ::selection {
  background: rgba(200, 240, 49, 0.38);
  color: #0a0a0a;
}

.gx-app .project-card:hover,
.gx-app .project-card:focus-within {
  border-color: rgba(200, 240, 49, 0.35);
  box-shadow: 0 0 0 1px rgba(200, 240, 49, 0.12);
}

.gx-app .filter-btn.active,
.gx-app .templates-tab.active {
  color: var(--gx-lime);
  border-color: rgba(200, 240, 49, 0.35);
  box-shadow: 0 0 0 1px rgba(200, 240, 49, 0.15);
}

.detail-log-wrap.detail-log-error {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
}

.detail-log-hint {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: #fca5a5;
  line-height: 1.45;
}

.gx-app .btn-editor-prominent {
  box-shadow: 0 0 0 1px rgba(200, 240, 49, 0.2);
}

.gx-app .btn-editor-prominent:hover {
  box-shadow: 0 0 24px rgba(200, 240, 49, 0.22);
}

/* ── Editor Bolt-style chat panel ── */
.gx-editor-compose {
  display: flex !important;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden !important;
  background: #070708 !important;
  border-right-color: rgba(255, 255, 255, 0.06) !important;
}

.gx-chat-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-bottom: none;
  background: #070708;
}

.gx-chat-log {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.gx-chat-log::-webkit-scrollbar {
  width: 8px;
}

.gx-chat-log::-webkit-scrollbar-track {
  background: transparent;
}

.gx-chat-log::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.gx-chat-log .chat-empty {
  margin: auto;
  max-width: 280px;
  text-align: center;
  padding: 24px 12px;
}

.chat-empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #b8ff3b;
  background: rgba(184, 255, 59, 0.08);
  border: 1px solid rgba(184, 255, 59, 0.16);
}

.chat-empty-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f4f4f5;
}

.chat-empty-text {
  margin: 0;
  color: rgba(161, 161, 170, 0.9);
  font-size: 0.82rem;
  line-height: 1.5;
}

.gx-chat-log .chat-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
  animation: gx-chat-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.gx-chat-log .chat-user {
  flex-direction: row-reverse;
  align-self: stretch;
}

.gx-chat-log .chat-assistant {
  align-self: stretch;
}

.chat-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
  overflow: hidden;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-avatar--user {
  background: rgba(184, 255, 59, 0.14);
  color: #b8ff3b;
  border: 1px solid rgba(184, 255, 59, 0.2);
}

.chat-avatar--user .icon {
  width: 15px;
  height: 15px;
}

.chat-avatar--giamix,
.chat-assistant .chat-avatar {
  background: rgba(255, 255, 255, 0.06);
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
}

.chat-user .chat-avatar {
  background: rgba(184, 255, 59, 0.14);
  color: #b8ff3b;
  border: 1px solid rgba(184, 255, 59, 0.2);
}

.chat-bubble {
  min-width: 0;
  max-width: min(92%, 420px);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.chat-user .chat-bubble {
  background: rgba(184, 255, 59, 0.1);
  border-color: rgba(184, 255, 59, 0.18);
}

.chat-assistant .chat-bubble {
  background: rgba(255, 255, 255, 0.04);
}

.chat-status .chat-bubble {
  background: transparent;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.1);
}

.gx-chat-log .chat-role {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(161, 161, 170, 0.85);
  margin-bottom: 4px;
}

.gx-chat-log .chat-assistant .chat-role {
  color: #b8ff3b;
}

.chat-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(244, 244, 245, 0.92);
  word-break: break-word;
}

.chat-text a {
  color: #b8ff3b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-thinking .chat-bubble {
  padding: 12px 14px;
}

.chat-thinking-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-thinking-label {
  font-size: 0.85rem;
  color: rgba(212, 212, 216, 0.92);
}

.chat-thinking-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.chat-thinking-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8ff3b;
  display: block;
  animation: gx-think-dot 1.1s infinite ease-in-out;
}

.chat-thinking-dots i:nth-child(2) { animation-delay: 0.15s; }
.chat-thinking-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes gx-think-dot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.gx-compose-dock {
  flex-shrink: 0;
  max-height: 46%;
  overflow-y: auto;
  padding: 12px 14px 14px;
  background: rgba(8, 8, 10, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.35);
}

.gx-compose-dock .compose-header--compact h2 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.gx-compose-dock .compose-header--compact p {
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.gx-compose-dock .compose-input-site {
  min-height: 72px;
}

.compose-drop-zone.compose-drop-active {
  outline: 2px dashed rgba(184, 255, 59, 0.55) !important;
  outline-offset: 3px;
  border-radius: 14px;
  background: rgba(184, 255, 59, 0.04);
}

@keyframes gx-chat-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Agent mode: hide bulky dock chrome while generating */
body.gen-active #gen-stepper,
body.gen-active .compose-steps-hint,
body.gen-active .gx-compose-advanced,
body.gen-active .compose-site-hint,
body.gen-active #site-attach-hint {
  display: none !important;
}

body.gen-active .gx-compose-dock {
  max-height: none;
  padding-top: 10px;
}

body.interview-active .gx-compose-dock {
  max-height: 58%;
}

/* ── Inner pages (projects, templates, pricing legacy) ── */
.gx-app .projects-head h1,
.gx-app .gx-page-head h1,
.gx-app .templates-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gx-app .projects-head,
.gx-app .gx-page-head,
.gx-app .templates-hero {
  margin-bottom: 24px;
}

.gx-app .project-card,
.gx-app .templates-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(16px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.gx-app .project-card:hover,
.gx-app .templates-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 255, 59, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.gx-app .filter-btn.active,
.gx-app .templates-tab.active {
  background: rgba(184, 255, 59, 0.12);
  border-color: rgba(184, 255, 59, 0.25);
  color: #b8ff3b;
}

.gx-app .price-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(16px);
}

.gx-app .price-card.popular {
  border-color: rgba(184, 255, 59, 0.2);
  box-shadow: 0 0 48px rgba(184, 255, 59, 0.06);
}

.editor-workspace-resizable {
  --compose-width: 42%;
}

/* ── Projects page (premium) ── */
.gx-app .projects-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gx-app .projects-hero {
  padding: 24px 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.gx-app .projects-eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b8ff3b;
}

.gx-app .projects-hero .projects-head {
  margin-bottom: 0;
}

.gx-app .projects-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.gx-app .projects-hero .hero-sub {
  margin: 0;
  max-width: 520px;
  color: rgba(161, 161, 170, 0.95);
  line-height: 1.55;
}

.gx-app .projects-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gx-app .projects-filters {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  width: fit-content;
}

.gx-app .projects-filters .filter-btn {
  border: none;
  background: transparent;
  color: rgba(161, 161, 170, 0.95);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
}

.gx-app .projects-filters .filter-btn.active {
  background: linear-gradient(135deg, rgba(184, 255, 59, 0.9), rgba(124, 255, 91, 0.85));
  color: #0a0a0a;
  box-shadow: 0 4px 16px rgba(184, 255, 59, 0.2);
}

.gx-app .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.gx-app .project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  min-height: 280px;
}

.gx-app .project-card-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 88px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(184, 255, 59, 0.05));
}

.gx-app .project-card-emoji {
  font-size: 1.75rem;
  line-height: 1;
}

.gx-app .project-card-kind {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(184, 255, 59, 0.85);
}

.gx-app .project-card-visual .status-badge {
  margin-left: auto;
}

.gx-app .project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.gx-app .project-card .card-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

.gx-app .project-card .card-desc {
  margin: 0 0 10px;
  color: rgba(161, 161, 170, 0.95);
  font-size: 0.84rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gx-app .project-card .card-meta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.74rem;
  color: rgba(113, 113, 122, 0.95);
}

.gx-app .project-card .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.gx-app .projects-login-card {
  padding: 32px;
  text-align: center;
}

.gx-app .projects-empty {
  padding: 48px 24px;
  text-align: center;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

/* ── Editor attachments (preview on top) ── */
.gx-compose-dock .attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  border: none;
  background: transparent;
}

.gx-compose-dock .attachment-chip {
  padding: 0;
  border: none;
  background: transparent;
}

.gx-compose-dock .attachment-chip-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.gx-compose-dock .attachment-chip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gx-compose-dock .attachment-chip-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gx-compose-dock .attachment-chip-remove:hover {
  background: rgba(239, 68, 68, 0.9);
}

.gx-compose-dock .attachment-chip-name {
  font-size: 0.75rem;
  color: rgba(161, 161, 170, 0.95);
}

.compose-slug-status {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: rgba(161, 161, 170, 0.95);
}

.compose-slug-status.is-ok {
  color: #b8ff3b;
}

.compose-slug-status.is-bad {
  color: #fb7185;
}

.compose-slug-status.is-checking {
  color: rgba(212, 212, 216, 0.85);
}

/* ── Editor layout polish ── */
html:has(body.editor-body),
body.editor-body {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background: #050505;
}

.editor-body .editor-shell.editor-shell--full {
  display: flex !important;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.editor-body .gx-editor-bar {
  flex-shrink: 0;
  padding: 8px 14px;
  gap: 10px;
}

.editor-body .gx-ebar-left {
  flex: 0 1 auto;
  min-width: 0;
}

.editor-body .gx-ebar-center {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 8px;
}

.editor-body .gx-ebar-right {
  flex: 0 0 auto;
}

.editor-body .gx-ebar-mode-tabs {
  flex-shrink: 0;
}

.editor-body .gx-ebar-mode-tabs .mode-tab.active {
  background: linear-gradient(135deg, rgba(184, 255, 59, 0.85), rgba(124, 255, 91, 0.75));
  color: #0a0a0a;
}

.editor-body .editor-workspace {
  flex: 1;
  min-height: 0;
  display: grid;
}

.editor-body .gx-editor-compose {
  height: 100%;
  min-height: 0;
  padding: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.editor-body .gx-chat-panel {
  flex: 1 1 55%;
  min-height: 120px;
}

.editor-body .gx-compose-dock {
  flex: 0 0 auto;
  max-height: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(16px);
}

.editor-body .gx-compose-dock .compose-input-site {
  min-height: 96px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.editor-body .gx-compose-dock .compose-actions {
  margin-top: 12px;
}

.editor-body .gx-compose-dock .btn-primary {
  background: linear-gradient(135deg, #b8ff3b, #7cff5b);
  color: #0a0a0a;
  border: none;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(184, 255, 59, 0.22);
}

@media (max-width: 960px) {
  .editor-body .gx-chat-panel {
    flex: 0 0 auto;
    max-height: 38vh;
  }

  .gx-app .projects-hero {
    padding: 18px 16px;
  }

  .gx-app .projects-head {
    flex-direction: column;
  }

  .gx-app .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Editor Bolt.new style ── */
.editor-body.editor-bolt .gx-editor-bar {
  padding: 10px 16px;
  min-height: 52px;
  background: rgba(5, 5, 5, 0.92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.editor-body.editor-bolt .gx-ebar-back {
  display: none;
}

.editor-body.editor-bolt .gx-ebar-title {
  font-size: 0.9rem;
  color: rgba(244, 244, 245, 0.85);
}

.editor-body.editor-bolt .editor-workspace-resizable {
  --compose-width: 46%;
}

.editor-body.editor-bolt .gx-chat-panel {
  flex: 1 1 auto;
  min-height: 0;
  background: #070708;
  border-bottom: none;
}

.editor-body.editor-bolt .gx-chat-log {
  padding: 20px 16px 16px;
  gap: 14px;
}

.editor-body.editor-bolt .gx-chat-log .chat-item {
  max-width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font-size: inherit;
}

.editor-body.editor-bolt .gx-chat-log .chat-user,
.editor-body.editor-bolt .gx-chat-log .chat-assistant {
  background: transparent;
  border: none;
}

.editor-body.editor-bolt .gx-compose-dock {
  padding: 12px 14px 16px;
  background: transparent;
  border-top: none;
  box-shadow: none;
  max-height: none;
}

.editor-body.editor-bolt .gx-agent-box {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 18, 20, 0.96);
  padding: 10px 12px 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.editor-body.editor-bolt .gx-agent-box .compose-input-site {
  min-height: 56px !important;
  max-height: 140px;
  margin: 0;
  padding: 10px 4px 8px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  resize: none;
}

.editor-body.editor-bolt .gx-agent-box .compose-input-site:focus {
  outline: none;
  border: none !important;
  box-shadow: none !important;
}

.editor-body.editor-bolt .gx-bot-token {
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-body.editor-bolt .gx-agent-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.editor-body.editor-bolt .gx-agent-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.editor-body.editor-bolt .gx-agent-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(161, 161, 170, 0.95);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.editor-body.editor-bolt .gx-agent-tool:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f4f4f5;
  border-color: rgba(255, 255, 255, 0.08);
}

.editor-body.editor-bolt .gx-agent-send {
  min-height: 36px !important;
  height: 36px;
  padding: 0 16px !important;
  border-radius: 12px !important;
  width: auto !important;
  font-size: 0.85rem !important;
  font-weight: 600;
}

.editor-body.editor-bolt .compose-actions {
  margin: 0;
}

.editor-body.editor-bolt .compose-hint {
  display: none;
}

.editor-body.editor-bolt .gx-compose-advanced {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.editor-body.editor-bolt .gx-compose-advanced.hidden {
  display: none !important;
}

.editor-body.editor-bolt .gen-leave-banner {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
  color: rgba(161, 161, 170, 0.95);
}

.editor-body.editor-bolt .gen-question-panel {
  border-radius: 16px;
  border: 1px solid rgba(184, 255, 59, 0.2);
  background: rgba(184, 255, 59, 0.05);
  margin-bottom: 10px;
  padding: 14px;
}

.editor-body.editor-bolt .gen-stepper,
.editor-body.editor-bolt .compose-steps-hint,
.editor-body.editor-bolt #compose-loading {
  display: none !important;
}

body.gen-active .gx-agent-box {
  opacity: 0.55;
  pointer-events: none;
}

body.interview-active .gx-agent-box {
  display: none;
}

.editor-body.editor-bolt .editor-workspace-resizable {
  --compose-width: 40%;
}

.editor-body.editor-bolt .gx-chat-log {
  padding: 24px 18px 20px;
}

.editor-body.editor-bolt .chat-empty-title {
  font-size: 1.05rem;
}

.editor-body.editor-bolt .chat-empty-text {
  font-size: 0.84rem;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Claude/Bolt-style expandable agent run ── */
.agent-run {
  align-items: flex-start;
  width: 100%;
}

.agent-run-avatar {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(184, 255, 59, 0.1);
  border: 1px solid rgba(184, 255, 59, 0.22);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.agent-run-orb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b8ff3b;
  box-shadow: 0 0 12px rgba(184, 255, 59, 0.55);
}

.agent-run.is-running .agent-run-orb {
  animation: agent-orb-pulse 1.4s ease-in-out infinite;
}

@keyframes agent-orb-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.55; }
  50% { transform: scale(1.15); opacity: 1; }
}

.agent-run-card {
  flex: 1;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(22, 22, 26, 0.95), rgba(12, 12, 14, 0.98));
  overflow: hidden;
}

.agent-run-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.agent-run-toggle:hover {
  background: rgba(255, 255, 255, 0.03);
}

.agent-run-chevron {
  display: grid;
  place-items: center;
  color: rgba(161, 161, 170, 0.95);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.agent-run.is-collapsed .agent-run-chevron {
  transform: rotate(-90deg);
}

.agent-run-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.agent-run-title {
  font-size: 0.9rem;
  font-weight: 560;
  color: #f4f4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-run-eta {
  margin-left: auto;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: rgba(161, 161, 170, 0.9);
  flex-shrink: 0;
}

.agent-run-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(184, 255, 59, 0.25);
  border-top-color: #b8ff3b;
  animation: agent-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.agent-run-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(184, 255, 59, 0.16);
  color: #b8ff3b;
  flex-shrink: 0;
}

@keyframes agent-spin {
  to { transform: rotate(360deg); }
}

.agent-run-body {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 12px 12px 34px;
  max-height: 280px;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.2s ease;
}

.agent-run.is-collapsed .agent-run-body {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-color: transparent;
}

.agent-run-hint {
  margin: 0 0 8px;
  font-size: 0.7rem;
  color: rgba(113, 113, 122, 0.95);
  letter-spacing: 0.02em;
}

.agent-run-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agent-run-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  opacity: 0.45;
}

.agent-run-step.is-active {
  opacity: 1;
}

.agent-run-step.is-done {
  opacity: 0.78;
}

.agent-run-step-mark {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  color: #b8ff3b;
  flex-shrink: 0;
}

.agent-run-step.is-done .agent-run-step-mark {
  border-color: rgba(184, 255, 59, 0.45);
  background: rgba(184, 255, 59, 0.12);
}

.agent-run-step-pulse {
  border-color: #b8ff3b;
  box-shadow: 0 0 0 0 rgba(184, 255, 59, 0.45);
  animation: agent-step-pulse 1.3s ease-out infinite;
}

@keyframes agent-step-pulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 255, 59, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(184, 255, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 255, 59, 0); }
}

.agent-run-step-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.agent-run-step-text strong {
  font-size: 0.82rem;
  font-weight: 560;
  color: #e4e4e7;
}

.agent-run-step-text span {
  font-size: 0.74rem;
  color: rgba(161, 161, 170, 0.9);
  line-height: 1.35;
}

.agent-run.is-done .agent-run-card {
  border-color: rgba(184, 255, 59, 0.22);
  background: linear-gradient(180deg, rgba(28, 36, 18, 0.55), rgba(12, 12, 14, 0.98));
}

.agent-run.is-done .agent-run-title {
  color: #d9ff8a;
}

.chat-done .chat-bubble {
  border-color: rgba(184, 255, 59, 0.2);
  background: rgba(184, 255, 59, 0.06);
}

.preview-placeholder-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f4f4f5;
}

.preview-placeholder-sub {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(161, 161, 170, 0.9);
  max-width: 240px;
  line-height: 1.45;
}

.editor-body.editor-bolt .preview-chrome-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(161, 161, 170, 0.85);
}

body.gen-active .preview-placeholder-title::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 50%;
  background: #b8ff3b;
  vertical-align: middle;
  animation: agent-orb-pulse 1.2s ease-in-out infinite;
}


