/* v41.3.1 - writing helper and watermark policy. */
.cv-watermark {
  display: none !important;
}

.v4131-writing-helper {
  margin: -3px 0 18px;
  border: 1px solid #d9e2e7;
  border-radius: 12px;
  background: linear-gradient(145deg, #f8fbfc, #f1f6f8);
  color: #263f4d;
  overflow: hidden;
  box-shadow: 0 7px 20px rgba(28, 63, 82, 0.07);
}

.v4131-writing-helper > summary {
  min-height: 54px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  list-style: none;
}

.v4131-writing-helper > summary::-webkit-details-marker {
  display: none;
}

.v4131-writing-helper > summary > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.v4131-writing-helper > summary b {
  font-size: 10px;
  line-height: 1.35;
}

.v4131-writing-helper > summary small {
  color: #71818a;
  font-size: 7.5px;
  line-height: 1.4;
}

.v4131-writing-helper > summary > i {
  color: #6f8794;
  font-size: 16px;
  font-style: normal;
  text-align: center;
  transition: transform 0.18s ease;
}

.v4131-writing-helper[open] > summary > i {
  transform: rotate(45deg);
}

.v4131-ai-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #c8a762;
  border-radius: 10px;
  color: #75531b;
  background: linear-gradient(145deg, #fff8e9, #eedcb8);
  font-size: 15px;
}

.v4131-writing-helper-body {
  padding: 13px;
  border-top: 1px solid #dce5e9;
  background: rgba(255, 255, 255, 0.72);
}

.v4131-writing-helper-body > p {
  margin: 0 0 11px;
  color: #637681;
  font-size: 8.5px;
  line-height: 1.65;
}

.v4131-writing-controls {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-bottom: 8px;
}

.v4131-writing-controls label {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #506873;
  font-size: 7.5px;
  font-weight: 800;
}

.v4131-writing-controls select {
  width: 100%;
  height: 35px;
  padding: 0 10px;
  border: 1px solid #cad8df;
  border-radius: 8px;
  color: #263f4d;
  background: #fff;
  font-size: 9px;
  outline: none;
}

.v4131-writing-controls select:focus {
  border-color: #6e98ad;
  box-shadow: 0 0 0 3px rgba(62, 117, 146, 0.12);
}

.v4131-writing-prompt {
  width: 100%;
  height: 180px !important;
  min-height: 174px;
  max-height: 300px;
  resize: vertical;
  padding: 11px;
  border: 1px solid #d2dde2;
  border-radius: 9px;
  color: #243740;
  background: #fff;
  font-family: Arial, Tahoma, sans-serif;
  font-size: 8.4px;
  line-height: 1.65;
  outline: none;
}

.v4131-writing-prompt:focus {
  border-color: #6e98ad;
  box-shadow: 0 0 0 3px rgba(62, 117, 146, 0.12);
}

.v4131-writing-actions {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 7px;
  margin-top: 8px;
}

.v4131-writing-actions button,
.v4131-writing-actions a {
  min-height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid #cbd7dd;
  border-radius: 9px;
  font-size: 8.5px;
  font-weight: 850;
  text-decoration: none;
}

.v4131-copy-prompt {
  color: #fff;
  background: linear-gradient(135deg, #173f57, #276b8d);
  border-color: #1d526f !important;
}

.v4131-open-chatgpt {
  color: #345463;
  background: #fff;
}

.v4131-writing-privacy {
  display: block;
  margin-top: 9px;
  color: #7b8b93;
  font-size: 7px;
  line-height: 1.5;
}

.ui-en .v4131-writing-helper,
.ui-en .v4131-writing-helper-body,
.ui-en .v4131-writing-prompt {
  direction: ltr;
  text-align: left;
}

@media (max-width: 760px) {
  .v4131-writing-helper {
    margin-bottom: 15px;
  }

  .v4131-writing-helper > summary {
    min-height: 58px;
  }

  .v4131-writing-helper > summary b {
    font-size: 10.5px;
  }

  .v4131-writing-helper > summary small,
  .v4131-writing-helper-body > p {
    font-size: 8px;
  }

  .v4131-writing-actions {
    grid-template-columns: 1fr;
  }

  .v4131-writing-actions button,
  .v4131-writing-actions a {
    min-height: 42px;
    font-size: 9px;
  }

  .v4131-writing-prompt {
    height: 190px !important;
    min-height: 190px !important;
  }
}

@media print {
  html,
  body {
    direction: ltr !important;
    height: auto !important;
    overflow: visible !important;
  }

  .v4131-writing-helper {
    display: none !important;
  }
}
