.pyq-compose-page {
  background: #f5f5f7;
}

.pyq-compose-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #ffffff;
  border-bottom: 1px solid #ececec;
  padding: 10px 12px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pyq-compose-header .card-header-title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pyq-compose-header .card-header-title strong {
  display: block;
  color: #111111;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.pyq-compose-header .card-header-title span {
  display: none;
}

.pyq-compose-header .llx-moments-topbar-right {
  width: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.pyq-compose-cancel,
.pyq-compose-submit,
.pyq-compose-top-btn {
  border: none;
  background: transparent;
  padding: 0 4px;
  min-width: 44px;
  height: 32px;
  font-size: 15px;
  line-height: 32px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.pyq-compose-cancel {
  color: #666666;
}

.pyq-compose-submit {
  color: #07c160;
  font-weight: 700;
}

.pyq-compose-submit[disabled] {
  color: #b9c1cc;
}

.pyq-compose-content {
  padding: 0;
  background: #f5f5f7;
}

.pyq-compose-main {
  padding: 16px;
  background: #ffffff;
}

.pyq-compose-top {
  display: flex;
  align-items: stretch;
  min-height: 0;
}

.pyq-compose-textarea {
  width: 100%;
  min-height: 108px;
  border: none;
  outline: none;
  resize: none;
  display: block;
  overflow: hidden;
  background: transparent;
  color: #111111;
  font-size: 16px;
  line-height: 1.7;
  padding: 0;
  margin: 0;
}

.pyq-compose-textarea::placeholder {
  color: #9aa4b2;
}

.pyq-compose-gallery-wrap {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.pyq-compose-gallery {
  display: contents;
}

.pyq-compose-image-item,
.pyq-compose-add {
  width: 92px;
  height: 92px;
  border-radius: 10px;
  flex: 0 0 auto;
}

.pyq-compose-image-item {
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
}

.pyq-compose-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pyq-compose-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.pyq-compose-add {
  border: 1px dashed #d5dbe3;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.pyq-compose-add.hidden {
  display: none;
}

.pyq-compose-add-plus {
  font-size: 28px;
  line-height: 1;
  color: #8d98a9;
}

.pyq-compose-add-text {
  font-size: 12px;
  color: #8d98a9;
}

.pyq-compose-panel {
  margin-top: 10px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.pyq-compose-row {
  width: 100%;
  min-height: 52px;
  border: none;
  border-bottom: 1px solid #f1f3f5;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  text-align: left;
  font-size: 15px;
  color: #111111;
  cursor: pointer;
}

.pyq-compose-row:last-child {
  border-bottom: none;
}

.pyq-compose-row strong {
  max-width: 180px;
  color: #7c8798;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.pyq-compose-input-row {
  cursor: text;
}

.pyq-compose-inline-input {
  width: 180px;
  border: none;
  outline: none;
  background: transparent;
  text-align: right;
  font-size: 14px;
  color: #7c8798;
}

.pyq-compose-inline-input::placeholder {
  color: #b0b7c3;
}

.pyq-compose-modal-card {
  width: min(100%, 420px);
}

.pyq-compose-cloud-modal-card {
  width: min(100%, 460px);
  border-radius: 24px;
}

.pyq-compose-url-actions {
  flex-wrap: wrap;
}

.pyq-compose-cloud-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding: 2px 0;
}

.pyq-compose-cloud-item {
  width: 100%;
  border: 1px solid #edf1f6;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pyq-compose-cloud-item:hover {
  transform: translateY(-1px);
  border-color: #dce6f5;
  box-shadow: 0 8px 18px rgba(87, 107, 149, 0.08);
}

.pyq-compose-cloud-item--check {
  justify-content: space-between;
  padding: 14px 14px;
}

.pyq-compose-cloud-thumb {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #edf2f7;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.pyq-compose-cloud-meta {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.pyq-compose-cloud-meta strong {
  font-size: 14px;
  color: #111111;
  font-weight: 700;
}

.pyq-compose-cloud-meta span {
  font-size: 12px;
  color: #8a94a6;
  word-break: break-all;
}

.pyq-compose-cloud-empty {
  padding: 36px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fafcff 0%, #f5f8fc 100%);
  border: 1px dashed #d7e2f0;
  color: #8a94a6;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
}

.pyq-compose-cloud-empty::before {
  content: "◌";
  display: block;
  margin-bottom: 10px;
  font-size: 26px;
  line-height: 1;
  color: #c2cede;
}

.llx-moments-check-marker {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #eaf7ef;
  color: #07c160;
  font-size: 15px;
  font-weight: 700;
  margin-left: 12px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

@media (max-width: 480px) {
  .pyq-compose-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .pyq-compose-header .llx-moments-topbar-right {
    width: 52px;
    min-width: 52px;
  }

  .pyq-compose-main {
    padding: 14px;
  }

  .pyq-compose-textarea {
    min-height: 96px;
  }

  .pyq-compose-image-item,
  .pyq-compose-add {
    width: 86px;
    height: 86px;
  }

  .pyq-compose-row {
    padding: 0 14px;
  }

  .pyq-compose-row strong,
  .pyq-compose-inline-input {
    max-width: 150px;
    width: 150px;
  }
}
