* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f3f4f6;
  color: #111827;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

button.primary {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

button.success {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

button.ghost {
  background: transparent;
}

.page {
  max-width: 1540px;
  margin: 0 auto;
  padding: 24px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
}

.subtle {
  margin: 0;
  color: #6b7280;
  line-height: 1.5;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(340px, 0.9fr);
  gap: 24px;
}

.main-column,
.side-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.input-grid,
.form-grid,
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.form-grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-settings {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #f8fafc;
}

.pricing-settings-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.pricing-settings-lead {
  margin: 4px 0 0;
  font-size: 13px;
}

.pricing-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pricing-settings-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  color: #374151;
}

.pricing-settings-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: #b45309;
}

@media (max-width: 900px) {
  .pricing-settings-grid {
    grid-template-columns: 1fr;
  }
}

label,
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  background: #ffffff;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.compact-field {
  min-width: 140px;
}

.empty-state {
  color: #6b7280;
}

.source-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.summary-card {
  padding: 12px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.summary-card strong {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.image-card {
  border: 1px solid #d1d5db;
  border-radius: 18px;
  overflow: hidden;
  background: #f9fafb;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.image-card--payload-overflow {
  outline: 2px solid #d97706;
  outline-offset: 2px;
}

.image-card img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #e5e7eb;
}

.image-card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.channel-card,
.prompt-card,
.profile-card {
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 14px;
  background: #f9fafb;
}

.profile-card.active {
  border-color: #0f766e;
  background: #f0fdfa;
}

.profile-card p {
  margin: 8px 0;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 8px;
  align-items: end;
}

.field-row.locked input {
  background: #f3f4f6;
  color: #6b7280;
}

.validation-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.validation-item {
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.validation-item.error {
  border-color: #fecaca;
  background: #fef2f2;
}

.validation-item.warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.channel-title-field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.channel-title-field-issues {
  min-height: 0;
  font-size: 0.85rem;
  line-height: 1.35;
}

.channel-title-field-issues.has-issues {
  margin-top: 2px;
}

.channel-title-issue {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #78350f;
}

.channel-title-issue--error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #7f1d1d;
}

.allegro-photo-checklist-root {
  margin-top: 12px;
}

.allegro-photo-checklist {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 14px;
  background: #fafafa;
}

.allegro-photo-checklist summary {
  cursor: pointer;
  font-weight: 600;
  color: #374151;
}

.allegro-photo-checklist-intro {
  margin: 8px 0 6px;
  font-size: 0.9rem;
  color: #4b5563;
}

.allegro-photo-checklist ul {
  margin: 8px 0 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #374151;
}

.channel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.channel-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 8px;
  background: #e5e7eb;
  font-size: 12px;
}

.channels,
.prompt-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.editor-payload-slots-panel {
  margin-bottom: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.editor-payload-slots-panel .editor-payload-slots-list {
  margin: 0;
  padding-left: 1.35rem;
  line-height: 1.55;
  font-size: 13px;
}

.payload-preview {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 640px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.5;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 12px;
  padding: 14px;
}

.status-box {
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 12px;
  line-height: 1.5;
}

.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tags-picker {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tags-picker.empty-state {
  padding: 14px;
  font-style: italic;
  color: #64748b;
  background: #f8fafc;
  border-style: dashed;
}

.tags-picker-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 32px;
  align-items: center;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 5px 12px;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}

.tag-chip:hover {
  border-color: #0f766e;
  background: #ecfdf5;
}

.tag-chip:active {
  transform: scale(0.97);
}

.tag-chip.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.tag-chip.is-active:hover {
  background: #115e59;
  border-color: #115e59;
}

.tag-chip-x {
  font-size: 16px;
  line-height: 1;
  opacity: 0.85;
}

.tag-add-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.tag-add-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.ai-insights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-insights.empty-state {
  padding: 14px;
  font-style: italic;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
}

.insight-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 12px;
}

.insight-title-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 320px;
  min-width: 0;
}

.insight-title-text code {
  background: #ffffff;
  border: 1px solid #d1fae5;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
  color: #064e3b;
  word-break: break-word;
  white-space: pre-wrap;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.insight-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.insight-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.insight-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  border-bottom: 1px dashed #e5e7eb;
  padding: 4px 0;
}

