.rct-on {
  border: 1px solid #d1fae5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.06);
}
.rct-on .re2-card-head {
  background: #f0fdfa;
  border-bottom: 1px solid #d1fae5;
}
.rct-on .re2-card-title {
  color: #0f172a;
  font-size: 1.02rem;
}
.rct-on .re2-card-title > svg { display: none; }
.rct-bubble {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #ccfbf1;
  color: #0f766e;
}
.rct-on .re2-tabs,
.rct-on .re2-comment-toolbar,
.rct-on .re2-words,
.rct-on .re2-comment-foot { display: none !important; }
.rct-on .re2-comment-body { gap: 10px; }
.rct-on .re2-wysiwyg { gap: 0; }
.rct-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.rct-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #99f6e4;
  background: #fff;
  color: #0f766e;
  border-radius: 12px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}
.rct-pill.is-on { background: #0f766e; border-color: #0f766e; color: #fff; }
.rct-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin-top: 8px;
  padding: 6px;
  border: 1px solid #d1fae5;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #fff;
}
.rct-btn, .rct-color {
  position: relative;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
}
.rct-btn:hover, .rct-color:hover { background: #f0fdfa; }
.rct-btn.is-on { background: #ccfbf1; color: #0b5f59; }
.rct-btn:disabled { opacity: 0.4; cursor: default; }
.rct-sep { width: 1px; height: 18px; background: #d1fae5; margin: 0 3px; }
.rct-select, .rct-preset {
  height: 32px;
  border: 1px solid #d1fae5;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.8rem;
  padding: 0 8px;
}
.rct-select { max-width: 132px; }
.rct-color input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.rct-hl, .rct-color.is-hl { background: #fef08a; border-radius: 4px; }
.rct-tx { font-size: 0.78rem; font-weight: 800; letter-spacing: -0.03em; }
.rct-on .re2-wysiwyg-surface {
  border: 1px solid #d1fae5;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  min-height: 150px;
}
.rct-on .re2-wysiwyg-surface.is-empty:before {
  content: "Write your comments or notes here…" !important;
}
.rct-on .re2-wysiwyg-surface img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 8px 0;
  border-radius: 8px;
  cursor: grab;
}
.rct-frame {
  position: fixed;
  z-index: 40;
  box-sizing: border-box;
  border: 2px solid #0f766e;
  border-radius: 8px;
  pointer-events: none;
}
.rct-frame i {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  background: #fff;
  border: 2px solid #0f766e;
  border-radius: 3px;
  pointer-events: auto;
  box-sizing: border-box;
}
.rct-frame i[data-h="nw"] { left: 0; top: 0; cursor: nwse-resize; }
.rct-frame i[data-h="ne"] { left: 100%; top: 0; cursor: nesw-resize; }
.rct-frame i[data-h="se"] { left: 100%; top: 100%; cursor: nwse-resize; }
.rct-frame i[data-h="sw"] { left: 0; top: 100%; cursor: nesw-resize; }
.rct-frame i.rct-edge {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0;
}
.rct-frame i.rct-edge[data-h="n"] { left: 12px; top: -7px; width: calc(100% - 24px); height: 14px; cursor: ns-resize; }
.rct-frame i.rct-edge[data-h="s"] { left: 12px; top: calc(100% - 7px); width: calc(100% - 24px); height: 14px; cursor: ns-resize; }
.rct-frame i.rct-edge[data-h="e"] { left: calc(100% - 7px); top: 12px; width: 14px; height: calc(100% - 24px); cursor: ew-resize; }
.rct-frame i.rct-edge[data-h="w"] { left: -7px; top: 12px; width: 14px; height: calc(100% - 24px); cursor: ew-resize; }
.rct-frame i.rct-edge:after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2px solid #0f766e;
  border-radius: 3px;
  box-sizing: border-box;
}
.rct-frame i.rct-edge[data-h="n"]:after,
.rct-frame i.rct-edge[data-h="s"]:after { left: 50%; top: 0; margin-left: -7px; }
.rct-frame i.rct-edge[data-h="e"]:after,
.rct-frame i.rct-edge[data-h="w"]:after { top: 50%; left: 0; margin-top: -7px; }
.rct-frame.is-file i { display: none; }
.rct-frame-del {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font: 800 20px/28px Arial, sans-serif;
  text-align: center;
  pointer-events: auto;
  cursor: pointer;
}
.rct-on .re2-wysiwyg-surface a {
  color: #0f766e;
  font-weight: 700;
}
.rct-attach {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.rct-attach-meta, .rct-add, .rct-insert, .rct-action, .rct-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rct-attach-meta { color: #334155; font-size: 0.86rem; }
.rct-attach-meta b { font-weight: 800; }
.rct-add {
  border: 1px dashed #0f766e;
  background: #f0fdfa;
  color: #0f766e;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}
.rct-hint { color: #94a3b8; font-size: 0.78rem; }
.rct-count { margin-left: auto; color: #64748b; font-size: 0.78rem; }
.rct-count.is-over { color: #b91c1c; font-weight: 800; }
.rct-files { display: flex; flex-wrap: wrap; gap: 6px; }
.rct-file {
  border: 1px solid #d1fae5;
  background: #f0fdfa;
  color: #0f766e;
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.rct-note { margin: 0; min-height: 1em; color: #b45309; font-size: 0.78rem; }
.rct-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.rct-foot-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rct-insert { color: #334155; font-size: 0.84rem; font-weight: 700; }
.rct-action {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #b7e4d8;
  border-radius: 10px;
  background: #fff;
  color: #0f766e;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}
.rct-action:disabled { opacity: 0.45; cursor: default; }
.rct-save {
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #0f766e;
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}
.rct-save:disabled { opacity: 0.55; cursor: default; }
.rct-top { display: grid; gap: 0; }
