
/* NC-C00R1-R4 — Safe HTML modal and article blocks */
.nico-html-dialog {
  width:min(680px,calc(100% - 24px));
  max-height:calc(100dvh - 30px);
  overflow:auto;
  border:1px solid #d6e4f6;
  border-radius:18px;
  padding:24px;
  color:#102b4e;
  background:#fff;
  box-shadow:0 22px 75px #102b4e40;
}
.nico-html-dialog::backdrop {
  background:#091c36aa;
}
.nico-html-head,
.nico-html-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.nico-html-head h2 {
  margin:0;
  font-size:22px;
}
.nico-html-head button {
  border:0;
  background:transparent;
  font-size:28px;
}
.nico-html-dialog p {
  font-size:14px;
  margin:12px 0;
}
.nico-html-dialog .nico-html-hint {
  color:#61748d;
}
.nico-html-dialog label {
  display:block;
  font-weight:700;
  margin-bottom:8px;
}
.nico-html-dialog textarea {
  display:block;
  width:100%;
  min-height:200px;
  padding:14px;
  border:1px solid #cbdcf1;
  border-radius:12px;
  font:13px/1.6 monospace;
  resize:vertical;
}
.nico-html-actions {
  justify-content:flex-end;
  margin-top:17px;
}
.nico-html-actions button {
  border:1px solid #cbdcf1;
  border-radius:10px;
  padding:11px 16px;
  background:#fff;
  font-weight:700;
}
#nico-html-insert {
  background:#1769e0;
  border-color:#1769e0;
  color:#fff;
}
#nico-html-feedback {
  color:#b42318;
  min-height:20px;
}
.prose .nico-html-block {
  max-width:100%;
  overflow-wrap:anywhere;
  margin:22px 0;
}
.prose .nico-html-block img {
  max-width:100%;
  height:auto;
}
.prose .nico-html-block table {
  display:block;
  max-width:100%;
  overflow-x:auto;
}