.insight-row:last-child {
  border-bottom: none;
}

.insight-row-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.insight-row-stack .insight-label {
  margin-bottom: 0;
}

.insight-copy-style-select {
  width: 100%;
  max-width: 320px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font: inherit;
}

.insight-label {
  color: #64748b;
  flex-shrink: 0;
}

.insight-value {
  color: #0f172a;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.insight-features {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.insight-feature-chip {
  display: inline-block;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  color: #1e3a8a;
}

.insight-warn {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  color: #991b1b;
}

.insight-warn-empty {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  color: #166534;
}

.pill.ok {
  background: #dcfce7;
  color: #166534;
}

@media (max-width: 760px) {
  body {
    background: #ffffff;
  }

  body.app-skin {
    background: #f1f5f9;
  }

  .page {
    padding: 12px env(safe-area-inset-right, 12px) env(safe-area-inset-bottom, 12px) env(safe-area-inset-left, 12px);
  }

  .page-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #ffffff;
    margin: -12px -12px 16px;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .page-header.editor-hero {
    background: rgba(248, 250, 252, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  }

  .page-header h1 {
    font-size: 18px;
  }

  .page-header .subtle {
    display: none;
  }

  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .input-grid,
  .form-grid,
  .source-summary,
  .profiles-grid {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .insight-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .insight-title-row button {
    width: 100%;
  }

  .tag-add-row {
    flex-direction: column;
  }

  .tag-add-row button {
    width: 100%;
  }

  .compact-field {
    width: 100%;
    min-width: 0;
  }

  button,
  input,
  select,
  textarea {
    min-height: 44px;
    font-size: 16px;
  }

  textarea {
    min-height: 120px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    justify-content: stretch;
  }

  .header-actions button {
    width: 100%;
  }

  .header-actions .success,
  .header-actions .primary {
    grid-column: 1 / -1;
  }

  .panel {
    padding: 14px;
    border-radius: 14px;
  }

  .search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .search-bar button {
    width: 100%;
  }

  .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .search-result-card {
    padding: 8px;
  }

  .search-result-card .title {
    font-size: 12px;
  }

  .image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-card img {
    height: 110px;
  }

  .payload-preview {
    max-height: 320px;
    font-size: 11px;
  }
}

.search-bar {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.search-bar-input {
  flex: 1;
}

.search-bar button {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  font-weight: 600;
  white-space: nowrap;
}

.search-bar button:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.search-bar button:disabled {
  background: #93c5fd;
  border-color: #93c5fd;
  cursor: wait;
}

.search-results {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.search-results:empty {
  display: none;
}

.search-results .search-hint {
  grid-column: 1 / -1;
  color: #6b7280;
  font-size: 14px;
  padding: 8px 4px;
}

.search-result-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.08s ease, box-shadow 0.08s ease;
}

@media (hover: hover) {
  .search-result-card:hover {
    border-color: #2563eb;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
  }
}

.search-result-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #e5e7eb;
}

.search-result-card .title {
  font-size: 13px;
  line-height: 1.35;
  color: #111827;
  font-weight: 600;
}

.search-result-card .meta {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.search-result-card .badge-unavailable {
  font-size: 11px;
  background: #fee2e2;
  color: #b91c1c;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
}

/* === Mobilne UX: zwijane sekcje + zwarty rytm === */
/* Chevron jest niewidoczny na desktopie — działa wyłącznie na małych ekranach. */
.panel-toggle {
  display: none;
}

@media (max-width: 760px) {
  .panel-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    margin: 0 8px 0 0;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #4b5563;
    font-size: 13px;
    line-height: 1;
    flex: 0 0 auto;
    transition: transform 0.18s ease, background-color 0.12s ease;
    cursor: pointer;
  }

  .panel-toggle:active {
    background: #f3f4f6;
  }

  .panel.is-collapsed .panel-toggle {
    transform: rotate(-90deg);
  }

  /* Pozostawiamy widoczny tylko nagłówek panelu — reszta dzieci znika. */
  .panel.is-collapsed > *:not(h2):not(.section-head) {
    display: none;
  }

  .panel.is-collapsed > h2,
  .panel.is-collapsed > .section-head {
    margin-bottom: 0;
  }

  /* W zwiniętej sekcji ukrywamy też podpis pomocniczy, żeby nagłówek był jednolinijkowy. */
  .panel.is-collapsed > .section-head .subtle {
    display: none;
  }

  /* Zwarty rytm — mniej powietrza między panelami i delikatnie mniejsze nagłówki. */
  .main-column,
  .side-column {
    gap: 14px;
  }

  .panel {
    padding: 12px;
    border-radius: 12px;
  }

  .panel h2 {
    font-size: 16px;
    margin: 0;
    line-height: 1.25;
  }

  .panel:not(.is-collapsed) > h2 {
    margin-bottom: 10px;
  }

  /* Chevron przy h2 musi się zgrabnie ustawić w jednej linii z tekstem nagłówka. */
  .panel > h2 > .panel-toggle {
    vertical-align: middle;
  }

  /* Nieco bardziej kompaktowy sticky header. */
  .page-header {
    padding: 10px 12px;
    margin: -12px -12px 14px;
    gap: 6px;
  }

  .page-header h1 {
    font-size: 16px;
    margin: 0;
    line-height: 1.25;
  }

  .page-header .eyebrow {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions button {
    padding: 8px 10px;
    min-height: 40px;
    font-size: 14px;
  }
}

/* === Toast / powiadomienia === */
.toast-container {
  position: fixed;
  top: max(16px, env(safe-area-inset-top, 16px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 24px);
}

.toast {
  pointer-events: auto;
  background: #1f2937;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  max-width: min(420px, calc(100vw - 24px));
  animation: toast-in 0.18s ease;
}

.toast.toast-info {
  background: #1f2937;
}
.toast.toast-success {
  background: #0f766e;
}
.toast.toast-error {
  background: #b91c1c;
}

.toast .toast-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1;
}

.toast.toast-info .toast-icon::before {
  content: "i";
  font-style: italic;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.toast.toast-success .toast-icon::before {
  content: "✓";
  font-weight: 700;
}
.toast.toast-error .toast-icon::before {
  content: "!";
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toast.toast-pending .toast-icon::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  animation: toast-spin 0.8s linear infinite;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .toast-container {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }
  .toast {
    width: 100%;
    min-width: 0;
    font-size: 13px;
    padding: 10px 12px;
  }
}

/* === Stany przycisków: kliknięcie + akcja w toku === */
button {
  transition: transform 0.08s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

button:active {
  transform: scale(0.98);
}

button.is-running {
  cursor: progress;
  opacity: 0.85;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.25);
}

button.is-running .btn-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  vertical-align: -2px;
  animation: toast-spin 0.8s linear infinite;
}

button.was-just-clicked {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.35);
}

/* === Wybrana karta wyniku wyszukiwania === */
.search-result-card {
  position: relative;
}

.search-result-card.is-selected {
  border-color: #0f766e;
  background: #f0fdfa;
  box-shadow: 0 0 0 2px #0f766e, 0 6px 14px rgba(15, 118, 110, 0.18);
}

.search-result-card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 6px;
  background: #0f766e;
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.35);
}

