.note-block-card {
  position:relative;
  box-sizing:border-box;
  max-width:100%;
  margin:0;
  overflow:hidden;
  border:1px solid #dce4df;
  border-left:3px solid #8ba799;
  border-radius:5px;
  background:#fff;
  color:#34473e;
  font:13px Pretendard,sans-serif;
  container-type:inline-size;
}

.note-block-heading {
  display:flex;
  flex:none;
  align-items:center;
  justify-content:space-between;
  box-sizing:border-box;
  height:35px;
  min-width:0;
  gap:6px;
  padding:0 8px 0 10px;
  border-bottom:1px solid #e7ede9;
  background:#f8faf8;
}

.note-block-card.is-collapsed .note-block-heading { border-bottom:0; }
.note-block-actions { display:flex; flex:none; align-items:center; gap:3px; }
.note-block-action {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:26px;
  padding:0 5px;
  border:0;
  border-radius:4px;
  background:transparent;
  color:#5e7269;
  font:500 11px Pretendard,sans-serif;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
}
.note-block-action[hidden], .note-block-card.is-collapsed .note-block-resize { display:none; }
.note-block-action:hover { background:#eaf1ed; }
.note-block-action:focus-visible, .note-block-title:focus-visible { outline:2px solid #779487; outline-offset:-1px; }
.note-block-action:disabled { opacity:.5; cursor:default; }
.note-block-title {
  display:flex;
  flex:1;
  align-items:center;
  justify-content:flex-start;
  min-width:0;
  padding:0;
  color:#34473e;
  font:650 13px Pretendard,sans-serif;
  text-decoration:none;
  text-align:left;
}
.note-block-title-text { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.note-block-toggle { gap:6px; }
.note-block-toggle::before { content:'›'; flex:none; font-size:15px; line-height:1; }
.note-block-toggle[aria-expanded=true]::before { transform:rotate(90deg); }
.note-block-link:hover .note-block-title-text { text-decoration:underline; }

.note-block-action.note-block-resize {
  position:absolute;
  z-index:1;
  right:3px;
  bottom:3px;
  width:25px;
  height:25px;
  min-height:0;
  padding:0;
  border:1px solid #dce4df;
  border-radius:4px;
  background:#f8faf8;
  font-size:16px;
  cursor:nwse-resize;
  touch-action:none;
}
.note-block-resize:hover { background:#eaf1ed; }

@container (max-width:225px) {
  .note-block-heading { gap:3px; padding-inline:5px; }
  .note-block-actions { gap:1px; }
  .note-block-actions .note-block-action { padding-inline:3px; }
}
