.wc-editor {
  position: relative;
  margin-top: 4px;
}
.wc-hl, #wc-input.textarea, #wc-input {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.55;
  padding: 14px 16px;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  letter-spacing: normal;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0;
  width: 100%;
}
.wc-hl {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  color: transparent;
  background: transparent;
  z-index: 0;
  border-radius: inherit;
}
.wc-hl mark.wc-bad {
  color: transparent;
  background: rgba(225, 29, 72, .12);
  border-radius: 2px;
  border-bottom: 2px wavy #e11d48;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
#wc-input {
  position: relative;
  z-index: 1;
  background: transparent;
  min-height: 220px;
}
.wc-editor .textarea,
#wc-input.textarea { background: transparent; }
.wc-editor-shell {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.wc-spell-status {
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  min-height: 1.3em;
}
.wc-spell-status.is-bad { color: #be123c; }
.wc-spell-status.is-ok { color: #047857; }
.wc-suggest {
  position: absolute;
  z-index: 5;
  min-width: 180px;
  max-width: min(280px, 90vw);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
  padding: 6px;
}
.wc-suggest[hidden] { display: none !important; }
.wc-suggest button {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}
.wc-suggest button:hover, .wc-suggest button:focus { background: var(--primary-soft); color: var(--primary); }
.wc-suggest .wc-suggest-head {
  padding: 6px 10px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}
.wc-attr {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}
@media (max-width: 560px) {
  #wc-input, .wc-hl { font-size: 16px; min-height: 200px; }
}