/* === Variant picker (grupowany po kolorze) === */
.variant-picker {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.variant-picker-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
}

.variant-picker-head img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #e5e7eb;
  flex-shrink: 0;
}

.variant-picker-title {
  flex: 1;
  min-width: 0;
}

.variant-picker-title h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.variant-picker-title p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.variant-picker-back {
  background: transparent;
  border: 1px solid #d1d5db;
  padding: 6px 10px;
  font-size: 13px;
  white-space: nowrap;
  margin-left: auto;
  border-radius: 8px;
  min-height: 36px;
}

.variant-color-group {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #fafafa;
}

.variant-color-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.variant-color-head .color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.variant-color-head strong {
  font-size: 14px;
  color: #111827;
}

.variant-color-head .variant-color-meta {
  font-size: 12px;
  color: #6b7280;
  margin-left: auto;
}

.variant-size-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.variant-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  min-height: auto;
}

.variant-chip strong {
  font-size: 14px;
  color: #111827;
}

.variant-chip .variant-price {
  font-size: 12px;
  color: #374151;
}

.variant-chip .variant-price b {
  color: #0f766e;
}

.variant-chip .variant-ean {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  color: #9ca3af;
  word-break: break-all;
}

@media (hover: hover) {
  .variant-chip:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
  }
}

