/* Общие стили 3D-инструментов (Объёмные буквы, Раскопки, Кликер, Футбольный клуб). */
.field.num input,
.field input[type="text"] {
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f172a;
  color: var(--text);
  font: inherit;
}

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.seg button {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #475569;
  background: #334155;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.seg button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.page-bar .platform-actions .btn {
  margin-left: 0;
}

.viewer-card {
  min-height: 420px;
}

.viewer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.viewer {
  flex: 1;
  min-height: 380px;
  position: relative;
  background: radial-gradient(800px 500px at 50% 30%, #1b2a44 0%, #0b1220 70%);
}

.viewer canvas {
  display: block;
  position: absolute;
  inset: 0;
}

.group {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group legend {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.hint.warn {
  color: #fbbf24;
}

.hint.error {
  color: #f87171;
}

.seg button:disabled {
  opacity: 0.4;
  cursor: default;
}

.more summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.more:not([open]) {
  gap: 0;
}

.color-row {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.color-row label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-row input[type="color"] {
  width: 36px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--border, #334155);
  border-radius: 6px;
  background: none;
}

.swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -2px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
}

#planPreview {
  min-height: 180px;
  background: radial-gradient(700px 400px at 50% 40%, #1b2a44 0%, #0b1220 75%);
  padding: 12px;
}

#planPreview canvas {
  max-width: 100%;
  max-height: 260px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

/* Сервисы «по картинке»: настройки | основной экран | превью и кнопки действий. */
.exc-layout {
  grid-template-columns: 300px minmax(0, 1fr) 340px;
}

.exc-main {
  min-height: 520px;
}

.exc-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.exc-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.generate {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.dropzone {
  min-height: 90px;
}

@media (max-width: 1200px) {
  .exc-layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }
  .exc-side {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .exc-layout {
    grid-template-columns: 1fr;
  }
}
