/* Compact editor navigation and tools near selected text. */
.workspace-header .session-strip { flex:1 1 auto; }
.workspace-header .toolbar { flex:0 0 auto; }
.workspace-header .note-tool-trigger > span { white-space:nowrap; }
.workspace-header .ghost-button:focus-visible,.note-tool-menu button:focus-visible,.note-selection-tools button:focus-visible {
  outline:2px solid #79917e; outline-offset:-2px;
}
.note-tool-menu {
  display:none; position:fixed; inset:auto; margin:0; width:min(180px,calc(100vw - 16px)); max-height:calc(100dvh - 70px);
  padding:4px; overflow:auto; overscroll-behavior:contain; border:1px solid #e0e5df;
  border-radius:6px; background:#fff; box-shadow:0 8px 26px #20282020;
}
.note-tool-menu:popover-open { display:grid; gap:2px; }
.note-tool-menu[data-open] { z-index:82; display:grid; gap:2px; }
.note-tool-menu > .ghost-button {
  display:flex; justify-content:flex-start; gap:9px; padding:0 9px; min-height:36px; min-width:0;
  border:0; border-radius:4px; font:550 13px Pretendard,sans-serif; color:#3e453e; box-shadow:none;
}
.note-tool-menu > .ghost-button:enabled:hover { background:#f0f3ef; }
.note-tool-menu > .ghost-button:disabled { opacity:.45; }
.note-tool-menu > .ghost-button svg { flex:none; width:16px; height:16px; }
.note-tool-menu > .ghost-button > span { display:inline; }
.note-settings-shortcuts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.note-settings-shortcuts > button { white-space:nowrap; }
#note-image-status {
  position:absolute; z-index:37; top:64px; right:12px; max-width:calc(100% - 24px); padding:6px 9px;
  color:#415448; background:#f5f8f4; border:1px solid #e1e8df; border-radius:5px; font-size:11px;
}
.note-selection-tools {
  position:fixed; z-index:79; display:flex; flex-wrap:wrap; align-items:center; width:max-content; max-width:calc(100vw - 16px); gap:1px; padding:3px;
  border:1px solid #dee4de; border-radius:6px; background:#fff; box-shadow:0 4px 16px #27332b21;
  user-select:none; -webkit-user-select:none;
}
.note-selection-tools[hidden],.note-selection-tools button[hidden] { display:none; }
.note-selection-tools button {
  display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:31px;
  padding:0 7px; border:0; border-radius:3px; background:#fff; color:#3a493d;
  font:600 12px Pretendard,sans-serif; white-space:nowrap;
}
.note-selection-tools button:hover,.note-selection-tools button[aria-expanded=true] { background:#eff3ee; }
#noteSelectionSwatch { width:11px; height:11px; border:1px solid #3332; border-radius:2px; }
#noteSelectionColors { padding:0 5px; min-width:29px; }
#noteSelectionColors svg { width:14px; height:14px; }
#noteBlankTools button { padding-inline:8px; }
#noteSelectionComment { margin-left:2px; border-left:1px solid #e7ebe6; border-top-left-radius:0; border-bottom-left-radius:0; }
@media (max-width:600px) {
  #note-image-status { top:58px; }
  .workspace-header .note-tool-trigger > span { display:none; }
}
@media (max-width:560px) {
  .workspace-header .toolbar { gap:1px; }
  .workspace-header #presenceButton,.workspace-header .note-tool-trigger {
    min-width:34px; min-height:36px; padding-inline:6px;
  }
  .workspace-header #presenceAvatars .note-avatar:nth-child(n+2) { display:none; }
}
@media(pointer:coarse) {
  .note-tool-menu > .ghost-button,.note-selection-tools button { min-height:42px; }
}