.variant-chip.is-selected {
  border-color: #0f766e;
  background: #f0fdfa;
  box-shadow: 0 0 0 2px #0f766e;
}

.variant-chip.is-selected::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 6px;
  background: #0f766e;
  color: #ffffff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
}

.variant-chip-unavailable {
  opacity: 0.78;
  background: #f9fafb;
  border-style: dashed;
}

.variant-chip-unavailable strong {
  color: #4b5563;
}

@media (max-width: 760px) {
  .variant-picker-head img {
    width: 56px;
    height: 56px;
  }
  .variant-picker-title h3 {
    font-size: 14px;
  }
  .variant-size-row {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  .variant-chip {
    padding: 9px 10px;
  }
}

/* === „Pokaż więcej sekcji" — tryb mobilny === */
.more-panels-toggle {
  display: none;
}

.step-num {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #0f766e;
  color: #ffffff;
  font-size: 12px;
  margin-right: 8px;
  vertical-align: middle;
}

.offer-state-box {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offer-state-box.warning {
  border-color: #f59e0b;
  background: #fffbeb;
}

.offer-state-help {
  color: #6b7280;
  font-size: 13px;
}

.image-overlay-box {
  margin-top: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 12px;
  background: #f8fafc;
}

.image-collage-box {
  margin-top: 14px;
  border: 1px dashed #93c5fd;
  border-radius: 16px;
  padding: 12px;
  background: #eff6ff;
}

.image-collage-box.empty-state {
  display: none;
}

.collage-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.collage-first-row {
  margin: 8px 0;
}

.collage-preview-wrap {
  margin-top: 10px;
}

.collage-preview-img {
  max-width: 100%;
  max-height: min(360px, 55vh);
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  display: block;
  background: #ffffff;
}

.collage-pick-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.overlay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.overlay-highlights-span {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.overlay-gallery-row-editor {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.overlay-preview-wrap {
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay-preview {
  width: auto;
  max-width: min(420px, 100%);
  height: auto;
  max-height: min(420px, 52vh);
  margin: 0 auto;
  object-fit: contain;
  display: block;
  background: #f3f4f6;
}

body.expert-collapsed .expert-panel {
  display: none;
}

.category-select-list {
  max-height: 220px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  padding: 6px;
}

.category-option {
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.category-option:hover {
  background: #f3f4f6;
}

@media (max-width: 760px) {
  .overlay-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .more-panels-toggle {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 14px;
    cursor: pointer;
    text-align: center;
    min-height: 44px;
  }
  .more-panels-toggle:active {
    background: #f3f4f6;
  }
  .more-panels-toggle .more-panels-count {
    color: #0f766e;
  }

  .panel.is-extra {
    display: none;
  }
  body.panels-expanded .panel.is-extra {
    display: block;
  }
}

/* ========== Stanowisko reżysera — panel PREMIUM ========== */
.studio-expert-aside {
  gap: 0;
  align-self: stretch;
}

.studio-director-chrome {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: none;
  border-radius: 20px;
  background: linear-gradient(155deg, #0c1222 0%, #151e32 42%, #0f172a 100%);
  box-shadow:
    0 24px 48px rgba(2, 6, 23, 0.55),
    0 0 0 1px rgba(148, 163, 184, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.studio-director-chrome::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #0f766e, #2dd4bf, #fbbf24, #0f766e);
  background-size: 200% 100%;
  animation: studio-premium-shine 8s linear infinite;
}

@keyframes studio-premium-shine {
  to {
    background-position: 200% 0;
  }
}

.studio-director-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 14px;
  flex-wrap: wrap;
}

.studio-director-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.studio-director-rec {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.25);
  animation: studio-rec-pulse 1.6s ease-in-out infinite;
}

@keyframes studio-rec-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(0.92);
  }
}

.studio-director-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.studio-director-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #94a3b8;
}

.studio-premium-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  color: #0f172a;
  background: linear-gradient(135deg, #fcd34d, #fbbf24, #d97706);
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.35);
}

.studio-director-tagline {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #cbd5e1;
  max-width: 36em;
}

.studio-collapse-toggle {
  flex-shrink: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.25);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.studio-collapse-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(45, 212, 191, 0.45);
}

.studio-director-tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.studio-director-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.studio-director-tab:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
}

