
.image-app {
  display: grid;
  gap: 22px;
}

.image-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.image-form-grid.one {
  grid-template-columns: 1fr;
}

.image-field {
  display: grid;
  gap: 9px;
}

.image-field b {
  font-size: 14px;
}

.image-field input,
.image-field select {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(120, 150, 190, .35);
  background: rgba(8, 16, 34, .82);
  color: #fff;
  padding: 0 16px;
  outline: none;
  box-sizing: border-box;
}

.image-field input:focus,
.image-field select:focus {
  border-color: #58a6ff;
  box-shadow: 0 0 0 2px rgba(88,166,255,.18);
}

.upload-zone {
  min-height: 92px;
  border: 1px dashed rgba(120, 150, 190, .45);
  background: rgba(8, 16, 34, .50);
  border-radius: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: rgba(230,238,250,.86);
  transition: .2s;
  text-align: center;
  padding: 16px;
}

.upload-zone:hover {
  border-color: #58a6ff;
  background: rgba(12, 24, 48, .82);
}

.info-banner {
  border-radius: 12px;
  border: 1px solid rgba(88,166,255,.35);
  background: rgba(88,166,255,.11);
  color: rgba(150,190,255,.95);
  padding: 14px 16px;
  font-size: 14px;
}

.panel-box {
  border-radius: 16px;
  border: 1px solid rgba(120,150,190,.28);
  background: rgba(8,16,34,.42);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.preview-frame {
  min-height: 260px;
  display: grid;
  place-items: center;
  color: rgba(220,230,245,.72);
  overflow: auto;
}

.preview-frame img,
.preview-frame canvas {
  max-width: 100%;
  max-height: 430px;
  border-radius: 12px;
  background: #fff;
}

.result-code {
  width: 100%;
  min-height: 180px;
  border-radius: 14px;
  border: 1px solid rgba(120,150,190,.35);
  background: rgba(8,16,34,.82);
  color: #fff;
  padding: 16px;
  resize: vertical;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow: auto;
}

.meta-table {
  display: grid;
}

.meta-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  border-bottom: 1px solid rgba(120,150,190,.18);
  padding: 12px 0;
}

.meta-row:last-child {
  border-bottom: 0;
}

.meta-row span:first-child {
  color: rgba(220,230,245,.75);
}

.meta-row span:last-child {
  text-align: right;
  font-weight: 700;
  word-break: break-word;
}

.image-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.image-actions.one {
  grid-template-columns: 1fr;
}

.download-btn,
.copy-btn {
  min-height: 48px;
  border-radius: 12px;
  border: 0;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.download-btn {
  background: linear-gradient(135deg, #6a5cff, #18bce5);
}

.copy-btn {
  background: rgba(120,150,190,.24);
}

.color-result {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.color-swatch {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.25);
}

.small-note {
  color: rgba(220,230,245,.7);
  font-size: 13px;
}

@media(max-width: 860px) {
  .image-form-grid,
  .image-actions {
    grid-template-columns: 1fr;
  }

  .meta-row {
    grid-template-columns: 1fr;
  }

  .meta-row span:last-child {
    text-align: left;
  }
}
