#company-websites {
  color: var(--ink, #24324b);
  min-width: 0;
}
.cw-heading {
  margin-bottom: 20px;
}
.cw-heading h2 {
  font-size: 27px;
  margin: 0;
}
.cw-heading p {
  color: #65748d;
}
.cw-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.cw-btn {
  border: 1px solid #d9e2f0;
  background: white;
  color: #355172;
  padding: 9px 14px;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-decoration: none;
}
.cw-btn.primary {
  background: #3264ed;
  color: white;
  border-color: #3264ed;
}
.cw-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cw-btn:focus-visible,
.cw-field input:focus-visible,
.cw-field textarea:focus-visible,
.cw-field select:focus-visible {
  outline: 3px solid #8aabff;
  outline-offset: 2px;
}
.cw-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 22px;
}
.cw-card {
  border: 1px solid #e2e9f3;
  border-radius: 11px;
  background: white;
  overflow: hidden;
  min-width: 0;
}
.cw-card-body {
  padding: 24px;
}
.cw-card-body > p {
  color: #65748d;
  font-size: 13px;
}
.cw-site-art {
  background: #e9efec;
  padding: 32px;
  color: #294d3d;
  min-height: 220px;
}
.cw-site-art.blue {
  background: #e8eefb;
  color: #2c4f89;
}
.cw-site-art h2 {
  font-family: "Songti SC", serif;
  font-size: 34px;
  white-space: pre-wrap;
  max-width: 550px;
}
.cw-site-art p {
  max-height: 100px;
  overflow: hidden;
}
.cw-editor {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 22px;
}
.cw-field {
  display: block;
  margin: 12px 0;
  color: #50627c;
  font-size: 12px;
}
.cw-field input,
.cw-field select,
.cw-field textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #dce3ef;
  background: white;
  color: #253750;
  border-radius: 6px;
  font: inherit;
}
.cw-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.cw-field textarea {
  min-height: 90px;
  resize: vertical;
}
.cw-service-row {
  border-top: 1px solid #e5eaf3;
  margin-top: 12px;
}
.cw-preview {
  padding: 20px;
  background: #f1f5fa;
}
.cw-preview iframe {
  display: block;
  background: white;
  width: 100%;
  height: 650px;
  border: 1px solid #dce3ef;
  margin: auto;
}
.cw-preview iframe.phone {
  max-width: 375px;
}
.cw-generation {
  padding-top: 20px;
}
.cw-dialog {
  width: min(540px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  border: 1px solid #e2e7f0;
  border-radius: 12px;
  color: #233650;
  background: white;
}
.cw-dialog::backdrop {
  background: #18294077;
}
.cw-dialog h2 {
  font-size: 19px;
  flex: 1;
}
.cw-dialog fieldset {
  border: 1px solid #e1e6ef;
  border-radius: 6px;
  max-height: 260px;
  overflow: auto;
}
.cw-error {
  color: #b43a3a;
  font-size: 13px;
  white-space: pre-wrap;
}
.cw-empty {
  padding: 45px;
  background: #fff;
  border: 1px dashed #d5dfee;
  border-radius: 10px;
  margin-top: 18px;
}
.cw-conversations {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 230px;
  gap: 0;
}
.cw-conversation-list {
  padding: 18px;
}
.cw-conversation-list > .cw-btn {
  width: 100%;
  text-align: left;
  margin: 6px 0;
}
.cw-chat {
  padding: 24px;
  min-height: 500px;
}
.cw-message {
  max-width: 90%;
  margin: 22px 0;
}
.cw-message p {
  padding: 13px;
  background: #f0f3f8;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cw-message.assistant {
  margin-left: auto;
}
.cw-message.assistant p {
  background: #ecf2ff;
}
.cw-message small {
  font-size: 11px;
  color: #6d7b92;
}
.cw-conversations aside p {
  overflow-wrap: anywhere;
  font-size: 12px;
}
@media (max-width: 1100px) {
  .cw-conversations {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .cw-conversations aside {
    display: none;
  }
  .cw-editor {
    grid-template-columns: 285px minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .cw-grid,
  .cw-editor,
  .cw-conversations {
    grid-template-columns: 1fr;
  }
  .cw-card-body {
    padding: 18px;
  }
  .cw-preview {
    padding: 12px;
  }
  .cw-conversation-list {
    max-height: 280px;
    overflow: auto;
  }
  .cw-site-art h2 {
    font-size: 27px;
  }
  .cw-dialog {
    box-sizing: border-box;
  }
  .cw-row {
    gap: 7px;
  }
  .cw-btn {
    white-space: normal;
  }
}

#workspace:has(#company-websites:not([hidden])) .page-heading {
  display: none;
}
