.color-arrange-page.color-portrait-page .color-portrait-note-tools {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 188px;
  max-width: 100%;
}
.color-portrait-note-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(var(--portrait-height, 640px) - 140px);
  overflow-y: auto;
}
.color-portrait-note-tools .color-note-change-time {
  padding: 0;
  border: 0;
  background: transparent;
  color: #71899b;
  font-size: 12px;
  line-height: 1.7;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: help;
}
.color-portrait-note-tools .color-note-change-time:hover,
.color-portrait-note-tools .color-note-change-time:focus-visible { color: #3e6e8e; }
.color-arrange-page.color-portrait-page .color-note-edit-button[data-slot="button"] {
  width: 188px;
  height: 48px;
  min-height: 48px;
  border: 1px solid #c9dce9;
  border-radius: 12px;
  background: #fbfdff;
  color: #3e6e8e;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 3px 10px #58748b09;
}
.color-note-change-popover {
  position: fixed;
  z-index: 60;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 32px));
  max-height: min(420px, 60dvh);
  overflow-y: auto;
  padding: 16px 18px;
  border: 1px solid #d3e2ec;
  border-radius: 14px;
  background: #fbfdff;
  color: #29445a;
  box-shadow: 0 8px 28px #55748b24;
  font-size: 15px;
  line-height: 1.6;
  text-wrap: wrap;
}
.color-note-change-popover > span,
.color-note-change-popover .color-note-change-author { color: #71899b; font-size: 12px; }
.color-note-change-popover p { margin: 4px 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.color-note-change-popover p:last-of-type { margin-bottom: 0; }
.color-portrait-note[data-note-editing] textarea {
  outline: 2.5px solid #93b8cd;
  outline-offset: -2.5px;
}
.color-note-error, .color-note-message { margin: 0; font-size: 12px; line-height: 1.7; }
.color-note-error { color: #a6443e; }
.color-note-message { color: #71899b; }
@media (max-width: 799px) {
  .color-arrange-page.color-portrait-page .color-portrait-note-tools {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
  }
  .color-arrange-page.color-portrait-page .color-local-order:has(.color-portrait-note-tools) .color-portrait-actions {
    grid-row: 4;
  }
  .color-portrait-note-history { max-height: 180px; }
}
