  /* ── 토스트 ─────────────────────────────────────────────── */
  #toast-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
  }

  .toast {
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .toast.show {
    opacity: 1;
    transform: translateY(0);
  }
  .toast.success { background: linear-gradient(135deg, #00c853, #1b5e20); }
  .toast.error   { background: linear-gradient(135deg, #ff5252, #b71c1c); }
  .toast.info    { background: linear-gradient(135deg, #00d2ff, #3a7bd5); }
  .toast.warn    { background: linear-gradient(135deg, #fbc02d, #e65100); }

  /* ── 커스텀 확인/입력 모달 ──────────────────────────────── */
  #custom-dialog-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 99998;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
  }
  #custom-dialog-overlay.active { display: flex; }

  #custom-dialog {
    background: #1a1a1a;
    border: 2px solid #444;
    border-radius: 20px;
    padding: 32px;
    width: 360px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    transform: scale(0.85);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  #custom-dialog-overlay.active #custom-dialog {
    transform: scale(1);
    opacity: 1;
  }

  #custom-dialog-msg {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  #custom-dialog-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid #444;
    background: #2a2a2a;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    box-sizing: border-box;
    outline: none;
  }
  #custom-dialog-input:focus { border-color: #00ff88; }

  .dialog-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
  }
  .dialog-btn-ok {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #00c853, #1b5e20);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
  }
  .dialog-btn-cancel {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #333;
    color: #aaa;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
  }
  .dialog-btn-ok:active     { opacity: 0.8; }
  .dialog-btn-cancel:active { opacity: 0.8; }