.studio-director-tab.is-active {
  color: #f8fafc;
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.45), rgba(15, 23, 42, 0.9));
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow:
    0 0 24px rgba(45, 212, 191, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.studio-tab-glyph {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
}

.studio-tab-glyph--hash {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    90deg,
    currentColor 0,
    currentColor 2px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.7;
}

.studio-tab-glyph--code {
  width: 14px;
  height: 10px;
  border-radius: 2px;
  border: 2px solid currentColor;
  background: transparent;
  opacity: 0.75;
}

.studio-tab-glyph--wave {
  width: 14px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, currentColor 40%, currentColor 60%, transparent);
  opacity: 0.65;
}

.expert-dock-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.studio-expert-stage {
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(15, 23, 42, 0.35) 100%);
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.studio-expert-stage h2 {
  color: #f1f5f9;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.studio-stage-hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: #94a3b8 !important;
  line-height: 1.5;
}

.studio-stage-head {
  align-items: flex-start;
}

.studio-stage-head .studio-stage-hint {
  margin: 4px 0 0;
}

.studio-stage-action {
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13px;
  background: linear-gradient(180deg, #0f766e, #0d5c56);
  color: #fff;
  border: 1px solid rgba(45, 212, 191, 0.35);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
}

.studio-stage-action:hover {
  filter: brightness(1.06);
}

.studio-stage-action--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  box-shadow: none;
}

.studio-stage-action--ghost:hover {
  border-color: rgba(45, 212, 191, 0.45);
  color: #fff;
}

.studio-prompt-area {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  color: #0f172a;
}

.studio-expert-aside .studio-terminal-window {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  font-size: 11px;
  line-height: 1.55;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(45, 212, 191, 0.08), transparent 50%), #020617;
  color: #a5f3fc;
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 14px;
  padding: 16px;
  box-shadow:
    inset 0 0 80px rgba(15, 118, 110, 0.06),
    0 0 0 1px rgba(15, 23, 42, 0.8);
  max-height: min(520px, 58vh);
}

.studio-signal-monitor {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #e0f2fe;
  background: linear-gradient(165deg, #0c4a6e 0%, #082f49 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow:
    inset 0 0 40px rgba(14, 165, 233, 0.08),
    0 8px 24px rgba(8, 47, 73, 0.35);
}

.studio-signal-monitor::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 3px
  );
  opacity: 0.35;
}

