/* Inline discussion belongs to the note, without taking over the editor. */
.note-comment-zone {
  box-sizing:border-box;
  padding:4px 0 8px;
  color:#28333e;
  font-family:Pretendard,sans-serif;
  pointer-events:auto;
}
.note-inline-comment { display:flex; flex-direction:column; }
.note-comment-mark { border-bottom:2px dotted #95a9c3; }
.note-comment-form-actions button,.note-comment-reply,.note-comment-edit {
  min-height:28px;
  padding:0 7px;
  border:0;
  border-radius:4px;
  background:transparent;
  color:#596a80;
  font:500 12px Pretendard,sans-serif;
  white-space:nowrap;
}
.note-comment-form-actions button:hover,.note-comment-reply:hover,.note-comment-edit:hover { background:#eaf0f8; }
.note-comment-content {
  min-height:0;
  flex:1;
  display:flex;
  flex-direction:column;
}
.note-comment-list {
  flex:1;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  padding:8px 12px;
}
.note-comment-quote {
  margin:0 0 6px;
  padding:3px 6px;
  max-height:30px;
  overflow:hidden;
  border-left:2px solid #ccd7e4;
  color:#657489;
  font-size:11px;
  line-height:1.4;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.is-draft > .note-comment-quote { flex:none; margin:7px 12px 0; }
.note-comment-message + .note-comment-message { margin-top:9px; padding-top:8px; border-top:1px solid #edf1f5; }
.note-comment-meta { display:flex; gap:6px; align-items:center; min-height:18px; font-size:11px; }
.note-comment-meta strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.note-comment-meta time { flex:none; color:#6d7a8c; font-size:10px; }
.note-comment-meta .note-comment-edit { margin-left:auto; min-height:22px; font-size:11px; }
.note-comment-text { margin:3px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.45; user-select:text; }
.note-comment-form { display:flex; flex-direction:column; gap:6px; padding:8px 12px; }
.is-draft .note-comment-form { flex:1; min-height:0; }
.note-comment-form textarea {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:0;
  padding:7px 8px;
  border:1px solid #dce5ef;
  border-radius:4px;
  background:white;
  color:#273443;
  font:13px/1.5 Pretendard,sans-serif;
}
.note-comment-form textarea { height:66px; resize:none; user-select:text; }
.is-draft textarea { flex:1; }
.note-comment-form-actions { display:flex; justify-content:flex-end; gap:4px; margin-right:19px; }
.note-comment-form-actions .note-comment-primary {
  min-height:28px;
  padding:0 8px;
  border:0;
  border-radius:4px;
  background:#314c6c;
  color:white;
  font:550 12px Pretendard,sans-serif;
  white-space:nowrap;
}
.note-comment-form-actions .note-comment-primary:hover { background:#405f84; }
.note-comment-primary:disabled { opacity:.55; }
.note-comment-form textarea:focus-visible { outline:2px solid #8ca5c2; outline-offset:-1px; }
.note-comment-reply { align-self:flex-start; margin:0 0 4px 5px; }
.note-comment-editor-host:empty { display:none; }
@media(max-width:440px) {
  .note-comment-form textarea { font-size:16px; }
}
@media(max-width:360px) {
  .workspace-header .session-strip { gap:6px; }
}

/* Independent editor surface inside a note view zone. */
.note-textbox-zone { box-sizing:border-box; padding:4px 0 8px; pointer-events:auto; }
.note-textbox { display:flex; flex-direction:column; }
.note-textbox.is-collapsed .note-box-body { display:none; }
.note-box-body.note-image-drag { outline:2px dashed #8ca5c2; outline-offset:-3px; }
.note-box-status { color:#677a71; font-size:10px; white-space:nowrap; }
.note-box-body { position:relative; min-height:88px; overflow:hidden; }
.note-box-editor { position:absolute; left:0; right:0; top:0; height:88px; overflow:hidden; }
