@font-face {
  font-family: "PingFang";
  src: url("/static/fonts/PingFangSC-Thin.woff2") format("woff2");
  font-weight: 300;
}
@font-face {
  font-family: "PingFang";
  src: url("/static/fonts/PingFangSC-Regular.woff2") format("woff2");
  font-weight: 400;
}
@font-face {
  font-family: "PingFang";
  src: url("/static/fonts/PingFangSC-Medium.woff2") format("woff2");
  font-weight: 500;
}

.software-title {
  font-size: 16px;
  color: #223f9a;
  font-weight: 600;
  margin: 0;
}

.software-title span {
  color: #f44336;
  font-size: 16px;
  font-weight: 500;
}

.input-qr-code {
  resize: vertical;
  width: 80%;
  min-height: 92px;
  padding: 10px 12px;
  border: 1.5px solid #d1dbed;
  border-radius: 8px;
  font-size: 15px;
}

.preview-phone,
.mock-balance {
  width: 270px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(20, 40, 90, 0.16);
  background: #fff;
  position: relative;
}

.preview-phone img.bg,
.mock-balance img.bg {
  width: 100%;
  display: block;
}

.overlay-amount {
  position: absolute;
  left: 0;
  right: 0;
  top: 31%;
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  color: #111;
  letter-spacing: 1px;
  z-index: 2;
  pointer-events: none;
}

.sub-edit-image-header .sub-edit-image-save {
  white-space: nowrap;
  flex-shrink: 0;
}

.sub-edit-image-header h2.software-title {
  white-space: nowrap;
}

.chat-preview {
  width: 320px;
  height: 620px;
  background: #ededed url("/static/img/20250520003745.png") center/cover no-repeat;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 28px rgba(20, 40, 90, 0.16);
}

.chat-preview .chat-title {
  position: absolute;
  top: 46px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.chat-preview .bubbles {
  position: absolute;
  top: 88px;
  left: 12px;
  right: 12px;
  bottom: 70px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.bubble.me {
  align-self: flex-end;
  background: #95ec69;
}

.bubble.them {
  align-self: flex-start;
  background: #fff;
}

.ad-placeholder {
  width: 100%;
  min-height: 74px;
  border: 1px dashed #dbe5fa;
  border-radius: 10px;
  color: #9aa7c2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.invoice-sheet {
  width: 520px;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 28px;
  border-radius: 8px;
  color: #111;
}

.invoice-sheet h2 {
  margin: 0 0 8px;
  letter-spacing: 2px;
}

.invoice-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 18px;
}

.invoice-sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.invoice-sheet th,
.invoice-sheet td {
  border-bottom: 1px solid #eee;
  padding: 8px 4px;
  text-align: left;
}

.mock-balance {
  width: 270px;
  height: 585px;
  background: linear-gradient(#1677ff, #3d8aff 18%, #f5f6f8 18%);
  border-radius: 18px;
  color: #111;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(20, 40, 90, 0.16);
}

.mock-balance.green {
  background: linear-gradient(#07c160, #2ad67b 18%, #ededed 18%);
}

.mock-balance.blue-dark {
  background: linear-gradient(#003087, #0070ba 18%, #f5f7fb 18%);
}

.mock-top {
  height: 18%;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mock-top h3 {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
}

.mock-card {
  margin: -18px 14px 0;
  background: #fff;
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
}

.mock-card .label {
  color: #888;
  font-size: 13px;
}

.mock-card .amount {
  font-size: 36px;
  font-weight: 700;
  margin: 10px 0 16px;
}

.mock-actions {
  display: flex;
  gap: 10px;
}

.mock-actions span {
  flex: 1;
  border-radius: 999px;
  padding: 8px 0;
  font-size: 14px;
}

.mock-actions .ghost {
  border: 1px solid #d0d5dd;
}

.mock-actions .solid {
  background: #1677ff;
  color: #fff;
}

.radius-row {
  margin-left: 20px;
  font-size: 14px;
}

.imgml-upload-label {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid #2a80ff;
  border-radius: 5px;
  background: #f8fafd;
  color: #2a80ff;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
}

.imgml-upload-label:hover {
  background: #e6f0ff;
}

.imgml-img-us {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 50px 0;
}

.imgml-img-us > div {
  display: flex;
  gap: 10px;
}

.imgml-img-us img {
  width: 140px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px #0002;
}

#fieldsContainer.chat-control-panel {
  margin: 22px auto 18px auto;
  padding: 18px;
  background: #f8fafc;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(50,80,160,0.07);
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.chat-control-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.chat-control-row.single { grid-template-columns: auto; }
.chat-control-block {
  background: #fff;
  border-radius: 10px;
  padding: 11px 15px;
  border: 1px solid #ecf0f8;
}
.chat-control-block strong {
  font-size: 1.11em;
  color: #3166ce;
  display: block;
  margin-bottom: 8px;
}
.chat-control-block input[type="text"] {
  border: 1px solid #cbd4ec;
  border-radius: 6px;
  padding: 5px 9px;
  margin: 0 6px;
}
.chat-control-block button {
  background: #32bb95;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 6px 17px;
  cursor: pointer;
}
.chat-control-block li {
  list-style: none;
  padding: 5px 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