.studio-signal-monitor--error {
  color: #fecaca;
  background: linear-gradient(165deg, #7f1d1d 0%, #450a0a 100%);
  border-color: rgba(248, 113, 113, 0.45);
}

.studio-expert-aside .profile-card {
  background: rgba(248, 250, 252, 0.97);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
}

.studio-expert-aside .profile-card.active {
  border-color: #0f766e;
  box-shadow:
    0 0 0 2px rgba(45, 212, 191, 0.35),
    0 8px 24px rgba(15, 118, 110, 0.25);
}

body.expert-collapsed .expert-dock-body {
  display: none;
}

body.expert-collapsed .studio-director-tab-strip {
  display: none;
}

body.expert-collapsed .studio-director-tagline {
  display: none;
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .layout.layout-cineplex {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .editor-split-spine {
    width: 100%;
    height: 5px;
    min-height: 5px;
    align-self: stretch;
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(45, 212, 191, 0.65),
      rgba(251, 191, 36, 0.55),
      rgba(45, 212, 191, 0.65),
      transparent
    );
    box-shadow: 0 0 24px rgba(45, 212, 191, 0.15);
  }
}

/* ========== CINEPLEX — layout + studio (tło i hero: app-skin.css) ========== */
/* Tylko desktop: wąskie okna MUSZĄ zostać przy regule max-width:1100px (1 kolumna).
   Poprzednia wersja miała te 3 kolumny poza media query i nadpisywała mobile. */

@media (min-width: 1101px) {
  .layout.layout-cineplex {
    grid-template-columns: minmax(0, 1.82fr) minmax(4px, 5px) minmax(300px, 0.96fr);
    gap: 22px;
    align-items: start;
  }

  .editor-split-spine {
    grid-column: auto;
    width: 100%;
    align-self: stretch;
    min-height: 280px;
    border-radius: 999px;
    background: linear-gradient(
      180deg,
      transparent,
      rgba(45, 212, 191, 0.45) 18%,
      rgba(251, 191, 36, 0.35) 52%,
      rgba(45, 212, 191, 0.4) 82%,
      transparent
    );
    box-shadow:
      0 0 32px rgba(45, 212, 191, 0.12),
      inset 0 0 20px rgba(251, 191, 36, 0.08);
  }
}

.main-rail > .panel {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

@media (hover: hover) {
  .main-rail > .panel:hover {
    box-shadow:
      0 16px 40px rgba(15, 23, 42, 0.07),
      0 0 0 1px rgba(15, 118, 110, 0.08);
  }
}

.main-rail > .panel h2 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

/* Kanały — „klaps” filmowy w głównej kolumnie */
.main-rail .channel-card {
  overflow: hidden;
  padding: 0 0 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.main-rail .channel-card .channel-head {
  margin: 0 0 12px;
  padding: 14px 16px;
  align-items: flex-start;
  background: linear-gradient(115deg, #0c1222 0%, #1e293b 48%, #0f172a 100%);
  border-bottom: 1px solid rgba(45, 212, 191, 0.2);
}

.main-rail .channel-card .channel-head h3 {
  color: #f8fafc;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.main-rail .channel-card .channel-meta .pill {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.main-rail .channel-card .inline-actions span,
.main-rail .channel-card .inline-actions label {
  color: #cbd5e1;
  font-size: 13px;
}

.main-rail .channel-card .form-grid {
  padding: 0 16px;
}

.main-rail .channel-card > label.field {
  padding: 0 16px;
  margin-top: 4px;
}

.main-rail .channel-card .channel-head .ghost {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.main-rail .channel-card .channel-head .ghost:hover {
  background: rgba(15, 118, 110, 0.35);
  border-color: rgba(45, 212, 191, 0.55);
}

/* Zakładka Prompty — ten sam język co transmit */
.studio-expert-aside .prompt-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(15, 23, 42, 0.55) 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.studio-expert-aside .prompt-card h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.studio-expert-aside .prompt-card label span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.studio-expert-aside .prompt-card textarea {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  background: #020617;
  color: #e2e8f0;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 10px;
}

.studio-expert-aside .prompt-card textarea:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

.studio-expert-aside #channel-prompts.empty-state {
  color: #94a3b8;
  font-size: 13px;
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(0, 0, 0, 0.15);
  text-align: center;
}

.studio-expert-aside .studio-prompt-area {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #e2e8f0;
  border: 1px solid rgba(45, 212, 191, 0.35);
  box-shadow: inset 0 0 40px rgba(15, 118, 110, 0.06);
}

.studio-expert-aside .studio-prompt-area:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow:
    inset 0 0 40px rgba(15, 118, 110, 0.08),
    0 0 0 3px rgba(45, 212, 191, 0.12);
}

.studio-expert-aside #expert-page-prompts label[for="system-prompt"] {
  color: #cbd5e1;
  font-weight: 600;
}

.full-ai-config-panel {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.full-ai-config-heading {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #e2e8f0;
}

.full-ai-config-lead code {
  font-size: 0.9em;
  color: #5eead4;
}

.full-ai-config-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin: 12px 0 10px;
}

.full-ai-config-toolbar .toolbar-sep {
  display: inline-block;
  width: 1px;
  height: 24px;
  background: rgba(148, 163, 184, 0.35);
  margin: 0 4px;
}

.full-ai-config-toolbar select#ai-config-snapshot-select {
  min-width: 200px;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #0f172a;
  color: #e2e8f0;
  font-size: 13px;
}

.ai-config-file-label.button-like {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 14px;
}

.full-ai-config-json-label span {
  color: #cbd5e1;
  font-weight: 600;
}

.full-editor-config-json {
  width: 100%;
  min-height: 360px;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
  tab-size: 2;
}

.full-ai-config-mode-hint {
  margin: 0 0 10px;
  font-size: 12px;
}
