#hcs-launch {
  position: fixed;
  right: 18px;
  bottom: 70px;
  z-index: 12100;

  border: 2px solid #111;
  border-radius: 999px;

  padding: 10px 14px;

  background: #ff2f93;
  color: #fff;

  font: 900 11px/1 Arial, sans-serif;
  letter-spacing: .06em;

  box-shadow: 0 5px 0 #111;

  cursor: pointer;
}

#hottt-creative-studio {
  position: fixed;
  z-index: 12090;

  top: 10px;
  right: 10px;
  bottom: 10px;

  width: min(920px, calc(100vw - 20px));

  display: none;
  grid-template-rows: auto auto 1fr;

  border: 2px solid #111;
  border-radius: 22px;

  background: #fff;
  color: #111;

  box-shadow:
    0 18px 0 rgba(0,0,0,.05),
    0 35px 100px rgba(0,0,0,.28);

  overflow: hidden;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
}

#hottt-creative-studio.open {
  display: grid;
}

.hcs-header {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 14px;

  border-bottom: 1px solid #ddd;
}

.hcs-header > div {
  display: grid;
  margin-right: auto;
}

.hcs-header small {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.hcs-header strong {
  font-size: 19px;
}

.hcs-header button {
  width: 36px;
  height: 36px;

  border: 1px solid #999;
  border-radius: 10px;

  background: #fff;

  font-size: 20px;
  cursor: pointer;
}

.hcs-tabs {
  display: flex;
  gap: 4px;

  padding: 8px;

  border-bottom: 1px solid #ddd;

  overflow-x: auto;
}

.hcs-tabs button {
  border: 0;
  border-radius: 9px;

  padding: 8px 12px;

  background: transparent;

  font-weight: 850;

  cursor: pointer;
}

.hcs-tabs button.active {
  background: #111;
  color: #fff;
}

.hcs-panel {
  display: none;
  overflow: auto;
  padding: 14px;
}

.hcs-panel.active {
  display: block;
}

.hcs-grid-3,
.hcs-grid-4 {
  display: grid;
  gap: 9px;

  margin-bottom: 10px;
}

.hcs-grid-3 {
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
}

.hcs-grid-4 {
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
}

#hottt-creative-studio label {
  display: grid;
  gap: 5px;

  font-size: 10px;
  font-weight: 800;
}

#hottt-creative-studio input,
#hottt-creative-studio select,
#hottt-creative-studio textarea {
  width: 100%;
  box-sizing: border-box;

  border: 1px solid #aaa;
  border-radius: 9px;

  padding: 9px;

  background: #fff;
  color: #111;

  font: inherit;
}

#hottt-creative-studio textarea {
  min-height: 74px;
  resize: vertical;
}

.hcs-full {
  margin-bottom: 10px;
}

#hcs-reference-assets {
  min-height: 80px;
}

#hottt-creative-studio button {
  border: 1px solid #111;
  border-radius: 9px;

  padding: 9px 11px;

  background: #fff;
  color: #111;

  font-weight: 850;

  cursor: pointer;
}

#hottt-creative-studio button.primary {
  background: #123ee7;
  color: #fff;
}

.hcs-badge {
  display: inline-flex;

  margin: 2px;

  padding: 3px 6px;

  border: 1px solid #aaa;
  border-radius: 999px;

  background: #fff;

  font-size: 8px;
  font-weight: 900;
  letter-spacing: .04em;
}

.hcs-badge.free {
  border-color: #168650;

  background: #ddf8e9;
  color: #08633b;
}

.hcs-badge.paid {
  border-color: #de7900;

  background: #fff0d8;
  color: #874700;
}

#hcs-model-info {
  display: grid;
  gap: 5px;

  margin: 8px 0 12px;
  padding: 10px;

  border: 1px solid #ddd;
  border-radius: 12px;

  background: #f8f8f5;
}

#hcs-model-info small,
#hcs-model-time,
.hcs-note {
  color: #666;

  font-size: 10px;
  line-height: 1.45;
}

#hcs-model-errors {
  color: #a30018;

  font-size: 10px;
}

.hcs-skills {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 7px;

  margin-bottom: 12px;
}

.hcs-skill {
  grid-template-columns: auto 1fr !important;
  align-items: start;

  padding: 9px;

  border: 1px solid #ddd;
  border-radius: 11px;
}

.hcs-skill input,
.hcs-check input {
  width: auto !important;
}

.hcs-skill span {
  display: grid;
  gap: 2px;
}

.hcs-skill small {
  color: #666;
}

.hcs-check {
  display: flex !important;
  align-items: center;
  gap: 8px !important;

  margin: 10px 0;
}

.paid-check {
  padding: 10px;

  border: 1px solid #df7b00;
  border-radius: 10px;

  background: #fff6e7;
}

.hcs-result-meta {
  margin: 10px 0;
}

.hcs-composer-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.5fr)
    minmax(220px, .5fr);
  gap: 12px;
}

.hcs-canvas-wrap {
  display: grid;
  place-items: center;

  min-height: 300px;

  border: 1px solid #ddd;
  border-radius: 14px;

  padding: 8px;

  background:
    linear-gradient(
      45deg,
      #eee 25%,
      transparent 25%
    ),
    linear-gradient(
      -45deg,
      #eee 25%,
      transparent 25%
    ),
    linear-gradient(
      45deg,
      transparent 75%,
      #eee 75%
    ),
    linear-gradient(
      -45deg,
      transparent 75%,
      #eee 75%
    );

  background-size: 20px 20px;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
}

#hcs-canvas {
  display: block;

  max-width: 100%;
  max-height: 62vh;

  background: #fff;
}

.hcs-composer-controls {
  display: grid;
  gap: 8px;

  align-content: start;
}

.hcs-assets-grid {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fill,
      minmax(150px, 1fr)
    );
  gap: 9px;

  margin-top: 14px;
}

.hcs-asset {
  display: grid;
  gap: 5px;

  padding: 8px;

  border: 1px solid #ddd;
  border-radius: 12px;

  overflow: hidden;
}

.hcs-asset img {
  width: 100%;
  height: 110px;

  object-fit: contain;

  border-radius: 7px;

  background: #f3f3f3;
}

.hcs-asset small {
  color: #666;
}

#hcs-output-list {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fill,
      minmax(180px, 1fr)
    );
  gap: 8px;
}

.hcs-output-item {
  display: grid !important;
  grid-template-columns: 70px 1fr;
  gap: 8px;

  text-align: left;
}

.hcs-output-item img {
  width: 70px;
  height: 70px;

  object-fit: cover;

  border-radius: 7px;
}

.hcs-output-item span {
  display: grid;
  align-content: center;
  gap: 2px;
}

.hcs-output-item small {
  color: #666;
}

.hcs-skill-card {
  margin-bottom: 8px;
  padding: 10px;

  border: 1px solid #ddd;
  border-radius: 12px;
}

.hcs-skill-card pre {
  white-space: pre-wrap;

  font: 11px/1.5 monospace;
}

#hcs-feed-preview {
  max-height: 45vh;

  overflow: auto;

  padding: 10px;

  border: 1px solid #ddd;
  border-radius: 10px;

  background: #f8f8f5;

  font-size: 10px;
}

@media (max-width: 760px) {
  #hottt-creative-studio {
    inset: 0;

    width: 100vw;

    border: 0;
    border-radius: 0;
  }

  .hcs-grid-3,
  .hcs-grid-4,
  .hcs-skills,
  .hcs-composer-layout {
    grid-template-columns: 1fr;
  }
}
