/* ==========================================
   GoldSite Builder CSS v20260520
   3-panel layout + moderator panel, responsive
   ========================================== */

/* ==============================================================================
   CREATE PAGE — CHAT VIEW (sidebar steps | chat area)
   ============================================================================== */
.gs-create__chat { height: calc(100vh - 72px); background: var(--blu-notte); display: flex; flex-direction: column; overflow: hidden; }
.gs-create__chat-layout { display: grid; grid-template-columns: 260px 1fr; height: 100%; max-width: 1100px; margin: 0 auto; width: 100%; overflow: hidden; }
.gs-create__sidebar { background: rgba(255,255,255,0.04); border-right: 1px solid rgba(255,255,255,0.08); padding: 24px 20px; display: flex; flex-direction: column; }
.gs-create__sidebar-title { font-family: 'Instrument Serif', serif; font-size: 1.25rem; color: var(--oro); margin: 0 0 24px 0; }
.gs-create__steps { list-style: none; padding: 0; margin: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.gs-create__step { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: rgba(255,255,255,0.45); font-size: 0.875rem; transition: all 0.2s; }
.gs-create__step--active { background: rgba(212,165,116,0.12); color: var(--oro); font-weight: 600; }
.gs-create__step--done { color: rgba(16,185,129,0.8); }
.gs-create__step-num { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; background: rgba(255,255,255,0.08); flex-shrink: 0; }
.gs-create__step--active .gs-create__step-num { background: var(--oro); color: var(--blu-notte); }
.gs-create__step--done .gs-create__step-num { background: #10b981; color: #fff; }
.gs-create__session-info { margin-top: auto; padding: 12px; background: rgba(255,255,255,0.04); border-radius: 8px; font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.gs-create__session-info code { color: rgba(255,255,255,0.5); font-size: 0.7rem; }
.gs-create__chat-area { display: flex; flex-direction: column; background: rgba(255,255,255,0.02); overflow: hidden; min-height: 0; height: 100%; }
.gs-create__messages { flex: 1 1 auto; overflow-y: auto; padding: 32px 40px; display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.gs-create__msg { display: flex; gap: 12px; max-width: 85%; }
.gs-create__msg--user { align-self: flex-end; flex-direction: row-reverse; }
.gs-create__msg--agent { align-self: flex-start; }
.gs-create__msg-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; background: rgba(255,255,255,0.08); }
.gs-create__msg--agent .gs-create__msg-avatar { background: rgba(212,165,116,0.15); }
.gs-create__msg--user .gs-create__msg-avatar { background: rgba(59,130,246,0.15); }
.gs-create__msg-bubble { padding: 14px 18px; border-radius: 16px; font-size: 0.9375rem; line-height: 1.55; color: #fff; }
.gs-create__msg--agent .gs-create__msg-bubble { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-bottom-left-radius: 4px; }
.gs-create__msg--user .gs-create__msg-bubble { background: var(--oro); color: var(--blu-notte); border-bottom-right-radius: 4px; font-weight: 500; }
.gs-create__input-bar { position: sticky; bottom: 0; z-index: 10; display: flex; gap: 8px; padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); flex-shrink: 0; }
.gs-create__input-bar input { flex: 1; padding: 12px 18px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; color: #fff; font-size: 0.9375rem; font-family: 'Inter', sans-serif; outline: none; transition: border-color 0.2s; }
.gs-create__input-bar input:focus { border-color: var(--oro); background: rgba(255,255,255,0.12); }
.gs-create__input-bar input::placeholder { color: rgba(255,255,255,0.3); }
.gs-create__send { width: 44px; height: 44px; border-radius: 12px; border: none; background: var(--oro); color: var(--blu-notte); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.gs-create__send:hover { background: #e6c460; transform: scale(1.05); }
.gs-create__send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.gs-typing-bubble { display: flex; align-items: center; gap: 5px; padding: 14px 18px; min-width: 60px; }
.gs-typing-bubble span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); animation: gsTyping 1.2s infinite ease-in-out; }
.gs-typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.gs-typing-bubble span:nth-child(3) { animation-delay: 0.4s; }
@keyframes gsTyping { 0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }
@media (max-width: 768px) {
  .gs-create__chat-layout { grid-template-columns: 1fr; }
  .gs-create__sidebar { display: none; }
  .gs-create__messages { padding: 20px 16px; }
  .gs-create__msg { max-width: 90%; }
  .gs-create__input-bar { padding: 12px 16px; }
}

@media (max-width: 480px) {
  .gs-create__chat { height: calc(100vh - 60px); }
}

/* --- CREATE PAGE --- */
.gs-create {
  min-height: calc(100vh - 72px);
  background: var(--blu-notte);
}
.gs-create__gate { max-width: 560px; margin: 0 auto; padding: 64px 24px 80px; }
.gs-create__gate-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.gs-create__badge { display: inline-block; padding: 6px 16px; background: rgba(212,165,116,0.15); color: var(--oro); border-radius: 20px; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 20px; }
.gs-create__title { font-family: 'Instrument Serif', serif; font-size: 2.5rem; color: #fff; margin-bottom: 16px; line-height: 1.15; }
.gs-create__subtitle { font-size: 1.0625rem; color: rgba(255,255,255,0.65); max-width: 460px; margin-bottom: 24px; line-height: 1.6; }
.gs-create__trust { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
.gs-create__trust li { font-size: 0.875rem; color: rgba(255,255,255,0.7); display: inline-flex; align-items: center; gap: 6px; }
.gs-create__price-card { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 20px 24px; margin-bottom: 32px; }
.gs-create__price-row { display: flex; justify-content: space-between; align-items: center; font-size: 1.125rem; color: #fff; }
.gs-create__price-row strong { font-family: 'Instrument Serif', serif; font-size: 2rem; color: var(--oro); }
.gs-create__price-note { font-size: 0.8125rem; color: rgba(255,255,255,0.45); margin-top: 8px; text-align: left; }
.gs-create__form { width: 100%; display: flex; flex-direction: column; gap: 18px; }
.gs-create__field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.gs-create__field label { font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.8); }
.gs-create__field input, .gs-create__field select { padding: 12px 16px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; color: #fff; font-size: 1rem; font-family: 'Inter', sans-serif; transition: border-color 0.2s; }
.gs-create__field input:focus, .gs-create__field select:focus { outline: none; border-color: var(--oro); background: rgba(255,255,255,0.12); }
.gs-create__field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23D4A574' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.gs-create__field select option { background: #0A2540; color: #fff; }
.gs-create__cta { width: 100%; padding: 16px; font-size: 1.125rem; margin-top: 8px; }
.gs-create__disclaimer { font-size: 0.75rem; color: rgba(255,255,255,0.35); text-align: center; margin-top: 8px; }
.gs-create__disclaimer a { color: var(--oro); text-decoration: underline; }

/* Loading */
.gs-create__loading { position: fixed; inset: 0; background: rgba(10,37,64,0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; z-index: 1000; color: #fff; }
.gs-create__spinner { width: 40px; height: 40px; border: 3px solid rgba(212,165,116,0.2); border-top-color: var(--oro); border-radius: 50%; animation: gsSpin 0.8s linear infinite; }
@keyframes gsSpin { to { transform: rotate(360deg); } }

/* ==============================================================================
   BUILD PAGE — 3 PANEL LAYOUT (sidebar | preview | moderator)
   ============================================================================== */
.gs-build { min-height: calc(100vh - 72px); }

.gs-build__layout {
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  height: calc(100vh - 72px);
}

/* --- Sidebar sezioni --- */
.gs-build__sidebar {
  background: #fff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.gs-build__sidebar-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.125rem;
  color: var(--blu-notte);
  padding: 16px 20px;
  margin: 0;
  border-bottom: 1px solid #e5e7eb;
}
.gs-build__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.gs-build__step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s;
  opacity: 0.5;
  pointer-events: none;
}
.gs-build__step--active,
.gs-build__step--done {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}
.gs-build__step--active {
  background: rgba(212,165,116,0.08);
  border-left: 3px solid var(--oro);
}
.gs-build__step--done {
  background: rgba(16,185,129,0.04);
}
.gs-build__step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: #f3f4f6;
  color: #9ca3af;
  flex-shrink: 0;
}
.gs-build__step--active .gs-build__step-num {
  background: var(--oro);
  color: var(--blu-notte);
}
.gs-build__step--done .gs-build__step-num {
  background: #10b981;
  color: #fff;
}
.gs-build__step-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blu-notte);
  flex: 1;
}
.gs-build__step-status {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #9ca3af;
}
.gs-build__step--active .gs-build__step-status {
  background: rgba(212,165,116,0.15);
  color: #b8860b;
}
.gs-build__step--done .gs-build__step-status {
  background: rgba(16,185,129,0.1);
  color: #065f46;
}

/* --- Preview --- */
.gs-build__preview {
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  min-width: 0;
}
.gs-build__preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.gs-build__preview-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.04em;
}
.gs-build__devices {
  display: flex;
  gap: 4px;
}
.gs-build__device {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: all 0.2s;
}
.gs-build__device--active {
  background: var(--blu-notte);
  border-color: var(--blu-notte);
  color: #fff;
}
.gs-build__device:hover {
  border-color: var(--oro);
}
.gs-build__iframe-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.gs-build__iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.gs-build__empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1rem;
  text-align: center;
  pointer-events: none;
}

/* --- Moderator Panel --- */
.gs-build__moderator {
  background: #fff;
  border-left: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.gs-build__moderator-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, rgba(212,165,116,0.08) 0%, rgba(212,165,116,0.02) 100%);
}
.gs-build__moderator-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.125rem;
  color: var(--blu-notte);
  margin: 0 0 4px 0;
}
.gs-build__moderator-subtitle {
  font-size: 0.75rem;
  color: rgba(0,0,0,0.5);
}
.gs-build__moderator-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gs-moderator__message {
  background: #f9fafb;
  border-left: 3px solid var(--oro);
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #374151;
}
.gs-moderator__message strong {
  color: var(--blu-notte);
}
.gs-moderator__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gs-moderator__upload {
  border: 2px dashed #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}
.gs-moderator__upload:hover {
  border-color: var(--oro);
  background: rgba(212,165,116,0.04);
}
.gs-moderator__upload input[type="file"] {
  display: none;
}
.gs-moderator__upload-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
  display: block;
}
.gs-moderator__upload-label {
  font-size: 0.8125rem;
  color: #6b7280;
}
.gs-moderator__logo-preview {
  margin-top: 12px;
  max-width: 120px;
  max-height: 80px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

/* Moderator edit area */
.gs-moderator__edit-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gs-moderator__edit-area textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  resize: vertical;
}
.gs-moderator__edit-area textarea:focus {
  outline: none;
  border-color: var(--oro);
}

/* Progress bar */
.gs-moderator__progress {
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
}
.gs-moderator__progress-bar {
  height: 6px;
  background: #f3f4f6;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}
.gs-moderator__progress-fill {
  height: 100%;
  background: var(--oro);
  border-radius: 99px;
  transition: width 0.3s ease;
}
.gs-moderator__progress-label {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
}

/* Overlay */
.gs-build__overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,37,64,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.gs-build__overlay-inner {
  text-align: center;
  color: #fff;
}
.gs-build__overlay-inner p {
  margin-top: 16px;
  font-size: 1rem;
}


.gs-build__section--approving {
  animation: gsApprove 0.8s ease forwards;
}
@keyframes gsApprove {
  0%   { border-color: #10b981; background: rgba(16,185,129,0.15); }
  100% { border-color: #10b981; background: rgba(16,185,129,0.04); }
}

/* ==========================================
   PREVIEW PAGE
   ========================================== */
.gs-preview {
  height: calc(100vh - 72px);
  background: var(--blu-notte);
}
.gs-preview__header {
  text-align: center;
  padding: 48px 24px 32px;
}
.gs-preview__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--oro);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.gs-preview__title {
  font-family: 'Instrument Serif', serif;
  font-size: 2.25rem;
  color: #fff;
  margin-top: 12px;
}
.gs-preview__url {
  color: rgba(255,255,255,0.5);
  font-size: 0.9375rem;
  margin-top: 8px;
}
.gs-preview__frame {
  max-width: 1024px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 48px;
}
.gs-preview__frame iframe {
  width: 100%;
  height: 600px;
  border: none;
}
.gs-preview__options {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 80px;
  text-align: center;
}
.gs-preview__options-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 24px;
}
.gs-preview__cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.gs-preview__card {
  flex: 1;
  min-width: 180px;
  max-width: 200px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.gs-preview__card:hover {
  border-color: var(--oro);
  background: rgba(212,165,116,0.05);
}
.gs-preview__card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}
.gs-preview__card-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.gs-preview__card-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1200px) {
  .gs-build__layout {
    grid-template-columns: 220px 1fr 280px;
  }
}

@media (max-width: 900px) {
  .gs-build__layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .gs-build__sidebar {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  .gs-build__steps {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .gs-build__step {
    flex-shrink: 0;
    min-width: 100px;
    flex-direction: column;
    padding: 12px 10px;
    gap: 4px;
    border-bottom: none;
    border-right: 1px solid #f3f4f6;
  }
  .gs-build__step--active {
    border-left: none;
    border-bottom: 3px solid var(--oro);
  }
  .gs-build__preview {
    height: 55vh;
    min-height: 400px;
  }
  .gs-build__moderator {
    border-left: none;
    border-top: 1px solid #e5e7eb;
  }
}

@media (max-width: 480px) {
  .gs-build__step {
    min-width: 80px;
  }
}

/* ==========================================
   BUILDER = app a tutto schermo (niente footer marketing)
   ========================================== */
body.gs-builder-page { overflow: hidden; }
body.gs-builder-page .footer { display: none; }
body.gs-builder-page #gs-main-content {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
body.gs-builder-page .gs-build { flex: 1 1 auto; min-height: 0; }
body.gs-builder-page .gs-build__layout { height: 100%; }

@media (max-width: 900px) {
  body.gs-builder-page { overflow: auto; }
  body.gs-builder-page #gs-main-content { display: block; height: auto; overflow: visible; }
  body.gs-builder-page .gs-build { min-height: 0; }
  body.gs-builder-page .gs-build__layout { height: auto; }
}

/* --- PALETTE PICKER --- */
.gs-moderator__palette {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.gs-moderator__palette-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.gs-moderator__palette-subtitle {
  font-size: 0.8125rem;
  color: rgba(0,0,0,0.5);
  margin-bottom: 14px;
  line-height: 1.4;
}
.gs-palette-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gs-palette-card {
  position: relative;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  background: #fff;
}
.gs-palette-card:hover {
  border-color: rgba(0,0,0,0.18);
  transform: translateY(-1px);
}
.gs-palette-card--selected {
  border-color: var(--oro, #c9a84c);
  box-shadow: 0 0 0 2px var(--oro, #c9a84c);
}
.gs-palette-card--selected::after {
  content: '\2713';
  position: absolute;
  top: 6px; right: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--oro, #c9a84c);
}
.gs-palette-swatch {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  height: 28px;
}
.gs-palette-swatch-dot {
  flex: 1;
  border-radius: 50%;
  min-width: 14px;
}
.gs-palette-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(0,0,0,0.75);
  line-height: 1.2;
}
.gs-palette-confirm {
  margin-top: 14px;
}

@media (max-width: 768px) {
  .gs-palette-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* ── Stream panel (live generation progress) ─────────────────────────── */
.gs-stream-panel {
  background: #0f172a;
  border-radius: 16px;
  padding: 28px 32px;
  min-width: 360px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.gs-stream-panel__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.gs-stream-panel__spinner {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-width: 3px;
}
.gs-stream-panel__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.3;
}
.gs-stream-panel__bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.gs-stream-panel__bar {
  flex: 1;
  height: 6px;
  background: #1e293b;
  border-radius: 99px;
  overflow: hidden;
}
.gs-stream-panel__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #b8962e, #f0c040);
  border-radius: 99px;
  transition: width 0.4s ease;
}
.gs-stream-panel__pct {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f0c040;
  min-width: 34px;
  text-align: right;
}
.gs-stream-panel__log {
  max-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gs-stream-panel__log-line {
  font-size: 0.75rem;
  color: #94a3b8;
  padding: 2px 0;
  border-bottom: 1px solid #1e293b;
  line-height: 1.4;
}
.gs-stream-panel__log-line:last-child {
  color: #cbd5e1;
  border-bottom: none;
}

/* ── Custom color picker ── */
.gs-palette-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gs-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gs-color-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(0,0,0,0.75);
  flex: 1;
}
.gs-color-input {
  width: 48px;
  height: 36px;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 2px;
  cursor: pointer;
  background: none;
  flex-shrink: 0;
}
.gs-color-input::-webkit-color-swatch-wrapper { padding: 0; }
.gs-color-input::-webkit-color-swatch { border: none; border-radius: 5px; }

/* ── Element click-to-edit panel ── */
.gs-element-badge {
  display: inline-block;
  background: #FFEE58;
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin: 6px 0 4px;
}
.gs-element-preview {
  font-size: 0.8125rem;
  color: rgba(0,0,0,0.55);
  font-style: italic;
  margin: 6px 0 0;
  line-height: 1.4;
  word-break: break-word;
}
