/* Colors, tags and rotation controls shared by the board and list editors. */
.custom-color-controls { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.custom-color-controls input[type="color"] { width: 25px; height: 25px; padding: 2px; background: #fff; border: 1px solid #dce5d3; border-radius: 5px; cursor: pointer; }
.color-hex { width: 72px; height: 26px; padding: 3px 5px; border: 1px solid #e0e7d9; border-radius: 4px; background: #f8faf5; color: #617256; font: 10px/1.5 monospace; }
.tool-options .custom-color-controls { margin-top: 12px; }
.rotation-controls { display: flex; align-items: center; gap: 5px; color: #819474; font-size: 9px; white-space: nowrap; }
.rotation-controls input[type="range"] { width: 65px; accent-color: #92af7c; }
.rotation-controls input[type="number"] { width: 62px; height: 25px; padding: 3px; border: 1px solid #e0e7d9; border-radius: 4px; font-size: 10px; color: #617256; background: #f8faf5; }
.rotation-handle { position: absolute; left: 50%; top: -43px; transform: translateX(-50%); width: 24px; height: 24px; display: grid; place-items: center; background: white; border: 1px solid #8eac7c; border-radius: 50%; color: #62864f; cursor: grab; font: 18px/1 sans-serif; z-index: 5; }
.rotation-handle::after { content: ""; position: absolute; top: 23px; height: 14px; width: 1px; background: #8eac7c; pointer-events: none; }
.rotation-handle:active { cursor: grabbing; }
.board-element.text.handwritten { transform-origin: center center; }
.canvas-viewport.panning, .canvas-viewport.panning * { cursor: grabbing !important; }
.canvas-viewport.sticker-drop-target { box-shadow: inset 0 0 0 3px #a8be95; }
.sticker-emoji-grid { max-height: 265px; overflow-y: auto; }
.sticker-history-empty { grid-column: 1 / -1; padding: 15px 5px; margin: 0; color: #859674; font-size: 10px; line-height: 1.8; text-align: center; }
.note-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.note-tag { overflow-wrap: anywhere; max-width: 100%; }
.note-footer { opacity: .7; }
.note-tags:hover:not(:disabled) { opacity: 1; }
.tag-editor-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag-editor-chip { padding: 6px 9px; border: 1px solid #d8e4ce; border-radius: 6px; background: #f1f6eb; color: #5d774b; font-size: 11px; overflow-wrap: anywhere; max-width: 100%; }
.tag-editor-add { display: flex; align-items: center; gap: 8px; }
.tag-editor-add input { flex: 1; min-width: 0; }
.memo-editor-tags { flex: 0 0 auto; align-self: flex-start; margin: 0 28px 10px; max-width: calc(100% - 56px); padding: 5px 8px; border: 1px solid #e0e8d8; border-radius: 5px; background: #f8faf5; color: #859674; font-size: 10px; text-align: left; overflow-wrap: anywhere; }
.memo-list-item-content small { overflow-wrap: anywhere; }
.memo-editor-footer { flex-wrap: wrap; gap: 10px; height: auto; flex-basis: auto; min-height: 54px; }
.memo-editor-footer .color-palette { flex-wrap: wrap; align-items: center; }
.selection-toolbar { flex-wrap: wrap; justify-content: center; left: 80px; right: 80px; margin-inline: auto; transform: none; width: fit-content; max-width: none; }
.version-history-button { pointer-events: auto; flex: 0 0 auto; margin-right: auto; height: 31px; font-size: 10px; padding: 0 10px; }
.canvas-topline { gap: 12px; }
@media (max-width: 1020px) {
  .selection-toolbar { right: 15px; }
}
@media (max-width: 760px) {
  .selection-toolbar { left: 66px; right: 10px; bottom: 68px; gap: 5px; }
  .selection-toolbar .selection-label { display: none; }
  .version-history-button { font-size: 9px; gap: 4px; padding: 0 7px; }
  .canvas-session-meta .sync-status { max-width: 100px; }
  .memo-editor-tags { margin-left: 20px; margin-right: 20px; max-width: calc(100% - 40px); }
}
