/* axcamp 메인 — 떠다니는 메모지 (2026-11-26) */
.memo-sky { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.memo { position: absolute; left: 0; top: 0; width: var(--mw, 104px); height: var(--mw, 104px); padding: 0; border: 0; background: none;
  pointer-events: auto; cursor: pointer; color: #2a2418; font: inherit; will-change: transform; -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)) drop-shadow(0 2px 3px rgba(0,0,0,.35)); transition: filter .25s var(--ease, ease); }
.memo:hover, .memo:focus-visible { filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)) drop-shadow(0 0 14px var(--glow, rgba(0,217,255,.35))); outline: none; }
.memo svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.memo .pv { position: absolute; left: 12%; right: 14%; top: 26%; bottom: 22%; font-size: 11px; line-height: 1.42; text-align: left;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; word-break: break-all; white-space: pre-line; pointer-events: none; }
.memo .no { position: absolute; left: 12%; bottom: 9%; font: 600 9px/1 var(--mono, ui-monospace, monospace); letter-spacing: .04em; opacity: .55; pointer-events: none; }
.memo.new { color: var(--accent, #00d9ff); filter: drop-shadow(0 0 18px rgba(0,217,255,.22)); }
.memo.new .pv { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; top: 20%; text-align: center;
  font-size: 11.5px; font-weight: 600; -webkit-line-clamp: unset; }
.memo.new .pv svg { position: static; width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.memo.pop { animation: memo-pop .6s var(--ease, ease); }
@keyframes memo-pop { 0% { opacity: 0; scale: .3; } 70% { scale: 1.12; } 100% { opacity: 1; scale: 1; } }

/* 모달 */
.memo-scrim { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px;
  background: rgba(3,5,8,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: memo-fade .18s ease; }
.memo-scrim[hidden] { display: none; }
@keyframes memo-fade { from { opacity: 0; } }
.memo-dlg { position: relative; width: min(640px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column;
  background: #10151c; color: var(--fg, #e6edf3); border: 1px solid rgba(139,148,158,.3); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55); overflow: hidden; animation: memo-rise .22s var(--ease, ease); }
@keyframes memo-rise { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.memo-dlg::before { content: ""; height: 4px; background: var(--tone, #f5d77a); flex: none; }
.memo-hd { display: flex; align-items: center; gap: 10px; padding: 16px 18px 10px; }
.memo-hd h2 { margin: 0; font-size: 16px; font-weight: 700; flex: 1; min-width: 0; }
.memo-hd .sub { font: 500 12px/1 var(--mono, ui-monospace, monospace); color: var(--muted, #7d8590); }
.memo-ic { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; min-width: 34px; padding: 0 10px;
  border-radius: 10px; border: 1px solid rgba(139,148,158,.3); background: #141a22; color: var(--fg2, #aab4bf); font: inherit; font-size: 13px; cursor: pointer; }
.memo-ic:hover { color: var(--fg, #e6edf3); border-color: var(--accent, #00d9ff); }
.memo-ic:disabled { opacity: .5; cursor: default; }
.memo-ic svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.memo-ic.pri { background: var(--accent, #00d9ff); border-color: transparent; color: #031016; font-weight: 700; }
.memo-ic.pri:hover { filter: brightness(1.08); color: #031016; }
.memo-ic.done { color: var(--accent2, #00bfa5); border-color: var(--accent2, #00bfa5); }
.memo-bd { padding: 0 18px; overflow: auto; flex: 1; min-height: 0; }
.memo-bd textarea { width: 100%; min-height: 260px; resize: vertical; padding: 14px; border-radius: 12px; border: 1px solid rgba(139,148,158,.3);
  background: #0a0e14; color: var(--fg, #e6edf3); font: 14.5px/1.65 var(--font, system-ui); }
.memo-bd textarea:focus { outline: none; border-color: var(--accent, #00d9ff); box-shadow: 0 0 0 3px rgba(0,217,255,.15); }
.memo-text { margin: 0; padding: 14px; border-radius: 12px; background: #0a0e14; border: 1px solid rgba(139,148,158,.16);
  white-space: pre-wrap; word-break: break-word; font: 14.5px/1.7 var(--font, system-ui); user-select: text; -webkit-user-select: text; cursor: text; }
.memo-text::selection, .memo-text *::selection { background: rgba(0,217,255,.35); color: #fff; }
.memo-ft { display: flex; align-items: center; gap: 8px; padding: 12px 18px 16px; flex-wrap: wrap; }
.memo-ft .msg { flex: 1; min-width: 140px; font-size: 12.5px; color: var(--muted, #7d8590); }
.memo-ft .msg.bad { color: #ef4444; } .memo-ft .msg.ok { color: var(--accent2, #00bfa5); }
.memo-cnt { font: 500 12px/1 var(--mono, ui-monospace, monospace); color: var(--muted, #7d8590); }
.memo-cnt.over { color: #ffb347; }
.memo-ic.del:hover { color: #ef4444; border-color: #ef4444; }
.memo-ic.danger { background: #ef4444; border-color: transparent; color: #fff; font-weight: 700; }
.memo-ic.danger:hover { filter: brightness(1.08); color: #fff; }
.memo-confirm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 18px 16px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid rgba(239,68,68,.45); background: rgba(239,68,68,.08); animation: memo-fade .15s ease; }
.memo-confirm span { flex: 1; min-width: 160px; font-size: 13px; color: var(--fg, #e6edf3); } .memo-confirm span.bad { color: #ef4444; }
@media (max-width: 520px) { .memo-confirm { margin: 10px 14px 14px; } .memo-bd textarea { min-height: 200px; } .memo-hd { padding: 14px 14px 8px; } .memo-bd { padding: 0 14px; } .memo-ft { padding: 10px 14px 14px; } }
@media (prefers-reduced-motion: reduce) { .memo, .memo-scrim, .memo-dlg { animation: none !important; transition: none !important; } }
.memo-ft[hidden] { display: none; }

/* 메모 남기기 — 떠다니지 않고 오른쪽 아래 고정 (2026-11-26) */
.memo.new.dock { position: fixed; left: auto; top: auto; z-index: 40; --mw: 84px;
  right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  transform: rotate(-3deg); transition: transform .2s var(--ease, ease), filter .25s var(--ease, ease); }
.memo.new.dock:hover, .memo.new.dock:focus-visible { transform: rotate(0deg) translateY(-3px); }
.memo.new.dock:active { transform: rotate(0deg) scale(.96); }
.memo.new.dock::before { content: ""; position: absolute; inset: 6% 6%; border-radius: 6px; background: rgba(8,12,18,.78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: -1; }
.memo.new.dock .pv { font-size: 10.5px; gap: 3px; left: 10%; right: 10%; }
.memo.new.dock .pv svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .memo.new.dock { --mw: 68px; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .memo.new.dock .pv { font-size: 9.5px; } .memo.new.dock .pv svg { width: 15px; height: 15px; } }
