.st-aiimg .st-drop em {
  min-height: 120px;
}

.ai-models {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.ai-model {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid #d6e0e7;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.ai-model input {
  margin-top: 3px;
  accent-color: #52b5b2;
}

.ai-model span {
  display: grid;
  gap: 2px;
}

.ai-model small {
  color: #66778a;
  font-size: 13px;
}

.ai-model:has(input:checked) {
  border-color: #52b5b2;
  background: #f1faf9;
  box-shadow: 0 0 0 1px #52b5b2 inset;
}

.ai-private {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px dashed #b9cbd6;
  border-radius: 12px;
  background: #f8fafb;
  color: #3d4d5c;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.ai-private input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: none;
  accent-color: #52b5b2;
}

.ai-private b {
  margin-right: 4px;
  color: #1e2733;
}

.ai-consent {
  padding: 16px 18px;
  border: 1px solid #52b5b2;
  border-radius: 14px;
  background: #f1faf9;
  color: #2c3b48;
  font-size: 14px;
  line-height: 1.6;
}

.ai-consent h3 {
  margin: 0 0 6px;
  font-family: inherit;
  font-weight: 800;
  color: #1e2733;
  font-size: 17px;
}

.ai-consent h3 i {
  color: #2f8f8c;
  margin-right: 6px;
}

.ai-consent p {
  margin: 0 0 8px;
}

.ai-consent ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

.ai-consent li {
  margin: 2px 0;
}

.ai-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ai-progress {
  display: grid;
  gap: 6px;
  color: #3d4d5c;
  font-size: 14px;
  font-weight: 600;
}

.ai-bar {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #e3eaef;
  overflow: hidden;
}

.ai-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: #52b5b2;
  transition: width .2s;
}

.ai-work {
  display: grid;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px dashed #d3dce4;
}

.ai-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.ai-brush {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.ai-brush input {
  width: 140px;
  accent-color: #52b5b2;
}

.ai-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px;
  border-radius: 12px;
  background: #eef2f5;
}

.ai-checker {
  background-color: #eef2f5;
  background-image: linear-gradient(45deg, #dde4ea 25%, transparent 25%), linear-gradient(-45deg, #dde4ea 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #dde4ea 75%), linear-gradient(-45deg, transparent 75%, #dde4ea 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.ai-canvas {
  display: block;
  max-width: 100%;
  max-height: 560px;
  height: auto;
  border-radius: 6px;
}

.ai-stage .ai-paint {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 20px);
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.ai-bgopt {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ai-bgopt input[type="radio"] {
  accent-color: #52b5b2;
}

.ai-bgopt input[type="color"] {
  width: 30px;
  height: 26px;
  padding: 0;
  border: 1px solid #c9d5de;
  border-radius: 6px;
  background: none;
}

.ai-bgpic input[type="file"] {
  max-width: 190px;
  font-size: 12px;
}

.ai-stored {
  margin: 0;
  color: #66778a;
  font-size: 13px;
}

.ai-link {
  padding: 0;
  border: 0;
  background: none;
  color: #2f8f8c;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.st-aiimg[aria-busy="true"] .ai-paint {
  cursor: progress;
}

@media (max-width: 767px) {
  .ai-tools .st-chip,
  .ai-row .st-chip,
  .ai-link {
    width: auto;
  }
}

@media (max-width: 480px) {
  .ai-brush input {
    width: 110px;
  }

  .ai-canvas {
    max-height: 420px;
  }
}
