/* MENU-DRAG-01 (소유자 10-26 "편집 버튼 말고 드래그 형식으로"): the menu entries of the phone drawer and the PC sidebar
   are pressed (0.4 s) and dragged; letting go without moving opens a small menu. site-main-menu.js. */

/* A long press never selects the name, shows iOS's link preview / callout, or the phone's own menu. */
body.chat-home-page .consumer-primary-nav > .nav-item,
body.chat-home-page .consumer-primary-nav > .nav-item * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
/* Scrolling stays as it is until an entry is lifted; while dragging, the menu keeps the finger. */
body.chat-home-page .consumer-primary-nav.menu-dragging,
body.chat-home-page .consumer-primary-nav.menu-dragging > .nav-item { touch-action: none; }

/* MENU-DRAG-05 (7번 A826S 10-27: 「의견 보내기」 dropped back as soon as it moved, 0/21; the drawer slid a few px): a 1.08 scale
   pushed a tile of the right-hand column 2px past the drawer's menu, which then had something to scroll sideways, and the
   browser took the finger for that scroll. A lifted entry now rises and casts a shadow without growing past its cell. */
body.chat-home-page .consumer-primary-nav > .nav-item.is-lifted {
  position: relative;
  z-index: 2;
  transform: translateY(-3px);
  border-radius: var(--lotbi-radius-button, 12px);
  background: var(--lotbi-surface-elevated, #fff);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
body.chat-home-page .consumer-primary-nav > .nav-item.is-dragging { opacity: 0.92; }
@media (prefers-reduced-motion: reduce) {
  body.chat-home-page .consumer-primary-nav > .nav-item.is-lifted { transition: none; }
}

/* The small menu: 숨기기 · 맨 앞 고정 (or 다시 보이기 for a hidden entry). */
.menu-press-menu {
  position: fixed;
  z-index: 2147483000;
  box-sizing: border-box;
  min-width: 160px;
  padding: 6px;
  border: 1px solid var(--lotbi-border-default, #e5e5e5);
  border-radius: var(--lotbi-radius-button, 12px);
  background: var(--lotbi-surface-elevated, #fff);
  color: var(--lotbi-text-primary, #212121);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
}
.menu-press-item {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--lotbi-fs-body, 15px);
  text-align: left;
  cursor: pointer;
}
.menu-press-item:hover,
.menu-press-item:focus-visible { background: var(--lotbi-surface-hover, #f0f0f0); }
.menu-press-item:focus-visible { outline: 2px solid var(--lotbi-focus-ring, #454545); outline-offset: -2px; }
.menu-press-item.is-reset { color: var(--lotbi-text-sub, #5f6b7a); }
.menu-press-item:not(:first-child).is-reset { margin-top: 4px; box-shadow: 0 -1px 0 var(--lotbi-border-default, #e5e5e5); border-radius: 0 0 8px 8px; }

/* First time only: 「꾹 눌러 순서를 바꿀 수 있어요」 under the menu. */
body.chat-home-page .menu-press-hint {
  margin: 6px 4px 2px;
  color: var(--lotbi-text-sub, #5f6b7a);
  font-size: var(--lotbi-fs-caption, 12px);
  line-height: 1.4;
  text-align: center;
}

/* The list editor (▲▼) stays for a keyboard or screen reader: its button shows only while it has keyboard focus. */
body.chat-home-page .menu-edit-open.menu-edit-keys:not(:focus-visible) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
body.chat-home-page .menu-edit-open.menu-edit-keys:focus-visible {
  z-index: 3;
  background: var(--lotbi-surface-elevated, #fff);
  color: var(--lotbi-text-primary, #212121);
  outline: 2px solid var(--lotbi-focus-ring, #454545);
}
