:host {
  color: var(--devcm-text, #586e75);
  font-family: Hack, Monaco, Consolas, "Ubuntu Mono", PingHei, "PingFang SC", "Microsoft YaHei", monospace;
  position: relative;
}

.comment-widget {
  color: var(--devcm-text, #586e75);
}

.comment-widget__wrapper {
  display: grid;
  gap: 12px;
}

.comment-widget__stats {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--devcm-line, rgba(101, 123, 131, 0.2));
  color: var(--devcm-green, #859900);
  font-size: 13px;
}

.comment-widget__list {
  color: var(--devcm-text, #586e75);
}

.form {
  position: relative;
  display: grid;
  gap: 10px;
}

.form__editor {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  border: 1px solid var(--devcm-line, rgba(101, 123, 131, 0.2));
  border-radius: 8px;
  outline: none;
  background: linear-gradient(
    180deg,
    var(--devcm-panel, rgba(10, 12, 9, 0.94)),
    var(--devcm-panel-soft, rgba(5, 7, 5, 0.92))
  );
  box-shadow: var(--devcm-shadow, inset 0 0 0 1px rgba(181, 137, 0, 0.16));
  color: var(--devcm-text, #586e75);
  caret-color: var(--devcm-amber, #b58900);
  font: 14px/1.7 Hack, Monaco, Consolas, "Ubuntu Mono", PingHei, "PingFang SC", "Microsoft YaHei", monospace;
  resize: vertical;
}

.form__editor::placeholder {
  color: var(--devcm-dim, rgba(221, 214, 185, 0.42));
}

.form__editor:focus {
  border-color: var(--devcm-green, rgba(133, 153, 0, 0.45));
  box-shadow: 0 0 0 1px var(--devcm-green-soft, rgba(133, 153, 0, 0.16));
}

.form__footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.form__actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form__button--login,
.form__button--submit {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--devcm-line, rgba(101, 123, 131, 0.2)) !important;
  border-radius: 8px;
  background: var(--devcm-panel-soft, rgba(238, 232, 213, 0.78)) !important;
  color: var(--devcm-amber, #b58900) !important;
  cursor: pointer;
  font: 13px/1 Hack, Monaco, Consolas, "Ubuntu Mono", PingHei, "PingFang SC", "Microsoft YaHei", monospace;
}

.form__button--submit {
  border-color: var(--devcm-green, rgba(133, 153, 0, 0.28)) !important;
  background: var(--devcm-green-soft, rgba(133, 153, 0, 0.14)) !important;
  color: var(--devcm-green, #859900) !important;
}

.form__button--login:hover,
.form__button--submit:hover {
  background: var(--devcm-panel-warm, rgba(238, 232, 213, 0.62)) !important;
}
