    :root{
      --bg: #0b0f19;
      --card: rgba(255,255,255,.92);
      --text: #0f172a;
      --muted: #64748b;
      --shadow: 0 20px 60px rgba(0,0,0,.35);
      --radius: 16px;
    }

    .btn{
      appearance:none;
      border:0;
      padding: 12px 16px;
      border-radius: 12px;
      background:#111827;
      color:#fff;
      cursor:pointer;
      font-weight:600;
      box-shadow: 0 10px 25px rgba(17,24,39,.20);
      transition: transform .08s ease, opacity .15s ease;
    }
    .btn:active{ transform: translateY(1px); }
    .btn.secondary{
      background: transparent;
      color:#111827;
      border:1px solid rgba(17,24,39,.15);
      box-shadow:none;
    }

    /* overlay */
    .overlay{
      position: fixed;
      inset: 0;
      background: rgba(2,6,23,.55);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      display: none; /* 기본 숨김 */
      align-items: center;
      justify-content: center;
      padding: 24px;
      z-index: 9999;
    }
    .overlay.open{ display:flex; }

    /* modal */
    .modal{
      width: min(520px, 100%);
      border-radius: var(--radius);
      background: var(--card);
      box-shadow: var(--shadow);
      overflow:hidden;
      transform: translateY(8px) scale(.98);
      opacity: 0;
      transition: transform .18s ease, opacity .18s ease;
      outline: none;
    }
    .overlay.open .modal{
      transform: translateY(0) scale(1);
      opacity: 1;
    }

    .modal-header{
      display:flex;
      align-items:center;
      justify-content: space-between;
      padding: 18px 18px 10px;
    }
    .modal-title{
      font-size: 18px;
      font-weight: 800;
      letter-spacing: -0.2px;
    }

    .icon-btn{
      width: 36px;
      height: 36px;
      border-radius: 12px;
      border: 1px solid rgba(15,23,42,.10);
      background: rgba(255,255,255,.7);
      cursor:pointer;
      display:grid;
      place-items:center;
    }
    .icon-btn:hover{ background: rgba(255,255,255,.95); }

    .modal-body{
      padding: 0 18px 18px;
      color: var(--muted);
      line-height: 1.55;
    }

    .modal-actions{
      padding: 14px 18px 18px;
      display:flex;
      gap: 10px;
      justify-content: flex-end;
    }

    /* 스크롤 잠금 */
    body.lock{
      overflow: hidden;
    }
