@font-face {
  font-family: "TikTok Sans";
  src: url("./assets/TikTokSans-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
}

:root { color-scheme: light; font-family: "TikTok Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #f9f9f9; }
button, textarea { font: inherit; }

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #f9f9f9;
}

.prototype { position: absolute; width: 552px; height: 858px; transform-origin: top left; }

.panel {
  position: relative;
  width: 552px;
  height: 796px;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
}

.panel-header {
  position: absolute;
  top: 0;
  left: 24px;
  width: 504px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
}

.panel-header h1 { margin: 0; color: #000; font-size: 20px; font-weight: 500; line-height: 28px; }
.close-icon { position: relative; width: 32px; height: 32px; }
.close-icon::before, .close-icon::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 7px;
  width: 2px;
  height: 18px;
  border-radius: 2px;
  background: #000;
}
.close-icon::before { transform: rotate(45deg); }
.close-icon::after { transform: rotate(-45deg); }

.panel-content { position: absolute; left: 24px; top: 68px; width: 500px; }
.field > label { display: block; height: 20px; color: #000; font-size: 14px; font-weight: 400; line-height: 20px; }
.field > label em { color: #fe2c55; font-style: normal; }

.select-field {
  width: 500px;
  height: 32px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  padding: 1px;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 6px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}
.select-value {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chevron {
  align-self: stretch;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  padding-right: 8px;
}
.chevron img {
  display: block;
  width: 16px;
  height: 16px;
}
.issue-field { margin-top: 20px; }
.issue-box { position: relative; width: 500px; height: 857px; margin-top: 8px; }

.issue-editor {
  position: relative;
  width: 500px;
  height: 194px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 12px;
  background: #fff;
}

.attachments { position: absolute; left: 8px; top: 8px; display: flex; gap: 8px; }
.attachment-preview, .upload-tile { width: 60px; height: 60px; }
.attachment-preview { display: block; object-fit: cover; border: 1px solid rgba(0, 0, 0, .05); }
.upload-tile {
  display: block;
  border-radius: 6px;
  object-fit: contain;
}

#description {
  position: absolute;
  left: 12px;
  top: 76px;
  width: 468px;
  height: 80px;
  padding: 0;
  resize: none;
  overflow: hidden;
  border: 0;
  outline: 0;
  background: transparent;
  color: #000;
  caret-color: #20d5ec;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
}

.static-counter { position: absolute; right: 10px; top: 166px; color: rgba(0, 0, 0, .48); font-size: 14px; line-height: 20px; }

.ai-region {
  position: absolute;
  left: 0;
  top: 194px;
  width: 500px;
  height: auto;
  padding: 16px 8px 8px;
  overflow: hidden;
  border-color: rgba(32, 213, 236, .05);
  border-style: solid;
  border-width: 0 1px 1px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, rgba(32, 213, 236, .02) 40%, rgba(32, 213, 236, .08) 100%);
  opacity: 0;
  pointer-events: none;
}

.generating { padding-bottom: 16px; transition: opacity 160ms ease; }
.answer-panel {
  transition: height 220ms cubic-bezier(.22, 1, .36, 1), opacity 160ms ease;
  will-change: height;
}
.prototype.is-generating .generating, .prototype.has-reply .answer-panel { opacity: 1; }

.ai-heading {
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
  color: rgba(0, 0, 0, .48);
  font-size: 14px;
  line-height: 20px;
}
.ai-sparkle { display: flex; flex: 0 0 14px; width: 14px; height: 22px; padding: 4px 0; align-items: center; justify-content: center; }
.ai-sparkle img { display: block; width: 14px; height: 14px; }
.thinking-label {
  color: transparent;
  background: linear-gradient(90deg, rgba(0, 0, 0, .28) 30%, rgba(0, 0, 0, .65) 50%, rgba(0, 0, 0, .28) 70%);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: thinking-label 1.55s linear infinite;
}
.copy-button { display: block; flex: 0 0 32px; width: 32px; height: 32px; margin-left: auto; object-fit: contain; }

.skeleton-lines {
  width: 100%;
  margin-top: 4px;
  padding-left: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skeleton-line {
  position: relative;
  display: block;
  width: 100%;
  height: 20px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(0, 0, 0, .04);
  animation: skeleton-pulse 1.4s ease-in-out infinite alternate;
}
.skeleton-line:nth-child(2) { animation-delay: 120ms; }
.skeleton-line:nth-child(3) { animation-delay: 240ms; }
.skeleton-line-short { width: 180px; }

.answer-scroll { width: 100%; height: auto; margin-top: 4px; padding: 0 4px; overflow: visible; }
#answerText {
  margin: 0;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -.21px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.email-field { margin-top: 20px; }
.email-field p { height: 20px; margin: 0; color: rgba(0, 0, 0, .65); font-size: 14px; line-height: 20px; }
.email-input {
  width: 500px;
  height: 32px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 6px;
  color: #000;
  font-size: 14px;
  line-height: 20px;
}
.prototype.is-generating .email-field, .prototype.has-reply .email-field { visibility: hidden; }

.panel-footer {
  position: absolute;
  z-index: 10;
  left: 0;
  bottom: 0;
  width: 552px;
  height: 76px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px 24px;
  background: #fff;
  box-shadow: none;
}
.prototype.needs-scroll .panel-footer { box-shadow: 0 -6px 12px rgba(0, 0, 0, .03); }
.panel-footer button { width: 246px; height: 36px; border: 0; border-radius: 8px; font-size: 14px; font-weight: 500; line-height: 20px; }
.cancel-button { background: rgba(0, 0, 0, .05); color: #000; }
.submit-button { background: #fe2c55; color: #fff; }

.customer-service {
  box-sizing: border-box;
  position: absolute;
  right: 0;
  top: var(--customer-service-top, 812px);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .07);
  pointer-events: none;
  user-select: none;
}

.customer-service-fill {
  position: relative;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 999px;
  background: url("./assets/customer-service-fill.png?v=1") center / cover no-repeat;
}

.customer-service-chevron {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  background: url("./assets/chevron-down.svg?v=2") center / 16px 16px no-repeat;
  transform: translate(-50%, -50%);
}

@keyframes skeleton-pulse { from { opacity: .5; } to { opacity: 1; } }
@keyframes thinking-label { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) {
  .skeleton-line, .thinking-label { animation: none; }
}
